diff --git a/.gitmodules b/.gitmodules deleted file mode 100755 index f4174a9974a8909a6dfa337410ec9d4a7a1ea964..0000000000000000000000000000000000000000 --- a/.gitmodules +++ /dev/null @@ -1,36 +0,0 @@ -[submodule "utils"] - path = utils - url = git@gitlab.veremes.net:Development/vitis_apps/sources/utils.git - branch = submodules -[submodule "src/vitis"] - path = src/vitis - url = git@gitlab.veremes.net:Development/vitis_apps/sources/vitis.git - branch = next_app_vmap -[submodule "src/closure"] - path = src/closure - url = git@gitlab.veremes.net:Development/vitis_apps/sources/closure.git - branch = master -[submodule "src/module_vmap"] - path = src/module_vmap - url = git@gitlab.veremes.net:Development/vitis_apps/sources/module_vmap.git - branch = next_app_vmap -[submodule "src/module_vm4ms"] - path = src/module_vm4ms - url = git@gitlab.veremes.net:Development/vitis_apps/sources/module_vm4ms.git - branch = next_app_vmap -[submodule "src/module_anc"] - path = src/module_anc - url = git@gitlab.veremes.net:Development/vitis_apps/sources/module_anc.git - branch = next_app_vmap -[submodule "src/module_cadastreV2"] - path = src/module_cadastreV2 - url = git@gitlab.veremes.net:Development/vitis_apps/sources/module_cadastreV2.git - branch = next_app_vmap -[submodule "src/module_cadastre"] - path = src/module_cadastre - url = git@gitlab.veremes.net:Development/vitis_apps/sources/module_cadastre.git - branch = next_app_vmap -[submodule "src/module_anomalies"] - path = src/module_anomalies - url = git@gitlab.veremes.net:Development/vitis_apps/sources/module_anomalies.git - branch = next_app_vmap diff --git a/src/closure b/src/closure deleted file mode 160000 index d9f2f97e212dadeff0df8288b4f829e9b2a75845..0000000000000000000000000000000000000000 --- a/src/closure +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d9f2f97e212dadeff0df8288b4f829e9b2a75845 diff --git a/src/closure/README.md b/src/closure/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d28619bfbb0b10de706cd5985e7a7d042204b2d4 --- /dev/null +++ b/src/closure/README.md @@ -0,0 +1 @@ +Google closure exceptions \ No newline at end of file diff --git a/src/closure/conf/depswriter/closurebuilder.py b/src/closure/conf/depswriter/closurebuilder.py new file mode 100755 index 0000000000000000000000000000000000000000..7be7661f76c4e9dad1b1ab31f01f88498eee81d3 --- /dev/null +++ b/src/closure/conf/depswriter/closurebuilder.py @@ -0,0 +1,293 @@ +#!/usr/bin/env python +# +# Copyright 2009 The Closure Library Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS-IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""Utility for Closure Library dependency calculation. + +ClosureBuilder scans source files to build dependency info. From the +dependencies, the script can produce a manifest in dependency order, +a concatenated script, or compiled output from the Closure Compiler. + +Paths to files can be expressed as individual arguments to the tool (intended +for use with find and xargs). As a convenience, --root can be used to specify +all JS files below a directory. + +usage: %prog [options] [file1.js file2.js ...] +""" + +__author__ = 'nnaze@google.com (Nathan Naze)' + + +import io +import logging +import optparse +import os +import sys + +import depstree +import jscompiler +import source +import treescan + + +def _GetOptionsParser(): + """Get the options parser.""" + + parser = optparse.OptionParser(__doc__) + parser.add_option('-i', + '--input', + dest='inputs', + action='append', + default=[], + help='One or more input files to calculate dependencies ' + 'for. The namespaces in this file will be combined with ' + 'those given with the -n flag to form the set of ' + 'namespaces to find dependencies for.') + parser.add_option('-n', + '--namespace', + dest='namespaces', + action='append', + default=[], + help='One or more namespaces to calculate dependencies ' + 'for. These namespaces will be combined with those given ' + 'with the -i flag to form the set of namespaces to find ' + 'dependencies for. A Closure namespace is a ' + 'dot-delimited path expression declared with a call to ' + 'goog.provide() (e.g. "goog.array" or "foo.bar").') + parser.add_option('--root', + dest='roots', + action='append', + default=[], + help='The paths that should be traversed to build the ' + 'dependencies.') + parser.add_option('-o', + '--output_mode', + dest='output_mode', + type='choice', + action='store', + choices=['list', 'script', 'compiled'], + default='list', + help='The type of output to generate from this script. ' + 'Options are "list" for a list of filenames, "script" ' + 'for a single script containing the contents of all the ' + 'files, or "compiled" to produce compiled output with ' + 'the Closure Compiler. Default is "list".') + parser.add_option('-c', + '--compiler_jar', + dest='compiler_jar', + action='store', + help='The location of the Closure compiler .jar file.') + parser.add_option('-f', + '--compiler_flags', + dest='compiler_flags', + default=[], + action='append', + help='Additional flags to pass to the Closure compiler. ' + 'To pass multiple flags, --compiler_flags has to be ' + 'specified multiple times.') + parser.add_option('-j', + '--jvm_flags', + dest='jvm_flags', + default=[], + action='append', + help='Additional flags to pass to the JVM compiler. ' + 'To pass multiple flags, --jvm_flags has to be ' + 'specified multiple times.') + parser.add_option('--output_file', + dest='output_file', + action='store', + help=('If specified, write output to this path instead of ' + 'writing to standard output.')) + + return parser + + +def _GetInputByPath(path, sources): + """Get the source identified by a path. + + Args: + path: str, A path to a file that identifies a source. + sources: An iterable collection of source objects. + + Returns: + The source from sources identified by path, if found. Converts to + real paths for comparison. + """ + for js_source in sources: + # Convert both to real paths for comparison. + if os.path.realpath(path) == os.path.realpath(js_source.GetPath()): + return js_source + + +def _GetClosureBaseFile(sources): + """Given a set of sources, returns the one base.js file. + + Note that if zero or two or more base.js files are found, an error message + will be written and the program will be exited. + + Args: + sources: An iterable of _PathSource objects. + + Returns: + The _PathSource representing the base Closure file. + """ + base_files = [ + js_source for js_source in sources if _IsClosureBaseFile(js_source) + ] + + if not base_files: + logging.error('No Closure base.js file found.') + sys.exit(1) + if len(base_files) > 1: + logging.error('More than one Closure base.js files found at these paths:') + for base_file in base_files: + logging.error(base_file.GetPath()) + sys.exit(1) + return base_files[0] + + +def _IsClosureBaseFile(js_source): + """Returns true if the given _PathSource is the Closure base.js source.""" + return (os.path.basename(js_source.GetPath()) == 'base.js' and + js_source.provides == set(['goog'])) + + +class _PathSource(source.Source): + """Source file subclass that remembers its file path.""" + + def __init__(self, path): + """Initialize a source. + + Args: + path: str, Path to a JavaScript file. The source string will be read + from this file. + """ + super(_PathSource, self).__init__(source.GetFileContents(path)) + + self._path = path + + def __str__(self): + return 'PathSource %s' % self._path + + def GetPath(self): + """Returns the path.""" + return self._path + + +def _WrapGoogModuleSource(src): + return ('goog.loadModule(function(exports) {{' + '"use strict";' + '{0}' + '\n' # terminate any trailing single line comment. + ';return exports' + '}});\n').format(src) + + +def main(): + logging.basicConfig(format=(sys.argv[0] + ': %(message)s'), + level=logging.INFO) + options, args = _GetOptionsParser().parse_args() + + # Make our output pipe. + if options.output_file: + out = io.open(options.output_file, 'wb') + else: + version = sys.version_info[:2] + if version >= (3, 0): + # Write bytes to stdout + out = sys.stdout.buffer + else: + out = sys.stdout + + sources = set() + + logging.info('Scanning paths...') + for path in options.roots: + for js_path in treescan.ScanTreeForJsFiles(path): + sources.add(_PathSource(js_path)) + + # Add scripts specified on the command line. + for js_path in args: + sources.add(_PathSource(js_path)) + + logging.info('%s sources scanned.', len(sources)) + + # Though deps output doesn't need to query the tree, we still build it + # to validate dependencies. + logging.info('Building dependency tree..') + tree = depstree.DepsTree(sources) + + input_namespaces = set() + inputs = options.inputs or [] + for input_path in inputs: + js_input = _GetInputByPath(input_path, sources) + if not js_input: + logging.error('No source matched input %s', input_path) + sys.exit(1) + input_namespaces.update(js_input.provides) + + input_namespaces.update(options.namespaces) + + if not input_namespaces: + logging.error('No namespaces found. At least one namespace must be ' + 'specified with the --namespace or --input flags.') + sys.exit(2) + + # The Closure Library base file must go first. + base = _GetClosureBaseFile(sources) + deps = [base] + tree.GetDependencies(input_namespaces) + + output_mode = options.output_mode + if output_mode == 'list': + out.writelines([js_source.GetPath() + '\n' for js_source in deps]) + elif output_mode == 'script': + for js_source in deps: + src = js_source.GetSource() + if js_source.is_goog_module: + src = _WrapGoogModuleSource(src) + out.write(src.encode('utf-8') + b'\n') + elif output_mode == 'compiled': + logging.warning("""\ +Closure Compiler now natively understands and orders Closure dependencies and +is prefererred over using this script for performing JavaScript compilation. + +Please migrate your codebase. + +See: +https://github.com/google/closure-compiler/wiki/Managing-Dependencies +""") + + # Make sure a .jar is specified. + if not options.compiler_jar: + logging.error('--compiler_jar flag must be specified if --output is ' + '"compiled"') + sys.exit(2) + + # Will throw an error if the compilation fails. + compiled_source = jscompiler.Compile(options.compiler_jar, + [js_source.GetPath() + for js_source in deps], + jvm_flags=options.jvm_flags, + compiler_flags=options.compiler_flags) + + logging.info('JavaScript compilation succeeded.') + out.write(compiled_source.encode('utf-8')) + + else: + logging.error('Invalid value for --output flag.') + sys.exit(2) + + +if __name__ == '__main__': + main() diff --git a/src/closure/conf/depswriter/depstree.py b/src/closure/conf/depswriter/depstree.py new file mode 100755 index 0000000000000000000000000000000000000000..f288dd3aa616a9a69390f5ac6dc4411a3a8a419b --- /dev/null +++ b/src/closure/conf/depswriter/depstree.py @@ -0,0 +1,189 @@ +# Copyright 2009 The Closure Library Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS-IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +"""Class to represent a full Closure Library dependency tree. + +Offers a queryable tree of dependencies of a given set of sources. The tree +will also do logical validation to prevent duplicate provides and circular +dependencies. +""" + +__author__ = 'nnaze@google.com (Nathan Naze)' + + +class DepsTree(object): + """Represents the set of dependencies between source files.""" + + def __init__(self, sources): + """Initializes the tree with a set of sources. + + Args: + sources: A set of JavaScript sources. + + Raises: + MultipleProvideError: A namespace is provided by muplitple sources. + NamespaceNotFoundError: A namespace is required but never provided. + """ + + self._sources = sources + self._provides_map = dict() + + # Ensure nothing was provided twice. + for source in sources: + for provide in source.provides: + if provide in self._provides_map: + raise MultipleProvideError( + provide, [self._provides_map[provide], source]) + + self._provides_map[provide] = source + + # Check that all required namespaces are provided. + for source in sources: + for require in source.requires: + if require not in self._provides_map: + raise NamespaceNotFoundError(require, source) + + def GetDependencies(self, required_namespaces): + """Get source dependencies, in order, for the given namespaces. + + Args: + required_namespaces: A string (for one) or list (for one or more) of + namespaces. + + Returns: + A list of source objects that provide those namespaces and all + requirements, in dependency order. + + Raises: + NamespaceNotFoundError: A namespace is requested but doesn't exist. + CircularDependencyError: A cycle is detected in the dependency tree. + """ + if isinstance(required_namespaces, str): + required_namespaces = [required_namespaces] + + deps_sources = [] + + for namespace in required_namespaces: + for source in DepsTree._ResolveDependencies( + namespace, [], self._provides_map, []): + if source not in deps_sources: + deps_sources.append(source) + + return deps_sources + + @staticmethod + def _ResolveDependencies(required_namespace, deps_list, provides_map, + traversal_path): + """Resolve dependencies for Closure source files. + + Follows the dependency tree down and builds a list of sources in dependency + order. This function will recursively call itself to fill all dependencies + below the requested namespaces, and then append its sources at the end of + the list. + + Args: + required_namespace: String of required namespace. + deps_list: List of sources in dependency order. This function will append + the required source once all of its dependencies are satisfied. + provides_map: Map from namespace to source that provides it. + traversal_path: List of namespaces of our path from the root down the + dependency/recursion tree. Used to identify cyclical dependencies. + This is a list used as a stack -- when the function is entered, the + current namespace is pushed and popped right before returning. + Each recursive call will check that the current namespace does not + appear in the list, throwing a CircularDependencyError if it does. + + Returns: + The given deps_list object filled with sources in dependency order. + + Raises: + NamespaceNotFoundError: A namespace is requested but doesn't exist. + CircularDependencyError: A cycle is detected in the dependency tree. + """ + + source = provides_map.get(required_namespace) + if not source: + raise NamespaceNotFoundError(required_namespace) + + if required_namespace in traversal_path: + traversal_path.append(required_namespace) # do this *after* the test + + # This must be a cycle. + raise CircularDependencyError(traversal_path) + + # If we don't have the source yet, we'll have to visit this namespace and + # add the required dependencies to deps_list. + if source not in deps_list: + traversal_path.append(required_namespace) + + for require in source.requires: + + # Append all other dependencies before we append our own. + DepsTree._ResolveDependencies(require, deps_list, provides_map, + traversal_path) + deps_list.append(source) + + traversal_path.pop() + + return deps_list + + +class BaseDepsTreeError(Exception): + """Base DepsTree error.""" + + def __init__(self): + Exception.__init__(self) + + +class CircularDependencyError(BaseDepsTreeError): + """Raised when a dependency cycle is encountered.""" + + def __init__(self, dependency_list): + BaseDepsTreeError.__init__(self) + self._dependency_list = dependency_list + + def __str__(self): + return ('Encountered circular dependency:\n%s\n' % + '\n'.join(self._dependency_list)) + + +class MultipleProvideError(BaseDepsTreeError): + """Raised when a namespace is provided more than once.""" + + def __init__(self, namespace, sources): + BaseDepsTreeError.__init__(self) + self._namespace = namespace + self._sources = sources + + def __str__(self): + source_strs = map(str, self._sources) + + return ('Namespace "%s" provided more than once in sources:\n%s\n' % + (self._namespace, '\n'.join(source_strs))) + + +class NamespaceNotFoundError(BaseDepsTreeError): + """Raised when a namespace is requested but not provided.""" + + def __init__(self, namespace, source=None): + BaseDepsTreeError.__init__(self) + self._namespace = namespace + self._source = source + + def __str__(self): + msg = 'Namespace "%s" never provided.' % self._namespace + if self._source: + msg += ' Required in %s' % self._source + return msg diff --git a/src/closure/conf/depswriter/depstree_test.py b/src/closure/conf/depswriter/depstree_test.py new file mode 100755 index 0000000000000000000000000000000000000000..eb4c99958ec6cabaacd782e49b7a8a16e85c9f61 --- /dev/null +++ b/src/closure/conf/depswriter/depstree_test.py @@ -0,0 +1,127 @@ +#!/usr/bin/env python +# +# Copyright 2009 The Closure Library Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS-IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +"""Unit test for depstree.""" + +__author__ = 'nnaze@google.com (Nathan Naze)' + + +import unittest + +import depstree + + +def _GetProvides(sources): + """Get all namespaces provided by a collection of sources.""" + + provides = set() + for source in sources: + provides.update(source.provides) + return provides + + +class MockSource(object): + """Mock Source file.""" + + def __init__(self, provides, requires): + self.provides = set(provides) + self.requires = set(requires) + + def __repr__(self): + return 'MockSource %s' % self.provides + + +class DepsTreeTestCase(unittest.TestCase): + """Unit test for DepsTree. Tests several common situations and errors.""" + + def AssertValidDependencies(self, deps_list): + """Validates a dependency list. + + Asserts that a dependency list is valid: For every source in the list, + ensure that every require is provided by a source earlier in the list. + + Args: + deps_list: A list of sources that should be in dependency order. + """ + + for i in range(len(deps_list)): + source = deps_list[i] + previous_provides = _GetProvides(deps_list[:i]) + for require in source.requires: + self.assertTrue( + require in previous_provides, + 'Namespace "%s" not provided before required by %s' % ( + require, source)) + + def testSimpleDepsTree(self): + a = MockSource(['A'], ['B', 'C']) + b = MockSource(['B'], []) + c = MockSource(['C'], ['D']) + d = MockSource(['D'], ['E']) + e = MockSource(['E'], []) + + tree = depstree.DepsTree([a, b, c, d, e]) + + self.AssertValidDependencies(tree.GetDependencies('A')) + self.AssertValidDependencies(tree.GetDependencies('B')) + self.AssertValidDependencies(tree.GetDependencies('C')) + self.AssertValidDependencies(tree.GetDependencies('D')) + self.AssertValidDependencies(tree.GetDependencies('E')) + + def testCircularDependency(self): + # Circular deps + a = MockSource(['A'], ['B']) + b = MockSource(['B'], ['C']) + c = MockSource(['C'], ['A']) + + tree = depstree.DepsTree([a, b, c]) + + self.assertRaises(depstree.CircularDependencyError, + tree.GetDependencies, 'A') + + def testRequiresUndefinedNamespace(self): + a = MockSource(['A'], ['B']) + b = MockSource(['B'], ['C']) + c = MockSource(['C'], ['D']) # But there is no D. + + def MakeDepsTree(): + return depstree.DepsTree([a, b, c]) + + self.assertRaises(depstree.NamespaceNotFoundError, MakeDepsTree) + + def testDepsForMissingNamespace(self): + a = MockSource(['A'], ['B']) + b = MockSource(['B'], []) + + tree = depstree.DepsTree([a, b]) + + # There is no C. + self.assertRaises(depstree.NamespaceNotFoundError, + tree.GetDependencies, 'C') + + def testMultipleRequires(self): + a = MockSource(['A'], ['B']) + b = MockSource(['B'], ['C']) + c = MockSource(['C'], []) + d = MockSource(['D'], ['B']) + + tree = depstree.DepsTree([a, b, c, d]) + self.AssertValidDependencies(tree.GetDependencies(['D', 'A'])) + + +if __name__ == '__main__': + unittest.main() diff --git a/src/closure/conf/depswriter/depswriter.py b/src/closure/conf/depswriter/depswriter.py new file mode 100755 index 0000000000000000000000000000000000000000..a78e0f83c1b315136b043bd6f32415dc881bbb4f --- /dev/null +++ b/src/closure/conf/depswriter/depswriter.py @@ -0,0 +1,212 @@ +#!/usr/bin/env python +# +# Copyright 2009 The Closure Library Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS-IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +"""Generates out a Closure deps.js file given a list of JavaScript sources. + +Paths can be specified as arguments or (more commonly) specifying trees +with the flags (call with --help for descriptions). + +Usage: depswriter.py [path/to/js1.js [path/to/js2.js] ...] +""" + +import json +import logging +import optparse +import os +import posixpath +import shlex +import sys + +import source +import treescan + + +__author__ = 'nnaze@google.com (Nathan Naze)' + + +def MakeDepsFile(source_map): + """Make a generated deps file. + + Args: + source_map: A dict map of the source path to source.Source object. + + Returns: + str, A generated deps file source. + """ + + # Write in path alphabetical order + paths = sorted(source_map.keys()) + + lines = [] + + for path in paths: + js_source = source_map[path] + + # We don't need to add entries that don't provide anything. + if js_source.provides: + lines.append(_GetDepsLine(path, js_source)) + + return ''.join(lines) + + +def _GetDepsLine(path, js_source): + """Get a deps.js file string for a source.""" + + provides = _ToJsSrc(sorted(js_source.provides)) + requires = _ToJsSrc(sorted(js_source.requires)) + module = 'true' if js_source.is_goog_module else 'false' + + return 'goog.addDependency(\'%s?_\' + sessionStorage[\'build\'], %s, %s, %s);\n' % ( + path, provides, requires, module) + + +def _ToJsSrc(arr): + """Convert a python arr to a js source string.""" + + return json.dumps(arr).replace('"', '\'') + + +def _GetOptionsParser(): + """Get the options parser.""" + + parser = optparse.OptionParser(__doc__) + + parser.add_option('--output_file', + dest='output_file', + action='store', + help=('If specified, write output to this path instead of ' + 'writing to standard output.')) + parser.add_option('--root', + dest='roots', + default=[], + action='append', + help='A root directory to scan for JS source files. ' + 'Paths of JS files in generated deps file will be ' + 'relative to this path. This flag may be specified ' + 'multiple times.') + parser.add_option('--root_with_prefix', + dest='roots_with_prefix', + default=[], + action='append', + help='A root directory to scan for JS source files, plus ' + 'a prefix (if either contains a space, surround with ' + 'quotes). Paths in generated deps file will be relative ' + 'to the root, but preceded by the prefix. This flag ' + 'may be specified multiple times.') + parser.add_option('--path_with_depspath', + dest='paths_with_depspath', + default=[], + action='append', + help='A path to a source file and an alternate path to ' + 'the file in the generated deps file (if either contains ' + 'a space, surround with whitespace). This flag may be ' + 'specified multiple times.') + return parser + + +def _NormalizePathSeparators(path): + """Replaces OS-specific path separators with POSIX-style slashes. + + Args: + path: str, A file path. + + Returns: + str, The path with any OS-specific path separators (such as backslash on + Windows) replaced with URL-compatible forward slashes. A no-op on systems + that use POSIX paths. + """ + return path.replace(os.sep, posixpath.sep) + + +def _GetRelativePathToSourceDict(root, prefix=''): + """Scans a top root directory for .js sources. + + Args: + root: str, Root directory. + prefix: str, Prefix for returned paths. + + Returns: + dict, A map of relative paths (with prefix, if given), to source.Source + objects. + """ + # Remember and restore the cwd when we're done. We work from the root so + # that paths are relative from the root. + start_wd = os.getcwd() + os.chdir(root) + + path_to_source = {} + for path in treescan.ScanTreeForJsFiles('.'): + prefixed_path = _NormalizePathSeparators(os.path.join(prefix, path)) + path_to_source[prefixed_path] = source.Source(source.GetFileContents(path)) + + os.chdir(start_wd) + + return path_to_source + + +def _GetPair(s): + """Return a string as a shell-parsed tuple. Two values expected.""" + try: + # shlex uses '\' as an escape character, so they must be escaped. + s = s.replace('\\', '\\\\') + first, second = shlex.split(s) + return (first, second) + except: + raise Exception('Unable to parse input line as a pair: %s' % s) + + +def main(): + """CLI frontend to MakeDepsFile.""" + logging.basicConfig(format=(sys.argv[0] + ': %(message)s'), + level=logging.INFO) + options, args = _GetOptionsParser().parse_args() + + path_to_source = {} + + # Roots without prefixes + for root in options.roots: + path_to_source.update(_GetRelativePathToSourceDict(root)) + + # Roots with prefixes + for root_and_prefix in options.roots_with_prefix: + root, prefix = _GetPair(root_and_prefix) + path_to_source.update(_GetRelativePathToSourceDict(root, prefix=prefix)) + + # Source paths + for path in args: + path_to_source[path] = source.Source(source.GetFileContents(path)) + + # Source paths with alternate deps paths + for path_with_depspath in options.paths_with_depspath: + srcpath, depspath = _GetPair(path_with_depspath) + path_to_source[depspath] = source.Source(source.GetFileContents(srcpath)) + + # Make our output pipe. + if options.output_file: + out = open(options.output_file, 'w') + else: + out = sys.stdout + + out.write(('// This file was autogenerated by %s.\n' % + os.path.basename(__file__))) + out.write('// Please do not edit.\n') + + out.write(MakeDepsFile(path_to_source)) + + +if __name__ == '__main__': + main() diff --git a/src/closure/conf/depswriter/depswriter_test.py b/src/closure/conf/depswriter/depswriter_test.py new file mode 100755 index 0000000000000000000000000000000000000000..8d9bf3b26b093c53e1552993ae22d8dbd04748f9 --- /dev/null +++ b/src/closure/conf/depswriter/depswriter_test.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python +# +# Copyright 2010 The Closure Library Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS-IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +"""Unit test for depswriter.""" + +__author__ = 'johnlenz@google.com (John Lenz)' + + +import unittest + +import depswriter + + +class MockSource(object): + """Mock Source file.""" + + def __init__(self, provides, requires): + self.provides = set(provides) + self.requires = set(requires) + self.is_goog_module = False + + def __repr__(self): + return 'MockSource %s' % self.provides + + +class DepsWriterTestCase(unittest.TestCase): + """Unit test for depswriter.""" + + def testMakeDepsFile(self): + sources = {} + sources['test.js'] = MockSource(['A'], ['B', 'C']) + deps = depswriter.MakeDepsFile(sources) + + self.assertEqual( + 'goog.addDependency(\'test.js\', [\'A\'], [\'B\', \'C\'], false);\n', + deps) + + def testMakeDepsFileUnicode(self): + sources = {} + sources['test.js'] = MockSource([u'A'], [u'B', u'C']) + deps = depswriter.MakeDepsFile(sources) + + self.assertEqual( + 'goog.addDependency(\'test.js\', [\'A\'], [\'B\', \'C\'], false);\n', + deps) + +if __name__ == '__main__': + unittest.main() diff --git a/src/closure/conf/depswriter/jscompiler.py b/src/closure/conf/depswriter/jscompiler.py new file mode 100755 index 0000000000000000000000000000000000000000..76b0253707a76981e8be38d0bab2a10434911b18 --- /dev/null +++ b/src/closure/conf/depswriter/jscompiler.py @@ -0,0 +1,162 @@ +# Copyright 2010 The Closure Library Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS-IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""Utility to use the Closure Compiler CLI from Python.""" + +import logging +import os +import re +import subprocess +import tempfile + +# Pulls just the major and minor version numbers from the first line of +# 'java -version'. Versions are in the format of [0-9]+\.[0-9]+\..* See: +# http://www.oracle.com/technetwork/java/javase/versioning-naming-139433.html +_VERSION_REGEX = re.compile(r'"([0-9]+)\.([0-9]+)') + + +class JsCompilerError(Exception): + """Raised if there's an error in calling the compiler.""" + pass + + +def _GetJavaVersionString(): + """Get the version string from the Java VM.""" + return subprocess.check_output(['java', '-version'], stderr=subprocess.STDOUT) + + +def _ParseJavaVersion(version_string): + """Returns a 2-tuple for the current version of Java installed. + + Args: + version_string: String of the Java version (e.g. '1.7.2-ea'). + + Returns: + The major and minor versions, as a 2-tuple (e.g. (1, 7)). + """ + match = _VERSION_REGEX.search(version_string) + if match: + version = tuple(int(x, 10) for x in match.groups()) + assert len(version) == 2 + return version + + +def _JavaSupports32BitMode(): + """Determines whether the JVM supports 32-bit mode on the platform.""" + # Suppresses process output to stderr and stdout from showing up in the + # console as we're only trying to determine 32-bit JVM support. + supported = False + try: + devnull = open(os.devnull, 'wb') + return subprocess.call(['java', '-d32', '-version'], + stdout=devnull, + stderr=devnull) == 0 + except IOError: + pass + else: + devnull.close() + return supported + + +def _GetJsCompilerArgs(compiler_jar_path, java_version, jvm_flags): + """Assembles arguments for call to JsCompiler.""" + + if java_version < (1, 7): + raise JsCompilerError('Closure Compiler requires Java 1.7 or higher. ' + 'Please visit http://www.java.com/getjava') + + args = ['java'] + + # Add JVM flags we believe will produce the best performance. See + # https://groups.google.com/forum/#!topic/closure-library-discuss/7w_O9-vzlj4 + + # Attempt 32-bit mode if available (Java 7 on Mac OS X does not support 32-bit + # mode, for example). + if _JavaSupports32BitMode(): + args += ['-d32'] + + # Prefer the "client" VM. + args += ['-client'] + + # Add JVM flags, if any + if jvm_flags: + args += jvm_flags + + # Add the application JAR. + args += ['-jar', compiler_jar_path] + + return args + + +def _GetFlagFile(source_paths, compiler_flags): + """Writes given source paths and compiler flags to a --flagfile. + + The given source_paths will be written as '--js' flags and the compiler_flags + are written as-is. + + Args: + source_paths: List of string js source paths. + compiler_flags: List of string compiler flags. + + Returns: + The file to which the flags were written. + """ + args = [] + for path in source_paths: + args += ['--js', path] + + # Add compiler flags, if any. + if compiler_flags: + args += compiler_flags + + flags_file = tempfile.NamedTemporaryFile(delete=False) + flags_file.write(' '.join(args)) + flags_file.close() + + return flags_file + + +def Compile(compiler_jar_path, + source_paths, + jvm_flags=None, + compiler_flags=None): + """Prepares command-line call to Closure Compiler. + + Args: + compiler_jar_path: Path to the Closure compiler .jar file. + source_paths: Source paths to build, in order. + jvm_flags: A list of additional flags to pass on to JVM. + compiler_flags: A list of additional flags to pass on to Closure Compiler. + + Returns: + The compiled source, as a string, or None if compilation failed. + """ + + java_version = _ParseJavaVersion(str(_GetJavaVersionString())) + + args = _GetJsCompilerArgs(compiler_jar_path, java_version, jvm_flags) + + # Write source path arguments to flag file for avoiding "The filename or + # extension is too long" error in big projects. See + # https://github.com/google/closure-library/pull/678 + flags_file = _GetFlagFile(source_paths, compiler_flags) + args += ['--flagfile', flags_file.name] + + logging.info('Compiling with the following command: %s', ' '.join(args)) + + try: + return subprocess.check_output(args) + except subprocess.CalledProcessError: + raise JsCompilerError('JavaScript compilation failed.') + finally: + os.remove(flags_file.name) diff --git a/src/closure/conf/depswriter/jscompiler_test.py b/src/closure/conf/depswriter/jscompiler_test.py new file mode 100755 index 0000000000000000000000000000000000000000..6f63e414e852da6faed108b11a39dce8d66790c0 --- /dev/null +++ b/src/closure/conf/depswriter/jscompiler_test.py @@ -0,0 +1,114 @@ +#!/usr/bin/env python +# +# Copyright 2013 The Closure Library Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS-IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""Unit test for depstree.""" + +__author__ = 'nnaze@google.com (Nathan Naze)' + +import os +import unittest + +import jscompiler + + +class JsCompilerTestCase(unittest.TestCase): + """Unit tests for jscompiler module.""" + + def testGetFlagFile(self): + flags_file = jscompiler._GetFlagFile( + ['path/to/src1.js', 'path/to/src2.js'], ['--test_compiler_flag']) + + def file_get_contents(filename): + with open(filename) as f: + content = f.read() + f.close() + return content + + flags_file_content = file_get_contents(flags_file.name) + os.remove(flags_file.name) + + self.assertEqual( + '--js path/to/src1.js --js path/to/src2.js --test_compiler_flag', + flags_file_content) + + def testGetJsCompilerArgs(self): + + original_check = jscompiler._JavaSupports32BitMode + jscompiler._JavaSupports32BitMode = lambda: False + args = jscompiler._GetJsCompilerArgs('path/to/jscompiler.jar', (1, 7), + ['--test_jvm_flag']) + + self.assertEqual( + ['java', '-client', '--test_jvm_flag', '-jar', + 'path/to/jscompiler.jar'], args) + + def CheckJava15RaisesError(): + jscompiler._GetJsCompilerArgs('path/to/jscompiler.jar', (1, 5), + ['--test_jvm_flag']) + + self.assertRaises(jscompiler.JsCompilerError, CheckJava15RaisesError) + jscompiler._JavaSupports32BitMode = original_check + + def testGetJsCompilerArgs32BitJava(self): + + original_check = jscompiler._JavaSupports32BitMode + + # Should include the -d32 flag only if 32-bit Java is supported by the + # system. + jscompiler._JavaSupports32BitMode = lambda: True + args = jscompiler._GetJsCompilerArgs('path/to/jscompiler.jar', (1, 7), + ['--test_jvm_flag']) + + self.assertEqual( + ['java', '-d32', '-client', '--test_jvm_flag', '-jar', + 'path/to/jscompiler.jar'], args) + + # Should exclude the -d32 flag if 32-bit Java is not supported by the + # system. + jscompiler._JavaSupports32BitMode = lambda: False + args = jscompiler._GetJsCompilerArgs('path/to/jscompiler.jar', (1, 7), + ['--test_jvm_flag']) + + self.assertEqual( + ['java', '-client', '--test_jvm_flag', '-jar', + 'path/to/jscompiler.jar'], args) + + jscompiler._JavaSupports32BitMode = original_check + + def testGetJavaVersion(self): + + def assertVersion(expected, version_string): + self.assertEquals(expected, jscompiler._ParseJavaVersion(version_string)) + + assertVersion((1, 7), _TEST_JAVA_VERSION_STRING) + assertVersion((1, 6), _TEST_JAVA_NESTED_VERSION_STRING) + assertVersion((1, 4), 'java version "1.4.0_03-ea"') + + +_TEST_JAVA_VERSION_STRING = """\ +openjdk version "1.7.0-google-v5" +OpenJDK Runtime Environment (build 1.7.0-google-v5-64327-39803485) +OpenJDK Server VM (build 22.0-b10, mixed mode) +""" + +_TEST_JAVA_NESTED_VERSION_STRING = """\ +Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 +java version "1.6.0_35" +Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811) +Java HotSpot(TM) Client VM (build 20.10-b01-428, mixed mode) +""" + +if __name__ == '__main__': + unittest.main() diff --git a/src/closure/conf/depswriter/source.py b/src/closure/conf/depswriter/source.py new file mode 100755 index 0000000000000000000000000000000000000000..0610e6b644f33774336ea7b4d9f36e2d64c19561 --- /dev/null +++ b/src/closure/conf/depswriter/source.py @@ -0,0 +1,132 @@ +# Copyright 2009 The Closure Library Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS-IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +"""Scans a source JS file for its provided and required namespaces. + +Simple class to scan a JavaScript file and express its dependencies. +""" + +__author__ = 'nnaze@google.com' + + +import codecs +import re + +_BASE_REGEX_STRING = r'^\s*goog\.%s\(\s*[\'"](.+)[\'"]\s*\)' +_MODULE_REGEX = re.compile(_BASE_REGEX_STRING % 'module') +_PROVIDE_REGEX = re.compile(_BASE_REGEX_STRING % 'provide') + +_REQUIRE_REGEX_STRING = (r'^\s*(?:(?:var|let|const)\s+[a-zA-Z_$][a-zA-Z0-9$_]*' + r'\s*=\s*)?goog\.require\(\s*[\'"](.+)[\'"]\s*\)') +_REQUIRES_REGEX = re.compile(_REQUIRE_REGEX_STRING) + +class Source(object): + """Scans a JavaScript source for its provided and required namespaces.""" + + # Matches a "/* ... */" comment. + # Note: We can't definitively distinguish a "/*" in a string literal without a + # state machine tokenizer. We'll assume that a line starting with whitespace + # and "/*" is a comment. + _COMMENT_REGEX = re.compile( + r""" + ^\s* # Start of a new line and whitespace + /\* # Opening "/*" + .*? # Non greedy match of any characters (including newlines) + \*/ # Closing "*/""", + re.MULTILINE | re.DOTALL | re.VERBOSE) + + def __init__(self, source): + """Initialize a source. + + Args: + source: str, The JavaScript source. + """ + + self.provides = set() + self.requires = set() + self.is_goog_module = False + + self._source = source + self._ScanSource() + + def GetSource(self): + """Get the source as a string.""" + return self._source + + @classmethod + def _StripComments(cls, source): + return cls._COMMENT_REGEX.sub('', source) + + @classmethod + def _HasProvideGoogFlag(cls, source): + """Determines whether the @provideGoog flag is in a comment.""" + for comment_content in cls._COMMENT_REGEX.findall(source): + if '@provideGoog' in comment_content: + return True + + return False + + def _ScanSource(self): + """Fill in provides and requires by scanning the source.""" + + stripped_source = self._StripComments(self.GetSource()) + + source_lines = stripped_source.splitlines() + for line in source_lines: + match = _PROVIDE_REGEX.match(line) + if match: + self.provides.add(match.group(1)) + match = _MODULE_REGEX.match(line) + if match: + self.provides.add(match.group(1)) + self.is_goog_module = True + match = _REQUIRES_REGEX.match(line) + if match: + self.requires.add(match.group(1)) + + # Closure's base file implicitly provides 'goog'. + # This is indicated with the @provideGoog flag. + if self._HasProvideGoogFlag(self.GetSource()): + + if len(self.provides) or len(self.requires): + raise Exception( + 'Base file should not provide or require namespaces.') + + self.provides.add('goog') + + +def GetFileContents(path): + """Get a file's contents as a string. + + Args: + path: str, Path to file. + + Returns: + str, Contents of file. + + Raises: + IOError: An error occurred opening or reading the file. + + """ + fileobj = None + try: + fileobj = codecs.open(path, encoding='utf-8-sig') + return fileobj.read() + except IOError as error: + raise IOError('An error occurred opening or reading the file: %s. %s' + % (path, error)) + finally: + if fileobj is not None: + fileobj.close() diff --git a/src/closure/conf/depswriter/source_test.py b/src/closure/conf/depswriter/source_test.py new file mode 100755 index 0000000000000000000000000000000000000000..eb1591b442c671578bea87ef611d631ce0a8335c --- /dev/null +++ b/src/closure/conf/depswriter/source_test.py @@ -0,0 +1,152 @@ +#!/usr/bin/env python +# +# Copyright 2010 The Closure Library Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS-IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +"""Unit test for source.""" + +__author__ = 'nnaze@google.com (Nathan Naze)' + + +import unittest + +import source + + +class SourceTestCase(unittest.TestCase): + """Unit test for source. Tests the parser on a known source input.""" + + def testSourceScan(self): + test_source = source.Source(_TEST_SOURCE) + + self.assertEqual(set(['foo', 'foo.test']), + test_source.provides) + self.assertEqual(set(['goog.dom', 'goog.events.EventType']), + test_source.requires) + self.assertFalse(test_source.is_goog_module) + + def testSourceScanBase(self): + test_source = source.Source(_TEST_BASE_SOURCE) + + self.assertEqual(set(['goog']), + test_source.provides) + self.assertEqual(test_source.requires, set()) + self.assertFalse(test_source.is_goog_module) + + def testSourceScanBadBase(self): + + def MakeSource(): + source.Source(_TEST_BAD_BASE_SOURCE) + + self.assertRaises(Exception, MakeSource) + + def testSourceScanGoogModule(self): + test_source = source.Source(_TEST_MODULE_SOURCE) + + self.assertEqual(set(['foo']), + test_source.provides) + self.assertEqual(set(['bar']), + test_source.requires) + self.assertTrue(test_source.is_goog_module) + + def testStripComments(self): + self.assertEquals( + '\nvar foo = function() {}', + source.Source._StripComments(( + '/* This is\n' + ' a comment split\n' + ' over multiple lines\n' + '*/\n' + 'var foo = function() {}'))) + + def testGoogStatementsInComments(self): + test_source = source.Source(_TEST_COMMENT_SOURCE) + + self.assertEqual(set(['foo']), + test_source.provides) + self.assertEqual(set(['goog.events.EventType']), + test_source.requires) + self.assertFalse(test_source.is_goog_module) + + def testHasProvideGoog(self): + self.assertTrue(source.Source._HasProvideGoogFlag(_TEST_BASE_SOURCE)) + self.assertTrue(source.Source._HasProvideGoogFlag(_TEST_BAD_BASE_SOURCE)) + self.assertFalse(source.Source._HasProvideGoogFlag(_TEST_COMMENT_SOURCE)) + + +_TEST_MODULE_SOURCE = """ +goog.module('foo'); +var b = goog.require('bar'); +""" + + +_TEST_SOURCE = """// Fake copyright notice + +/** Very important comment. */ + +goog.provide('foo'); +goog.provide('foo.test'); + +goog.require('goog.dom'); +goog.require('goog.events.EventType'); + +function foo() { + // Set bar to seventeen to increase performance. + this.bar = 17; +} +""" + +_TEST_COMMENT_SOURCE = """// Fake copyright notice + +goog.provide('foo'); + +/* +goog.provide('foo.test'); + */ + +/* +goog.require('goog.dom'); +*/ + +// goog.require('goog.dom'); + +goog.require('goog.events.EventType'); + +function bar() { + this.baz = 55; +} +""" + +_TEST_BASE_SOURCE = """ +/** + * @fileoverview The base file. + * @provideGoog + */ + +var goog = goog || {}; +""" + +_TEST_BAD_BASE_SOURCE = """ +/** + * @fileoverview The base file. + * @provideGoog + */ + +goog.provide('goog'); +""" + + +if __name__ == '__main__': + unittest.main() diff --git a/src/closure/conf/depswriter/treescan.py b/src/closure/conf/depswriter/treescan.py new file mode 100755 index 0000000000000000000000000000000000000000..6694593aab0a3ae36a45429f9ca9dead2920b999 --- /dev/null +++ b/src/closure/conf/depswriter/treescan.py @@ -0,0 +1,78 @@ +#!/usr/bin/env python +# +# Copyright 2010 The Closure Library Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS-IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +"""Shared utility functions for scanning directory trees.""" + +import os +import re + + +__author__ = 'nnaze@google.com (Nathan Naze)' + + +# Matches a .js file path. +_JS_FILE_REGEX = re.compile(r'^.+\.js$') + + +def ScanTreeForJsFiles(root): + """Scans a directory tree for JavaScript files. + + Args: + root: str, Path to a root directory. + + Returns: + An iterable of paths to JS files, relative to cwd. + """ + return ScanTree(root, path_filter=_JS_FILE_REGEX) + + +def ScanTree(root, path_filter=None, ignore_hidden=True): + """Scans a directory tree for files. + + Args: + root: str, Path to a root directory. + path_filter: A regular expression filter. If set, only paths matching + the path_filter are returned. + ignore_hidden: If True, do not follow or return hidden directories or files + (those starting with a '.' character). + + Yields: + A string path to files, relative to cwd. + """ + + def OnError(os_error): + raise os_error + + for dirpath, dirnames, filenames in os.walk(root, onerror=OnError): + # os.walk allows us to modify dirnames to prevent decent into particular + # directories. Avoid hidden directories. + for dirname in dirnames: + if ignore_hidden and dirname.startswith('.'): + dirnames.remove(dirname) + + for filename in filenames: + + # nothing that starts with '.' + if ignore_hidden and filename.startswith('.'): + continue + + fullpath = os.path.join(dirpath, filename) + + if path_filter and not path_filter.match(fullpath): + continue + + yield os.path.normpath(fullpath) diff --git a/src/closure/conf/externs/angular-1.3.js b/src/closure/conf/externs/angular-1.3.js new file mode 100755 index 0000000000000000000000000000000000000000..c3795d2988ff48a966db4c95bd2c112cb1c73f01 --- /dev/null +++ b/src/closure/conf/externs/angular-1.3.js @@ -0,0 +1,2392 @@ +/* + * Copyright 2012 The Closure Compiler Authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @fileoverview Externs for Angular 1. + * + * TODO: Mocks. + * TODO: Remaining Services: + * $compileProvider + * $cookies + * $cookieStore + * $document + * $httpBackend + * $interpolate + * $locale + * $resource + * $rootElement + * $rootScope + * $rootScopeProvider + * + * TODO: Resolve two issues with angular.$http + * 1) angular.$http isn't declared as a + * callable type. It should be declared as a function, and properties + * added following the technique used by $timeout, $parse and + * $interval. + * 2) angular.$http.delete cannot be added as an extern + * as it is a reserved keyword. + * Its use is potentially not supported in IE. + * It may be aliased as 'remove' in a future version. + * + * @see http://angularjs.org/ + * @externs + */ + +/** + * @typedef {(Window|Document|Element|Array.<Element>|string|!angular.JQLite| + * NodeList|{length: number})} + */ +var JQLiteSelector; + +/** + * @type {Object} + * @const + */ +var angular = {}; + +/** + * @param {T} self Specifies the object which this should point to when the + * function is run. + * @param {?function(this:T, ...)} fn A function to partially apply. + * @return {!Function} A partially-applied form of the function bind() was + * invoked as a method of. + * @param {...*} args Additional arguments that are partially applied to the + * function. + * @template T + */ +angular.bind = function(self, fn, args) {}; + +/** @typedef {{strictDi: (boolean|undefined)}} */ +angular.BootstrapOptions; + +/** + * @param {Element|HTMLDocument} element + * @param {Array.<string|Function>=} opt_modules + * @param {angular.BootstrapOptions=} opt_config + * @return {!angular.$injector} + */ +angular.bootstrap = function(element, opt_modules, opt_config) {}; + +/** + * @param {T} source + * @param {(Object|Array)=} opt_dest + * @return {T} + * @template T + */ +angular.copy = function(source, opt_dest) {}; + +/** + * @param {(JQLiteSelector|Object)} element + * @param {(JQLiteSelector|Object)=} opt_context + * @return {!angular.JQLite} + */ +angular.element = function(element, opt_context) {}; + +/** + * @param {*} o1 + * @param {*} o2 + * @return {boolean} + */ +angular.equals = function(o1, o2) {}; + +/** + * @param {Object} dest + * @param {...Object} srcs + */ +angular.extend = function(dest, srcs) {}; + +/** + * @param {Object|Array} obj + * @param {Function} iterator + * @param {Object=} opt_context + * @return {Object|Array} + */ +angular.forEach = function(obj, iterator, opt_context) {}; + +/** + * @param {string|T} json + * @return {Object|Array|Date|T} + * @template T + */ +angular.fromJson = function(json) {}; + +/** + * @param {*} arg + * @return {*} + */ +angular.identity = function(arg) {}; + +/** + * @param {Array.<string|Function>} modules + * @return {!angular.$injector} + */ +angular.injector = function(modules) {}; + +/** + * @param {*} value + * @return {boolean} + */ +angular.isArray = function(value) {}; + +/** + * @param {*} value + * @return {boolean} + */ +angular.isDate = function(value) {}; + +/** + * @param {*} value + * @return {boolean} + */ +angular.isDefined = function(value) {}; + +/** + * @param {*} value + * @return {boolean} + */ +angular.isElement = function(value) {}; + +/** + * @param {*} value + * @return {boolean} + */ +angular.isFunction = function(value) {}; + +/** + * @param {*} value + * @return {boolean} + */ +angular.isNumber = function(value) {}; + +/** + * @param {*} value + * @return {boolean} + */ +angular.isObject = function(value) {}; + +/** + * @param {*} value + * @return {boolean} + */ +angular.isString = function(value) {}; + +/** + * @param {*} value + * @return {boolean} + */ +angular.isUndefined = function(value) {}; + +/** + * @param {string} s + * @return {string} + */ +angular.lowercase = function(s) {}; + +angular.mock = {}; + +/** + * @param {string} name + * @param {Array.<string>=} opt_requires + * @param {(Function|Array.<string|Function>)=} opt_configFn + * @return {!angular.Module} + */ +angular.module = function(name, opt_requires, opt_configFn) {}; + +angular.noop = function() {}; + +/** + * @param {Object|Array|Date|string|number} obj + * @param {boolean=} opt_pretty + * @return {string} + */ +angular.toJson = function(obj, opt_pretty) {}; + +/** + * @param {string} s + * @return {string} + */ +angular.uppercase = function(s) {}; + +/** + * @typedef {{ + * enter: (function(!angular.JQLite, !Function): (!Function|undefined)| + * undefined), + * leave: (function(!angular.JQLite, !Function): (!Function|undefined)| + * undefined), + * move: (function(!angular.JQLite, !Function): (!Function|undefined)| + * undefined), + * addClass: (function(!angular.JQLite, !Function): (!Function|undefined)| + * undefined), + * removeClass: (function(!angular.JQLite, !Function): (!Function|undefined)| + * undefined) + * }} + */ +angular.Animation; + +/** + * @param {!angular.JQLite} element + * @param {!Function} done + * @return {(!Function|undefined)} + */ +angular.Animation.enter = function(element, done) {}; + +/** + * @param {!angular.JQLite} element + * @param {!Function} done + * @return {(!Function|undefined)} + */ +angular.Animation.leave = function(element, done) {}; + +/** + * @param {!angular.JQLite} element + * @param {!Function} done + * @return {(!Function|undefined)} + */ +angular.Animation.move = function(element, done) {}; + +/** + * @param {!angular.JQLite} element + * @param {!Function} done + * @return {(!Function|undefined)} + */ +angular.Animation.addClass = function(element, done) {}; + +/** + * @param {!angular.JQLite} element + * @param {!Function} done + * @return {(!Function|undefined)} + */ +angular.Animation.removeClass = function(element, done) {}; + +/** + * @typedef {{ + * $attr: Object.<string,string>, + * $normalize: function(string): string, + * $observe: function(string, function(*)): function(), + * $set: function(string, ?(string|boolean), boolean=, string=) + * }} + */ +angular.Attributes; + +/** + * @type {Object.<string, string>} + */ +angular.Attributes.$attr; + +/** + * @param {string} classVal + */ +angular.Attributes.$addClass = function(classVal) {}; + +/** + * @param {string} classVal + */ +angular.Attributes.$removeClass = function(classVal) {}; + +/** + * @param {string} newClasses + * @param {string} oldClasses + */ +angular.Attributes.$updateClass = function(newClasses, oldClasses) {}; + +/** + * @param {string} name + * @return {string} + */ +angular.Attributes.$normalize = function(name) {}; + +/** + * @param {string} key + * @param {function(*)} fn + * @return {function()} + */ +angular.Attributes.$observe = function(key, fn) {}; + +/** + * @param {string} key + * @param {?(string|boolean)} value + * @param {boolean=} opt_writeAttr + * @param {string=} opt_attrName + */ +angular.Attributes.$set = function(key, value, opt_writeAttr, opt_attrName) {}; + +/** + * @typedef {{ + * pre: (function( + * !angular.Scope=, + * !angular.JQLite=, + * !angular.Attributes=, + * (!Object|!Array.<!Object>)=)| + * undefined), + * post: (function( + * !angular.Scope=, + * !angular.JQLite=, + * !angular.Attributes=, + * (!Object|Array.<!Object>)=)| + * undefined) + * }} + */ +angular.LinkingFunctions; + +/** + * @param {!angular.Scope=} scope + * @param {!angular.JQLite=} iElement + * @param {!angular.Attributes=} iAttrs + * @param {(!Object|!Array.<!Object>)=} controller + */ +angular.LinkingFunctions.pre = function(scope, iElement, iAttrs, controller) {}; + +/** + * @param {!angular.Scope=} scope + * @param {!angular.JQLite=} iElement + * @param {!angular.Attributes=} iAttrs + * @param {(!Object|!Array.<!Object>)=} controller + */ +angular.LinkingFunctions.post = function(scope, iElement, iAttrs, controller) { +}; + +/** + * @typedef {{ + * bindToController: (boolean|undefined), + * compile: (function( + * !angular.JQLite=, !angular.Attributes=, Function=)|undefined), + * controller: (Function|Array.<string|Function>|string|undefined), + * controllerAs: (string|undefined), + * link: (function( + * !angular.Scope=, !angular.JQLite=, !angular.Attributes=, + * (!Object|!Array.<!Object>)=)| + * !angular.LinkingFunctions| + * undefined), + * name: (string|undefined), + * priority: (number|undefined), + * replace: (boolean|undefined), + * require: (string|Array.<string>|undefined), + * restrict: (string|undefined), + * scope: (boolean|Object.<string, string>|undefined), + * template: (string| + * function(!angular.JQLite=,!angular.Attributes=): string| + * undefined), + * templateNamespace: (string|undefined), + * templateUrl: (string| + * function(!angular.JQLite=,!angular.Attributes=)| + * undefined), + * terminal: (boolean|undefined), + * transclude: (boolean|string|undefined) + * }} + */ +angular.Directive; + +/** + * @param {!angular.JQLite=} tElement + * @param {!angular.Attributes=} tAttrs + * @param {Function=} transclude + * @return {Function|angular.LinkingFunctions|undefined} + */ +angular.Directive.compile = function(tElement, tAttrs, transclude) {}; + +angular.Directive.controller = function() {}; + +/** + * @type {string|undefined} + */ +angular.Directive.controllerAs; + +/** + * @type {( + * function(!angular.Scope=, !angular.JQLite=, !angular.Attributes=, + * (!Object|!Array.<!Object>)=)| + * !angular.LinkingFunctions| + * undefined + * )} + */ +angular.Directive.link; + +/** + * @type {(string|undefined)} + */ +angular.Directive.name; + +/** + * @type {(number|undefined)} + */ +angular.Directive.priority; + +/** + * @type {(boolean|undefined)} + */ +angular.Directive.replace; + +/** + * @type {(string|Array.<string>|undefined)} + */ +angular.Directive.require; + +/** + * @type {(string|undefined)} + */ +angular.Directive.restrict; + +/** + * @type {(boolean|Object.<string, string>|undefined)} + */ +angular.Directive.scope; + +/** + * @type {( + * string| + * function(!angular.JQLite=,!angular.Attributes=): string| + * undefined + * )} + */ +angular.Directive.template; + +/** + * @type {(string|function(!angular.JQLite=, !angular.Attributes=)|undefined)} + */ +angular.Directive.templateUrl; + +/** + * @type {(boolean|undefined)} + */ +angular.Directive.terminal; + +/** + * @type {(boolean|string|undefined)} + */ +angular.Directive.transclude; + +/** + * @typedef {{ + * addClass: function(string): !angular.JQLite, + * after: function(JQLiteSelector): !angular.JQLite, + * append: function(JQLiteSelector): !angular.JQLite, + * attr: function(string, (string|boolean)=): + * (!angular.JQLite|string|boolean), + * bind: function(string, Function): !angular.JQLite, + * children: function(): !angular.JQLite, + * clone: function(): !angular.JQLite, + * contents: function(): !angular.JQLite, + * controller: function(string=): Object, + * css: function((string|!Object), string=): (!angular.JQLite|string), + * data: function(string=, *=): *, + * detach: function(): !angular.JQLite, + * empty: function(): !angular.JQLite, + * eq: function(number): !angular.JQLite, + * find: function(string): !angular.JQLite, + * hasClass: function(string): boolean, + * html: function(string=): (!angular.JQLite|string), + * inheritedData: function(string=, *=): *, + * injector: function(): !angular.$injector, + * isolateScope: function(): (!angular.Scope|undefined), + * length: number, + * next: function(): !angular.JQLite, + * on: function(string, Function): !angular.JQLite, + * off: function(string=, Function=): !angular.JQLite, + * one: function(string, Function): !angular.JQLite, + * parent: function(): !angular.JQLite, + * prepend: function(JQLiteSelector): !angular.JQLite, + * prop: function(string, *=): *, + * ready: function(Function): !angular.JQLite, + * remove: function(): !angular.JQLite, + * removeAttr: function(string): !angular.JQLite, + * removeClass: function(string): !angular.JQLite, + * removeData: function(string=): !angular.JQLite, + * replaceWith: function(JQLiteSelector): !angular.JQLite, + * scope: function(): !angular.Scope, + * text: function(string=): (!angular.JQLite|string), + * toggleClass: function(string, boolean=): !angular.JQLite, + * triggerHandler: function(string, *=): !angular.JQLite, + * unbind: function(string=, Function=): !angular.JQLite, + * val: function(string=): (!angular.JQLite|string), + * wrap: function(JQLiteSelector): !angular.JQLite + * }} + */ +angular.JQLite; + +/** + * @param {string} name + * @return {!angular.JQLite} + */ +angular.JQLite.addClass = function(name) {}; + +/** + * @param {JQLiteSelector} element + * @return {!angular.JQLite} + */ +angular.JQLite.after = function(element) {}; + +/** + * @param {JQLiteSelector} element + * @return {!angular.JQLite} + */ +angular.JQLite.append = function(element) {}; + +/** + * @param {string} name + * @param {(string|boolean)=} opt_value + * @return {!angular.JQLite|string|boolean} + */ +angular.JQLite.attr = function(name, opt_value) {}; + +/** + * @param {string} type + * @param {Function} fn + * @return {!angular.JQLite} + */ +angular.JQLite.bind = function(type, fn) {}; + +/** + * @return {!angular.JQLite} + */ +angular.JQLite.children = function() {}; + +/** + * @return {!angular.JQLite} + */ +angular.JQLite.clone = function() {}; + +/** + * @return {!angular.JQLite} + */ +angular.JQLite.contents = function() {}; + +/** + * @param {string=} opt_name + * @return {Object} + */ +angular.JQLite.controller = function(opt_name) {}; + +/** + * @param {(string|!Object)} nameOrObject + * @param {string=} opt_value + * @return {!angular.JQLite|string} + */ +angular.JQLite.css = function(nameOrObject, opt_value) {}; + +/** + * @param {string=} opt_key + * @param {*=} opt_value + * @return {*} + */ +angular.JQLite.data = function(opt_key, opt_value) {}; + +/** + * @param {number} index + * @return {!angular.JQLite} + */ +angular.JQLite.eq = function(index) {}; + +/** + * @param {string} selector + * @return {!angular.JQLite} + */ +angular.JQLite.find = function(selector) {}; + +/** + * @param {string} name + * @return {boolean} + */ +angular.JQLite.hasClass = function(name) {}; + +/** + * @param {string=} opt_value + * @return {!angular.JQLite|string} + */ +angular.JQLite.html = function(opt_value) {}; + +/** + * @param {string=} opt_key + * @param {*=} opt_value + * @return {*} + */ +angular.JQLite.inheritedData = function(opt_key, opt_value) {}; + +/** + * @return {!angular.$injector} + */ +angular.JQLite.injector = function() {}; + +/** @type {number} */ +angular.JQLite.length; + +/** + * @return {!angular.JQLite} + */ +angular.JQLite.next = function() {}; + +/** + * @param {string} type + * @param {Function} fn + * @return {!angular.JQLite} + */ +angular.JQLite.on = function(type, fn) {}; + +/** + * @param {string=} opt_type + * @param {Function=} opt_fn + * @return {!angular.JQLite} + */ +angular.JQLite.off = function(opt_type, opt_fn) {}; + +/** + * @return {!angular.JQLite} + */ +angular.JQLite.parent = function() {}; + +/** + * @param {JQLiteSelector} element + * @return {!angular.JQLite} + */ +angular.JQLite.prepend = function(element) {}; + +/** + * @param {string} name + * @param {*=} opt_value + * @return {*} + */ +angular.JQLite.prop = function(name, opt_value) {}; + +/** + * @param {Function} fn + * @return {!angular.JQLite} + */ +angular.JQLite.ready = function(fn) {}; + +/** + * @return {!angular.JQLite} + */ +angular.JQLite.remove = function() {}; + +/** + * @param {string} name + * @return {!angular.JQLite} + */ +angular.JQLite.removeAttr = function(name) {}; + +/** + * @param {string} name + * @return {!angular.JQLite} + */ +angular.JQLite.removeClass = function(name) {}; + +/** + * @param {string=} opt_name + * @return {!angular.JQLite} + */ +angular.JQLite.removeData = function(opt_name) {}; + +/** + * @param {JQLiteSelector} element + * @return {!angular.JQLite} + */ +angular.JQLite.replaceWith = function(element) {}; + +/** + * @return {!angular.Scope} + */ +angular.JQLite.scope = function() {}; + +/** + * @param {string=} opt_value + * @return {!angular.JQLite|string} + */ +angular.JQLite.text = function(opt_value) {}; + +/** + * @param {string} name + * @param {boolean=} opt_condition + * @return {!angular.JQLite} + */ +angular.JQLite.toggleClass = function(name, opt_condition) {}; + +/** + * @param {string} type + * @param {*=} opt_value + * @return {!angular.JQLite} + */ +angular.JQLite.triggerHandler = function(type, opt_value) {}; + +/** + * @param {string=} opt_type + * @param {Function=} opt_fn + * @return {!angular.JQLite} + */ +angular.JQLite.unbind = function(opt_type, opt_fn) {}; + +/** + * @param {string=} opt_value + * @return {!angular.JQLite|string} + */ +angular.JQLite.val = function(opt_value) {}; + +/** + * @param {JQLiteSelector} element + * @return {!angular.JQLite} + */ +angular.JQLite.wrap = function(element) {}; + +/** + * @typedef {{ + * animation: + * function(string, function(...*):angular.Animation):!angular.Module, + * config: function((Function|Array.<string|Function>)):!angular.Module, + * constant: function(string, *):angular.Module, + * controller: + * (function(string, (Function|Array.<string|Function>)):!angular.Module| + * function(!Object.<(Function|Array.<string|Function>)>): + * !angular.Module), + * directive: + * (function(string, (Function|Array.<string|Function>)):!angular.Module| + * function(!Object.<(Function|Array.<string|Function>)>): + * !angular.Module), + * factory: + * function(string, (Function|Array.<string|Function>)):!angular.Module, + * filter: + * function(string, (Function|Array.<string|Function>)):!angular.Module, + * name: string, + * provider: function(string, + * (Object|Function|Array.<string|Function>)):!angular.Module, + * requires: !Array.<string>, + * run: function((Function|Array.<string|Function>)):!angular.Module, + * service: + * function(string, (Function|Array.<string|Function>)):!angular.Module, + * value: function(string, *):!angular.Module + * }} + */ +angular.Module; + +/** + * @param {string} name + * @param {function(...*):angular.Animation} animationFactory + */ +angular.Module.animation = function(name, animationFactory) {}; + +/** + * @param {Function|Array.<string|Function>} configFn + * @return {!angular.Module} + */ +angular.Module.config = function(configFn) {}; + +/** + * @param {string} name + * @param {*} object + * @return {!angular.Module} + */ +angular.Module.constant = function(name, object) {}; + +/** + * @param {string} name + * @param {Function|Array.<string|Function>} constructor + * @return {!angular.Module} + */ +angular.Module.controller = function(name, constructor) {}; + +/** + * @param {string} name + * @param {Function|Array.<string|Function>} directiveFactory + * @return {!angular.Module} + */ +angular.Module.directive = function(name, directiveFactory) {}; + +/** + * @param {string} name + * @param {Function|Array.<string|Function>} providerFunction + * @return {!angular.Module} + */ +angular.Module.factory = function(name, providerFunction) {}; + +/** + * @param {string} name + * @param {Function|Array.<string|Function>} filterFactory + * @return {!angular.Module} + */ +angular.Module.filter = function(name, filterFactory) {}; + +/** + * @param {string} name + * @param {Function|Array.<string|Function>} providerType + * @return {!angular.Module} + */ +angular.Module.provider = function(name, providerType) {}; + +/** + * @param {Function|Array.<string|Function>} initializationFn + * @return {!angular.Module} + */ +angular.Module.run = function(initializationFn) {}; + +/** + * @param {string} name + * @param {Function|Array.<string|Function>} constructor + * @return {!angular.Module} + */ +angular.Module.service = function(name, constructor) {}; + +/** + * @param {string} name + * @param {*} object + * @return {!angular.Module} + */ +angular.Module.value = function(name, object) {}; + +/** + * @type {string} + */ +angular.Module.name = ''; + +/** + * @type {Array.<string>} + */ +angular.Module.requires; + +/** + * @typedef {{ + * $$phase: string, + * $apply: function((string|function(!angular.Scope))=):*, + * $applyAsync: function((string|function(!angular.Scope))=), + * $broadcast: function(string, ...*), + * $destroy: function(), + * $digest: function(), + * $emit: function(string, ...*), + * $eval: function((string|function(!angular.Scope))=, Object=):*, + * $evalAsync: function((string|function())=), + * $id: string, + * $new: function(boolean=):!angular.Scope, + * $on: function(string, function(!angular.Scope.Event, ...?)):function(), + * $parent: !angular.Scope, + * $root: !angular.Scope, + * $watch: function( + * (string|Function), (string|Function)=, boolean=):function(), + * $watchCollection: function( + * (string|Function), (string|Function)=):function(), + * $watchGroup: function( + * Array.<string|Function>, (string|Function)=):function() + * }} + */ +angular.Scope; + +/** @type {string} */ +angular.Scope.$$phase; + +/** + * @param {(string|function(!angular.Scope))=} opt_exp + * @return {*} + */ +angular.Scope.$apply = function(opt_exp) {}; + +/** + * @param {string} name + * @param {...*} args + */ +angular.Scope.$broadcast = function(name, args) {}; + +angular.Scope.$destroy = function() {}; + +angular.Scope.$digest = function() {}; + +/** + * @param {string} name + * @param {...*} args + */ +angular.Scope.$emit = function(name, args) {}; + +/** + * @param {(string|function())=} opt_exp + * @param {Object=} opt_locals + * @return {*} + */ +angular.Scope.$eval = function(opt_exp, opt_locals) {}; + +/** + * @param {(string|function())=} opt_exp + */ +angular.Scope.$evalAsync = function(opt_exp) {}; + +/** @type {string} */ +angular.Scope.$id; + +/** + * @param {boolean=} opt_isolate + * @return {!angular.Scope} + */ +angular.Scope.$new = function(opt_isolate) {}; + +/** + * @param {string} name + * @param {function(!angular.Scope.Event, ...?)} listener + * @return {function()} + */ +angular.Scope.$on = function(name, listener) {}; + +/** @type {!angular.Scope} */ +angular.Scope.$parent; + +/** @type {!angular.Scope} */ +angular.Scope.$root; + +/** + * @param {string|!Function} exp + * @param {(string|Function)=} opt_listener + * @param {boolean=} opt_objectEquality + * @return {function()} + */ +angular.Scope.$watch = function(exp, opt_listener, opt_objectEquality) {}; + +/** + * @param {string|!Function} exp + * @param {(string|Function)=} opt_listener + * @return {function()} + */ +angular.Scope.$watchCollection = function(exp, opt_listener) {}; + +/** + * @typedef {{ + * currentScope: !angular.Scope, + * defaultPrevented: boolean, + * name: string, + * preventDefault: function(), + * stopPropagation: function(), + * targetScope: !angular.Scope + * }} + */ +angular.Scope.Event; + +/** @type {!angular.Scope} */ +angular.Scope.Event.currentScope; + +/** @type {boolean} */ +angular.Scope.Event.defaultPrevented; + +/** @type {string} */ +angular.Scope.Event.name; + +angular.Scope.Event.preventDefault = function() {}; + +angular.Scope.Event.stopPropagation = function() {}; + +/** @type {!angular.Scope} */ +angular.Scope.Event.targetScope; + +/** + * @type {Object} + */ +angular.version = {}; + +/** + * @type {string} + */ +angular.version.full = ''; + +/** + * @type {number} + */ +angular.version.major = 0; + +/** + * @type {number} + */ +angular.version.minor = 0; + +/** + * @type {number} + */ +angular.version.dot = 0; + +/** + * @type {string} + */ +angular.version.codeName = ''; + +/****************************************************************************** + * $anchorScroll Service + *****************************************************************************/ + +/** + * @typedef {function()} + */ +angular.$anchorScroll; + +/****************************************************************************** + * $anchorScrollProvider Service + *****************************************************************************/ + +/** + * @typedef {{ + * disableAutoScrolling: function() + * }} + */ +angular.$anchorScrollProvider; + +/** + * @type {function()} + */ +angular.$anchorScrollProvider.disableAutoScrolling = function() {}; + +/****************************************************************************** + * $animate Service + *****************************************************************************/ + +/** + * @constructor + */ +angular.$animate; + +/** + * @param {JQLiteSelector} element + * @param {Object} from + * @param {Object} to + * @param {string=} opt_className + * @param {Object.<string, *>=} opt_options + * @return {!angular.$q.Promise} + */ +angular.$animate.prototype.animate = function( + element, from, to, opt_className, opt_options) {}; + +/** + * @param {JQLiteSelector} element + * @param {JQLiteSelector} parentElement + * @param {JQLiteSelector} afterElement + * @param {Object.<string, *>=} opt_options + * @return {!angular.$q.Promise} + */ +angular.$animate.prototype.enter = function( + element, parentElement, afterElement, opt_options) {}; + +/** + * @param {JQLiteSelector} element + * @param {Object.<string, *>=} opt_options + * @return {!angular.$q.Promise} + */ +angular.$animate.prototype.leave = function(element, opt_options) {}; + +/** + * @param {JQLiteSelector} element + * @param {JQLiteSelector} parentElement + * @param {JQLiteSelector} afterElement + * @param {Object.<string, *>=} opt_options + * @return {!angular.$q.Promise} + */ +angular.$animate.prototype.move = function( + element, parentElement, afterElement, opt_options) {}; + +/** + * @param {JQLiteSelector} element + * @param {string} className + * @param {Object.<string, *>=} opt_options + * @return {!angular.$q.Promise} + */ +angular.$animate.prototype.addClass = function( + element, className, opt_options) {}; + +/** + * @param {JQLiteSelector} element + * @param {string} className + * @param {Object.<string, *>=} opt_options + * @return {!angular.$q.Promise} + */ +angular.$animate.prototype.removeClass = function( + element, className, opt_options) {}; + +/** + * @param {JQLiteSelector} element + * @param {string} add + * @param {string} remove + * @param {Object.<string, *>=} opt_options + * @return {!angular.$q.Promise} + */ +angular.$animate.prototype.setClass = function( + element, add, remove, opt_options) {}; + +/** + * @param {boolean=} opt_value + * @param {JQLiteSelector=} opt_element + * @return {boolean} + */ +angular.$animate.prototype.enabled = function(opt_value, opt_element) {}; + +/** + * @param {angular.$q.Promise} animationPromise + */ +angular.$animate.prototype.cancel = function(animationPromise) {}; + +/****************************************************************************** + * $animateProvider Service + *****************************************************************************/ + +/** + * @constructor + */ +angular.$animateProvider; + +/** + * @param {string} name + * @param {Function} factory + */ +angular.$animateProvider.prototype.register = function(name, factory) {}; + +/** + * @param {RegExp=} opt_expression + */ +angular.$animateProvider.prototype.classNameFilter = function( + opt_expression) {}; + +/****************************************************************************** + * $compile Service + *****************************************************************************/ + +/** + * @typedef { + * function( + * (JQLiteSelector|Object), + * function(!angular.Scope, Function=)=, number=): + * function(!angular.Scope, + * function(!angular.JQLite, !angular.Scope=)=): !angular.JQLite} + */ +angular.$compile; + +/****************************************************************************** + * $cacheFactory Service + *****************************************************************************/ + +/** + * @typedef { + * function(string, angular.$cacheFactory.Options=): + * !angular.$cacheFactory.Cache} + */ +angular.$cacheFactory; + +/** + * @typedef {function(string): ?angular.$cacheFactory.Cache} + */ +angular.$cacheFactory.get; + +/** @typedef {{capacity: (number|undefined)}} */ +angular.$cacheFactory.Options; + +/** + * @template T + * @constructor + */ +angular.$cacheFactory.Cache = function() {}; + +/** + * @return {!angular.$cacheFactory.Cache.Info} + */ +angular.$cacheFactory.Cache.prototype.info = function() {}; + +/** + * @param {string} key + * @param {T} value + */ +angular.$cacheFactory.Cache.prototype.put = function(key, value) {}; + +/** + * @param {string} key + * @return {T} + */ +angular.$cacheFactory.Cache.prototype.get = function(key) {}; + +/** + * @param {string} key + */ +angular.$cacheFactory.Cache.prototype.remove = function(key) {}; + +angular.$cacheFactory.Cache.prototype.removeAll = function() {}; +angular.$cacheFactory.Cache.prototype.destroy = function() {}; + +/** + * @typedef {{ + * id: string, + * size: number, + * options: angular.$cacheFactory.Options + * }} + */ +angular.$cacheFactory.Cache.Info; + +/****************************************************************************** + * $controller Service + *****************************************************************************/ + +/** + * @typedef {function((Function|string), Object):Object} + */ +angular.$controller; + +/****************************************************************************** + * $controllerProvider Service + *****************************************************************************/ + +/** + * @typedef {{ + * register: function((string|Object), (Function|Array)), + * allowGlobals: function() + * }} + */ +angular.$controllerProvider; + +/****************************************************************************** + * $exceptionHandler Service + *****************************************************************************/ + +/** + * @typedef {function(Error, string=)} + */ +angular.$exceptionHandler; + +/****************************************************************************** + * $filter Service + *****************************************************************************/ + +/** + * @typedef {function(string): !Function} + */ +angular.$filter; + +/** + * The 'orderBy' filter is available through $filterProvider and AngularJS + * injection; but is not accessed through a documented public API of AngularJS. + * <p>In current AngularJS version the injection is satisfied by + * angular.orderByFunction, where the implementation is found. + * <p>See http://docs.angularjs.org/api/ng.filter:orderBy. + * @typedef {function(Array, + * (string|function(?):*|Array.<(string|function(?):*)>), + * boolean=): Array} + */ +angular.$filter.orderBy; + +/****************************************************************************** + * $filterProvider Service + *****************************************************************************/ + +/** + * @typedef {{ + * register: function(string, (!Function|!Array.<string|!Function>)) + * }} + */ +angular.$filterProvider; + +/** + * @param {string} name + * @param {(!Function|!Array.<string|!Function>)} fn + */ +angular.$filterProvider.register = function(name, fn) {}; + +/****************************************************************************** + * $http Service + *****************************************************************************/ + +/** + * This is a typedef because the closure compiler does not allow + * defining a type that is a function with properties. + * If you are trying to use the $http service as a function, try + * using one of the helper functions instead. + * @typedef {{ + * delete: function(string, angular.$http.Config=):!angular.$http.HttpPromise, + * get: function(string, angular.$http.Config=):!angular.$http.HttpPromise, + * head: function(string, angular.$http.Config=):!angular.$http.HttpPromise, + * jsonp: function(string, angular.$http.Config=):!angular.$http.HttpPromise, + * post: function(string, *, angular.$http.Config=): + * !angular.$http.HttpPromise, + * put: function(string, *, angular.$http.Config=):!angular.$http.HttpPromise, + * defaults: angular.$http.Config, + * pendingRequests: !Array.<angular.$http.Config> + * }} + */ +angular.$http; + +/** + * @typedef {{ + * cache: (boolean|!angular.$cacheFactory.Cache|undefined), + * data: (string|Object|undefined), + * headers: (Object|undefined), + * method: (string|undefined), + * params: (Object.<(string|Object)>|undefined), + * responseType: (string|undefined), + * timeout: (number|!angular.$q.Promise|undefined), + * transformRequest: + * (function((string|Object), Object):(string|Object)| + * Array.<function((string|Object), Object):(string|Object)>|undefined), + * transformResponse: + * (function((string|Object), Object):(string|Object)| + * Array.<function((string|Object), Object):(string|Object)>|undefined), + * url: (string|undefined), + * withCredentials: (boolean|undefined), + * xsrfCookieName: (string|undefined), + * xsrfHeaderName: (string|undefined) + * }} + */ +angular.$http.Config; + +angular.$http.Config.transformRequest; + +angular.$http.Config.transformResponse; + +// /** +// * This extern is currently incomplete as delete is a reserved word. +// * To use delete, index $http. +// * Example: $http['delete'](url, opt_config); +// * @param {string} url +// * @param {angular.$http.Config=} opt_config +// * @return {!angular.$http.HttpPromise} +// */ +// angular.$http.delete = function(url, opt_config) {}; + +/** + * @param {string} url + * @param {angular.$http.Config=} opt_config + * @return {!angular.$http.HttpPromise} + */ +angular.$http.get = function(url, opt_config) {}; + +/** + * @param {string} url + * @param {angular.$http.Config=} opt_config + * @return {!angular.$http.HttpPromise} + */ +angular.$http.head = function(url, opt_config) {}; + +/** + * @param {string} url + * @param {angular.$http.Config=} opt_config + * @return {!angular.$http.HttpPromise} + */ +angular.$http.jsonp = function(url, opt_config) {}; + +/** + * @param {string} url + * @param {*} data + * @param {angular.$http.Config=} opt_config + * @return {!angular.$http.HttpPromise} + */ +angular.$http.post = function(url, data, opt_config) {}; + +/** + * @param {string} url + * @param {*} data + * @param {angular.$http.Config=} opt_config + * @return {!angular.$http.HttpPromise} + */ +angular.$http.put = function(url, data, opt_config) {}; + +/** + * @type {angular.$http.Config} + */ +angular.$http.defaults; + +/** + * @type {Array.<angular.$http.Config>} + * @const + */ +angular.$http.pendingRequests; + +/** + * @typedef {{ + * request: (undefined|(function(!angular.$http.Config): + * !angular.$http.Config|!angular.$q.Promise.<!angular.$http.Config>)), + * requestError: (undefined|(function(Object): !angular.$q.Promise|Object)), + * response: (undefined|(function(!angular.$http.Response): + * !angular.$http.Response|!angular.$q.Promise.<!angular.$http.Response>)), + * responseError: (undefined|(function(Object): !angular.$q.Promise|Object)) + * }} + */ +angular.$http.Interceptor; + +/** + * @typedef {{ + * defaults: !angular.$http.Config, + * interceptors: !Array.<string|function(...*): !angular.$http.Interceptor>, + * useApplyAsync: function(boolean=):(boolean|!angular.$HttpProvider) + * }} + */ +angular.$HttpProvider; + +/** + * @type {angular.$http.Config} + */ +angular.$HttpProvider.defaults; + +/** + * @type {!Array.<string|function(...*): !angular.$http.Interceptor>} + */ +angular.$HttpProvider.interceptors; + +/** + * @param {boolean=} opt_value + * @return {boolean|!angular.$HttpProvider} + */ +angular.$HttpProvider.useApplyAsync = function(opt_value) {}; + +/****************************************************************************** + * $injector Service + *****************************************************************************/ + +/** + * @typedef {{ + * annotate: function((Function|Array.<string|Function>)):Array.<string>, + * get: function(string):(?), + * has: function(string):boolean, + * instantiate: function(Function, Object=):Object, + * invoke: function( + * (!Function|Array.<string|!Function>), Object=, Object=):(?) + * }} + */ +angular.$injector; + +/** + * @param {(!Function|Array.<string|!Function>)} fn + * @return {Array.<string>} + */ +angular.$injector.annotate = function(fn) {}; + +/** + * @param {string} name + * @return {?} + */ +angular.$injector.get = function(name) {}; + +/** + * @param {string} name + * @return {boolean} + */ +angular.$injector.has = function(name) {}; + +/** + * @param {!Function} type + * @param {Object=} opt_locals + * @return {Object} + */ +angular.$injector.instantiate = function(type, opt_locals) {}; + +/** + * @param {(!Function|Array.<string|!Function>)} fn + * @param {Object=} opt_self + * @param {Object=} opt_locals + * @return {?} + */ +angular.$injector.invoke = function(fn, opt_self, opt_locals) {}; + +/****************************************************************************** + * $interpolateProvider Service + *****************************************************************************/ + +/** + * @typedef {{ + * startSymbol: function(string), + * endSymbol: function(string) + * }} + */ +angular.$interpolateProvider; + +/** @type {function(string)} */ +angular.$interpolateProvider.startSymbol; + +/** @type {function(string)} */ +angular.$interpolateProvider.endSymbol; + +/****************************************************************************** + * $interval Service + *****************************************************************************/ + +/** + * @typedef { + * function(function(), number=, number=, boolean=):!angular.$q.Promise + * } + */ +angular.$interval; + +/** + * Augment the angular.$interval type definition by reopening the type via an + * artificial angular.$interval instance. + * + * This allows us to define methods on function objects which is something + * that can't be expressed via typical type annotations. + * + * @type {angular.$interval} + */ +angular.$interval_; + +/** + * @type {function(!angular.$q.Promise):boolean} + */ +angular.$interval_.cancel = function(promise) {}; + +/****************************************************************************** + * $location Service + *****************************************************************************/ + +/** + * @typedef {{ + * absUrl: function():string, + * hash: function(string=):string, + * host: function():string, + * path: function(string=):(string|!angular.$location), + * port: function():number, + * protocol: function():string, + * replace: function(), + * search: function((string|Object.<string, string>)=, + * ?(string|Array.<string>|boolean)=): (!Object|angular.$location), + * url: function(string=):string + * }} + */ +angular.$location; + +/** + * @return {string} + */ +angular.$location.absUrl = function() {}; + +/** + * @param {string=} opt_hash + * @return {string} + */ +angular.$location.hash = function(opt_hash) {}; + +/** + * @return {string} + */ +angular.$location.host = function() {}; + +/** + * @param {string=} opt_path + * @return {string|!angular.$location} + */ +angular.$location.path = function(opt_path) {}; + +/** + * @return {number} + */ +angular.$location.port = function() {}; + +/** + * @return {string} + */ +angular.$location.protocol = function() {}; + +/** + * @type {function()} + */ +angular.$location.replace = function() {}; + +/** + * @param {(string|Object.<string, string>)=} opt_search + * @param {?(string|Array.<string>|boolean)=} opt_paramValue + * @return {(!Object|angular.$location)} + */ +angular.$location.search = function(opt_search, opt_paramValue) {}; + +/** + * @param {string=} opt_url + * @return {string} + */ +angular.$location.url = function(opt_url) {}; + +/****************************************************************************** + * $locationProvider Service + *****************************************************************************/ + +/** + * @typedef {{ + * enabled: (boolean|undefined), + * requireBase: (boolean|undefined) + * }} + */ +angular.$locationProvider.html5ModeConfig; + +/** + * @typedef {{ + * hashPrefix: + * function(string=): (string|!angular.$locationProvider), + * html5Mode: + * function( + * (boolean|angular.$locationProvider.html5ModeConfig)=): + * (boolean|!angular.$locationProvider) + * }} + */ +angular.$locationProvider; + +/** + * @param {string=} opt_prefix + * @return {string|!angular.$locationProvider} + */ +angular.$locationProvider.hashPrefix = function(opt_prefix) {}; + +/** + * @param {(boolean|angular.$locationProvider.html5ModeConfig)=} opt_mode + * @return {boolean|!angular.$locationProvider} + */ +angular.$locationProvider.html5Mode = function(opt_mode) {}; + +/****************************************************************************** + * $log Service + *****************************************************************************/ + +/** + * @typedef {{ + * error: function(...*), + * info: function(...*), + * log: function(...*), + * warn: function(...*) + * }} + */ +angular.$log; + +/** + * @param {...*} var_args + */ +angular.$log.error = function(var_args) {}; + +/** + * @param {...*} var_args + */ +angular.$log.info = function(var_args) {}; + +/** + * @param {...*} var_args + */ +angular.$log.log = function(var_args) {}; + +/** + * @param {...*} var_args + */ +angular.$log.warn = function(var_args) {}; + +/****************************************************************************** + * NgModelController + *****************************************************************************/ + +/** + * @constructor + */ +angular.NgModelController = function() {}; + +/** + * @type {?} + */ +angular.NgModelController.prototype.$modelValue; + +/** + * @type {boolean} + */ +angular.NgModelController.prototype.$dirty; + +/** + * @type {!Object.<boolean>} + */ +angular.NgModelController.prototype.$error; + +/** + * @type {!Array.<function(?):*>} + */ +angular.NgModelController.prototype.$formatters; + +/** + * @type {boolean} + */ +angular.NgModelController.prototype.$invalid; + +/** + * @type {!Array.<function(?):*>} + */ +angular.NgModelController.prototype.$parsers; + +/** + * @type {boolean} + */ +angular.NgModelController.prototype.$pristine; + +angular.NgModelController.prototype.$render = function() {}; + +/** + * @param {string} key + * @param {boolean} isValid + */ +angular.NgModelController.prototype.$setValidity = function(key, isValid) {}; + +/** + * @param {?} value + */ +angular.NgModelController.prototype.$setViewValue = function(value) {}; + +/** + * @type {boolean} + */ +angular.NgModelController.prototype.$valid; + +/** + * @type {!Array.<function()>} + */ +angular.NgModelController.prototype.$viewChangeListeners; + +/** + * @type {?} + */ +angular.NgModelController.prototype.$viewValue; + +/** + * @type {!Object.<string, function(?, ?):*>} + */ +angular.NgModelController.prototype.$validators; + +/** + * @type {Object.<string, function(?, ?):*>} + */ +angular.NgModelController.prototype.$asyncValidators; + +/** + * @type {boolean} + */ +angular.NgModelController.prototype.$untouched; + +/** + * @type {boolean} + */ +angular.NgModelController.prototype.$touched; + +/** + * @param {?} value + */ +angular.NgModelController.prototype.$isEmpty = function(value) {}; + +/** + * @type {function()} + */ +angular.NgModelController.prototype.$setPristine = function() {}; + +/** + * @type {function()} + */ +angular.NgModelController.prototype.$setDirty = function() {}; + +/** + * @type {function()} + */ +angular.NgModelController.prototype.$setUntouched = function() {}; + +/** + * @type {function()} + */ +angular.NgModelController.prototype.$setTouched = function() {}; + +/** + * @type {function()} + */ +angular.NgModelController.prototype.$rollbackViewValue = function() {}; + +/** + * @type {function()} + */ +angular.NgModelController.prototype.$validate = function() {}; + +/** + * @type {function()} + */ +angular.NgModelController.prototype.$commitViewValue = function() {}; + +/****************************************************************************** + * FormController + *****************************************************************************/ + +/** + * @constructor + */ +angular.FormController = function() {}; + +/** + * @param {*} control + */ +angular.FormController.prototype.$addControl = function(control) {}; + +/** + * @type {function()} + */ +angular.FormController.prototype.$rollbackViewValue = function() {}; + +/** + * @type {function()} + */ +angular.FormController.prototype.$commitViewValue = function() {}; + +/** + * @type {boolean} + */ +angular.FormController.prototype.$dirty; + +/** + * @type {!Object.<boolean|!Array.<*>>} + */ +angular.FormController.prototype.$error; + +/** + * @type {boolean} + */ +angular.FormController.prototype.$invalid; + +/** + * @type {string} + */ +angular.FormController.prototype.$name; + +/** + * @type {boolean} + */ +angular.FormController.prototype.$pristine; + +/** + * @param {*} control + */ +angular.FormController.prototype.$removeControl = function(control) {}; + +/** + * @type {function()} + */ +angular.FormController.prototype.$setDirty = function() {}; + +/** + * @type {function()} + */ +angular.FormController.prototype.$setPristine = function() {}; + +/** + * @type {function()} + */ +angular.FormController.prototype.$setUntouched = function() {}; + +/** + * @type {function()} + */ +angular.FormController.prototype.$setSubmitted = function() {}; + +/** + * @type {boolean} + */ +angular.FormController.prototype.$submitted; + +/** + * @param {string} validationToken + * @param {boolean} isValid + * @param {*} control + */ +angular.FormController.prototype.$setValidity = function( + validationToken, isValid, control) {}; + +/** + * @type {boolean} + */ +angular.FormController.prototype.$valid; + +/****************************************************************************** + * $parse Service + *****************************************************************************/ + +/** + * @typedef {function(string):!angular.$parse.Expression} + */ +angular.$parse; + +/** + * @typedef {function((!angular.Scope|!Object), Object=):*} + */ +angular.$parse.Expression; + +/** + * Augment the angular.$parse.Expression type definition by reopening the type + * via an artificial angular.$parse instance. + * + * This allows us to define methods on function objects which is something + * that can't be expressed via typical type annotations. + * + * @type {angular.$parse.Expression} + */ +angular.$parse_; + +/** + * @type {function((!angular.Scope|!Object), *)} + */ +angular.$parse_.assign = function(scope, newValue) {}; + +/****************************************************************************** + * $provide Service + *****************************************************************************/ + +/** + * @typedef {{ + * constant: function(string, *): Object, + * decorator: function(string, (!Function|Array.<string|!Function>)), + * factory: function(string, (!Function|Array.<string|!Function>)): Object, + * provider: function(string, (!Function|Array.<string|!Function>)): Object, + * service: function(string, (!Function|Array.<string|!Function>)): Object, + * value: function(string, *): Object + * }} + */ +angular.$provide; + +/** + * @param {string} name + * @param {*} object + * @return {Object} + */ +angular.$provide.constant = function(name, object) {}; + +/** + * @param {string} name + * @param {Function|Array.<string|Function>} decorator + */ +angular.$provide.decorator = function(name, decorator) {}; + +/** + * @param {string} name + * @param {Function|Array.<string|Function>} providerFunction + * @return {Object} + */ +angular.$provide.factory = function(name, providerFunction) {}; + +/** + * @param {string} name + * @param {Function|Array.<string|Function>} providerType + * @return {Object} + */ +angular.$provide.provider = function(name, providerType) {}; + +/** + * @param {string} name + * @param {Function|Array.<string|Function>} constructor + * @return {Object} + */ +angular.$provide.service = function(name, constructor) {}; + +/** + * @param {string} name + * @param {*} object + * @return {Object} + */ +angular.$provide.value = function(name, object) {}; + +/****************************************************************************** + * $route Service + *****************************************************************************/ + +/** + * @typedef {{ + * reload: function(), + * current: !angular.$route.Route, + * routes: Array.<!angular.$route.Route> + * }} + */ +angular.$route; + +/** @type {function()} */ +angular.$route.reload = function() {}; + +/** + * @param {!Object<string,string>} object + */ +angular.$route.updateParams = function(object) {}; + +/** @type {!angular.$route.Route} */ +angular.$route.current; + +/** @type {Array.<!angular.$route.Route>} */ +angular.$route.routes; + +/** + * @typedef {{ + * $route: angular.$routeProvider.Params, + * locals: Object.<string, *>, + * params: Object.<string, string>, + * pathParams: Object.<string, string>, + * scope: Object.<string, *>, + * originalPath: (string|undefined), + * regexp: (RegExp|undefined) + * }} + */ +angular.$route.Route; + +/** @type {angular.$routeProvider.Params} */ +angular.$route.Route.$route; + +/** @type {Object.<string, *>} */ +angular.$route.Route.locals; + +/** @type {Object.<string, string>} */ +angular.$route.Route.params; + +/** @type {Object.<string, string>} */ +angular.$route.Route.pathParams; + +/** @type {Object.<string, *>} */ +angular.$route.Route.scope; + +/** @type {string|undefined} */ +angular.$route.Route.originalPath; + +/** @type {RegExp|undefined} */ +angular.$route.Route.regexp; + +/****************************************************************************** + * $routeParams Service + *****************************************************************************/ + +// TODO: This should be !Object.<string|boolean> because valueless query params +// (without even an equal sign) come through as boolean "true". + +/** @typedef {!Object.<string>} */ +angular.$routeParams; + +/****************************************************************************** + * $routeProvider Service + *****************************************************************************/ + +/** + * @typedef {{ + * otherwise: + * function( + * (string|!angular.$routeProvider.Params)): !angular.$routeProvider, + * when: + * function( + * string, angular.$routeProvider.Params): !angular.$routeProvider + * }} + */ +angular.$routeProvider; + +/** + * @param {(string|!angular.$routeProvider.Params)} params + * @return {!angular.$routeProvider} + */ +angular.$routeProvider.otherwise = function(params) {}; + +/** + * @param {string} path + * @param {angular.$routeProvider.Params} route + * @return {!angular.$routeProvider} + */ +angular.$routeProvider.when = function(path, route) {}; + +/** + * @typedef {{ + * controller: (Function|Array.<string|Function>|string|undefined), + * controllerAs: (string|undefined), + * template: (string|undefined), + * templateUrl: (string|function(!Object.<string,string>=)|undefined), + * resolve: (Object.<string, ( + * string|Function|Array.<string|Function>|!angular.$q.Promise + * )>|undefined), + * redirectTo: ( + * string|function(Object.<string>, string, Object): string|undefined), + * reloadOnSearch: (boolean|undefined) + * }} + */ +angular.$routeProvider.Params; + +/** @type {Function|Array.<string|Function>|string} */ +angular.$routeProvider.Params.controller; + +/** @type {string} */ +angular.$routeProvider.Params.controllerAs; + +/** @type {string} */ +angular.$routeProvider.Params.template; + +/** @type {string|function(!Object.<string,string>=)} */ +angular.$routeProvider.Params.templateUrl; + +/** + * @type { + * Object.<string, ( + * string|Function|Array.<string|Function>|!angular.$q.Promise + * )>} + */ +angular.$routeProvider.Params.resolve; + +/** @type {string|function(Object.<string>, string, Object): string} */ +angular.$routeProvider.Params.redirectTo; + +/** @type {boolean} */ +angular.$routeProvider.Params.reloadOnSearch; + +/****************************************************************************** + * $sanitize Service + *****************************************************************************/ + +/** @typedef {function(string):string} */ +angular.$sanitize; + +/****************************************************************************** + * $sce Service + *****************************************************************************/ + +/** + * Ref: http://docs.angularjs.org/api/ng.$sce + * + * @typedef {{ + * HTML: string, + * CSS: string, + * URL: string, + * JS: string, + * RESOURCE_URL: string, + * isEnabled: function(): boolean, + * parseAs: function(string, string): !angular.$parse.Expression, + * getTrusted: function(string, *): string, + * trustAs: function(string, string): *, + * parseAsHtml: function(string): !angular.$parse.Expression, + * parseAsCss: function(string): !angular.$parse.Expression, + * parseAsUrl: function(string): !angular.$parse.Expression, + * parseAsJs: function(string): !angular.$parse.Expression, + * parseAsResourceUrl: function(string): !angular.$parse.Expression, + * getTrustedHtml: function(*): string, + * getTrustedCss: function(*): string, + * getTrustedUrl: function(*): string, + * getTrustedJs: function(*): string, + * getTrustedResourceUrl: function(*): string, + * trustAsHtml: function(string): *, + * trustAsCss: function(string): *, + * trustAsUrl: function(string): *, + * trustAsJs: function(string): *, + * trustAsResourceUrl: function(string): * + * }} + *****************************************************************************/ +angular.$sce; + + +/** @const {string} */ +angular.$sce.HTML; + +/** @const {string} */ +angular.$sce.CSS; + +/** @const {string} */ +angular.$sce.URL; + +/** @const {string} */ +angular.$sce.JS; + +/** @const {string} */ +angular.$sce.RESOURCE_URL; + +/** @return {boolean} */ +angular.$sce.isEnabled = function() {}; + +/** + * @param {string} type + * @param {string} expression + * @return {!angular.$parse.Expression} + */ +angular.$sce.parseAs = function(type, expression) {}; + +/** + * @param {string} type + * @param {*} maybeTrusted + * @return {string} + */ +angular.$sce.getTrusted = function(type, maybeTrusted) {}; + +/** + * @param {string} type + * @param {string} trustedValue + * @return {*} + */ +angular.$sce.trustAs = function(type, trustedValue) {}; + +/** + * @param {string} expression + * @return {!angular.$parse.Expression} + */ +angular.$sce.parseAsHtml = function(expression) {}; + +/** + * @param {string} expression + * @return {!angular.$parse.Expression} + */ +angular.$sce.parseAsCss = function(expression) {}; + +/** + * @param {string} expression + * @return {!angular.$parse.Expression} + */ +angular.$sce.parseAsUrl = function(expression) {}; + +/** + * @param {string} expression + * @return {!angular.$parse.Expression} + */ +angular.$sce.parseAsJs = function(expression) {}; + +/** + * @param {string} expression + * @return {!angular.$parse.Expression} + */ +angular.$sce.parseAsResourceUrl = function(expression) {}; + +/** + * @param {*} maybeTrusted + * @return {string} + */ +angular.$sce.getTrustedHtml = function(maybeTrusted) {}; + +/** + * @param {*} maybeTrusted + * @return {string} + */ +angular.$sce.getTrustedCss = function(maybeTrusted) {}; + +/** + * @param {*} maybeTrusted + * @return {string} + */ +angular.$sce.getTrustedUrl = function(maybeTrusted) {}; + +/** + * @param {*} maybeTrusted + * @return {string} + */ +angular.$sce.getTrustedJs = function(maybeTrusted) {}; + +/** + * @param {*} maybeTrusted + * @return {string} + */ +angular.$sce.getTrustedResourceUrl = function(maybeTrusted) {}; + +/** + * @param {string} trustedValue + * @return {*} + */ +angular.$sce.trustAsHtml = function(trustedValue) {}; + +/** + * @param {string} trustedValue + * @return {*} + */ +angular.$sce.trustAsCss = function(trustedValue) {}; + +/** + * @param {string} trustedValue + * @return {*} + */ +angular.$sce.trustAsUrl = function(trustedValue) {}; + +/** + * @param {string} trustedValue + * @return {*} + */ +angular.$sce.trustAsJs = function(trustedValue) {}; + +/** + * @param {string} trustedValue + * @return {*} + */ +angular.$sce.trustAsResourceUrl = function(trustedValue) {}; + +/****************************************************************************** + * $sceDelegate Service + *****************************************************************************/ + +/** + * Ref: http://docs.angularjs.org/api/ng/service/$sceDelegate + * + * @constructor + */ +angular.$sceDelegate = function() {}; + +/** + * @param {string} type + * @param {*} value + * @return {*} + */ +angular.$sceDelegate.prototype.trustAs = function(type, value) {}; + +/** + * Note: because this method overrides Object.prototype.valueOf, the value + * parameter needs to be annotated as optional to keep the compiler happy (as + * otherwise the signature won't match Object.prototype.valueOf). + * + * @override + * @param {*=} value + * @return {*} + */ +angular.$sceDelegate.prototype.valueOf = function(value) {}; + +/** + * @param {string} type + * @param {*} maybeTrusted + * @return {*} + */ +angular.$sceDelegate.prototype.getTrusted = function(type, maybeTrusted) {}; + +/****************************************************************************** + * $sceDelegateProvider Service + *****************************************************************************/ + +/** + * Ref: http://docs.angularjs.org/api/ng/provider/$sceDelegateProvider + * + * @constructor + */ +angular.$sceDelegateProvider = function() {}; + +/** + * @param {Array.<string>=} opt_whitelist + * @return {!Array.<string>} + */ +angular.$sceDelegateProvider.prototype.resourceUrlWhitelist = function( + opt_whitelist) {}; + +/** + * @param {Array.<string>=} opt_blacklist + * @return {!Array.<string>} + */ +angular.$sceDelegateProvider.prototype.resourceUrlBlacklist = function( + opt_blacklist) {}; + +/****************************************************************************** + * $templateCache Service + *****************************************************************************/ + +/** + * @typedef {!angular.$cacheFactory.Cache.<string>} + */ +angular.$templateCache; + +/****************************************************************************** + * $timeout Service + *****************************************************************************/ + +/** + * @typedef {function(function(), number=, boolean=):!angular.$q.Promise} + */ +angular.$timeout; + +/** + * Augment the angular.$timeout type definition by reopening the type via an + * artificial angular.$timeout instance. + * + * This allows us to define methods on function objects which is something + * that can't be expressed via typical type annotations. + * + * @type {angular.$timeout} + */ +angular.$timeout_; + +/** + * @type {function(angular.$q.Promise=):boolean} + */ +angular.$timeout_.cancel = function(promise) {}; + +/****************************************************************************** + * $window Service + *****************************************************************************/ + +/** @typedef {!Window} */ +angular.$window; diff --git a/src/closure/conf/externs/bingmaps.js b/src/closure/conf/externs/bingmaps.js new file mode 100755 index 0000000000000000000000000000000000000000..99da4d0224839e7e26651f37279d08f2927e73e9 --- /dev/null +++ b/src/closure/conf/externs/bingmaps.js @@ -0,0 +1,176 @@ +/** + * @externs + */ + + + +/** + * @constructor + */ +var BingMapsCoverageArea = function() {}; + + +/** + * @type {Array.<number>} + */ +BingMapsCoverageArea.prototype.bbox; + + +/** + * @type {number} + */ +BingMapsCoverageArea.prototype.zoomMax; + + +/** + * @type {number} + */ +BingMapsCoverageArea.prototype.zoomMin; + + + +/** + * @constructor + */ +var BingMapsImageryProvider = function() {}; + + +/** + * @type {string} + */ +BingMapsImageryProvider.prototype.attribution; + + +/** + * @type {Array.<BingMapsCoverageArea>} + */ +BingMapsImageryProvider.prototype.coverageAreas; + + + +/** + * @constructor + */ +var BingMapsImageryMetadataResponse = function() {}; + + +/** + * @type {string} + */ +BingMapsImageryMetadataResponse.prototype.authenticationResultCode; + + +/** + * @type {string} + */ +BingMapsImageryMetadataResponse.prototype.brandLogoUri; + + +/** + * @type {string} + */ +BingMapsImageryMetadataResponse.prototype.copyright; + + +/** + * @type {Array.<BingMapsResourceSet>} + */ +BingMapsImageryMetadataResponse.prototype.resourceSets; + + +/** + * @type {number} + */ +BingMapsImageryMetadataResponse.prototype.statusCode; + + +/** + * @type {string} + */ +BingMapsImageryMetadataResponse.prototype.statusDescription; + + +/** + * @type {string} + */ +BingMapsImageryMetadataResponse.prototype.traceId; + + + +/** + * @constructor + */ +var BingMapsResource = function() {}; + + +/** + * @type {number} + */ +BingMapsResource.prototype.imageHeight; + + +/** + * @type {string} + */ +BingMapsResource.prototype.imageUrl; + + +/** + * @type {Array.<string>} + */ +BingMapsResource.prototype.imageUrlSubdomains; + + +/** + * @type {number} + */ +BingMapsResource.prototype.imageWidth; + + +/** + * @type {Array.<BingMapsImageryProvider>} + */ +BingMapsResource.prototype.imageryProviders; + + +/** + * @type {Object} + */ +BingMapsResource.prototype.vintageEnd; + + +/** + * @type {Object} + */ +BingMapsResource.prototype.vintageStart; + + +/** + * @type {number} + */ +BingMapsResource.prototype.zoomMax; + + +/** + * @type {number} + */ +BingMapsResource.prototype.zoomMin; + + + +/** + * @constructor + */ +var BingMapsResourceSet = function() {}; + + +/** + * @type {number} + */ +BingMapsResourceSet.prototype.estimatedTotal; + + +/** + * @type {Array.<BingMapsResource>} + */ +BingMapsResourceSet.prototype.resources; \ No newline at end of file diff --git a/src/closure/conf/externs/bootstrap.js b/src/closure/conf/externs/bootstrap.js new file mode 100755 index 0000000000000000000000000000000000000000..fb49fcfded06a098b966e90649ddb20dbd69d2b5 --- /dev/null +++ b/src/closure/conf/externs/bootstrap.js @@ -0,0 +1,242 @@ +/** + * @fileoverview Externs for Twitter Bootstrap + * @see http://twitter.github.com/bootstrap/ + * + * @author Qamal Kosim-Satyaputra + * @externs + */ + + + +// --- Modal --- + + + +/** @constructor */ +jQuery.modal.options = function() {}; + +/** @type {boolean} */ +jQuery.modal.options.prototype.backdrop; + +/** @type {boolean} */ +jQuery.modal.options.prototype.keyboard; + +/** @type {boolean} */ +jQuery.modal.options.prototype.show; + +/** + * @param {=(string|jQuery.modal.options)} opt_eventOrOptions + * @return {jQuery} + */ +jQuery.prototype.modal = function(opt_eventOrOptions) {}; + + + +// --- Dropdown --- + + + +/** + * @return {jQuery} + */ +jQuery.prototype.dropdown = function() {}; + + + +// --- Scroll Spy --- + + + +/** @constructor */ +jQuery.scrollspy.options = function() {}; + +/** @type {number} */ +jQuery.scrollspy.options.prototype.offset; + +/** + * @param {=jQuery.scrollspy.options} opt_options + * @return {jQuery} + */ +jQuery.prototype.scrollspy = function(opt_options) {}; + + + +// --- Tabs --- + + + +/** + * @param {=string} opt_event + * @return {jQuery} + */ +jQuery.prototype.tab = function(opt_event) {}; + + + +// --- Tooltips --- + + + +/** @constructor */ +jQuery.tooltip.options = function() {}; + +/** @type {boolean} */ +jQuery.tooltip.prototype.animation; + +/** @type {string|function} */ +jQuery.tooltip.prototype.placement; + +/** @type {string} */ +jQuery.tooltip.prototype.selector; + +/** @type {string|function} */ +jQuery.tooltip.prototype.title; + +/** @type {string} */ +jQuery.tooltip.prototype.trigger; + +/** @type {number|{show: number, hide: number}} */ +jQuery.tooltip.prototype.delay; + +/** + * @param {=(string|jQuery.tooltip.options)} opt_eventOrOptions + * @return {jQuery} + */ +jQuery.prototype.tooltip = function(opt_eventOrOptions) {}; + + + +// --- Popovers --- + + + +/** @constructor */ +jQuery.popover.options = function() {}; + +/** @type {boolean} */ +jQuery.popover.prototype.animation; + +/** @type {string|function} */ +jQuery.popover.prototype.placement; + +/** @type {string} */ +jQuery.popover.prototype.selector; + +/** @type {string} */ +jQuery.popover.prototype.trigger; + +/** @type {string|function} */ +jQuery.popover.prototype.title; + +/** @type {string|function} */ +jQuery.popover.prototype.content; + +/** @type {number|{show: number, hide: number}} */ +jQuery.popover.prototype.delay; + +/** + * @param {=(string|jQuery.tooltip.options)} opt_eventOrOptions + * @return {jQuery} + */ +jQuery.prototype.popover = function(opt_eventOrOptions) {}; + + + +// --- Alerts --- + + + +/** + * @param {=string} opt_event + * @return {jQuery} + */ +jQuery.prototype.alert = function(opt_event) {}; + + + +// --- Buttons --- + + + +/** + * @param {=string} opt_state + * @return {jQuery} + */ +jQuery.prototype.button = function(opt_state) {}; + + + +// --- Collapse --- + + + +/** @constructor */ +jQuery.collapse.options = function() {}; + +/** @type {jQuerySelector} */ +jQuery.collapse.options.prototype.parent; + +/** @type {boolean} */ +jQuery.collapse.options.prototype.toggle; + +/** + * @param {=(string|jQuery.collapse.options)} opt_eventOrOptions + */ +jQuery.prototype.collapse = function(opt_eventOrOptions) {}; + + + +// --- Carousel --- + + + +/** @constructor */ +jQuery.carousel.options = function() {}; + +/** @type {number} */ +jQuery.carousel.options.prototype.interval; + +/** @type {string} */ +jQuery.carousel.options.prototype.pause; + +/** + * @param {=(string|jQuery.carousel.options})} opt_eventOrOptions + */ +jQuery.prototype.carousel = function(opt_eventOrOptions) {}; + + + +// --- Typeahead --- + + + +/** @constructor */ +jQuery.typeahead.options = function() {}; + +/** @type {Array} */ +jQuery.typeahead.options.prototype.source; + +/** @type {number} */ +jQuery.typeahead.options.prototype.items; + +/** @type {function} */ +jQuery.typeahead.options.prototype.matcher; + +/** @type {function} */ +jQuery.typeahead.options.prototype.sorter; + +/** @type {function} */ +jQuery.typeahead.options.prototype.highlighter; + +/** + * @param {=(string|jQuery.typeahead.options)} opt_options + * @return {jQuery} + */ +jQuery.prototype.typeahead = function(opt_options) {}; + +/** + * @param {Element|jQuery|jQuerySelector} + * @param {=jQuery.typeahead.options} opt_options + * @return {jQuery} + */ +jQuery.prototype.typeahead.Constructor = function(element, opt_options) {}; \ No newline at end of file diff --git a/src/closure/conf/externs/geojson.js b/src/closure/conf/externs/geojson.js new file mode 100755 index 0000000000000000000000000000000000000000..6ddf03a3cc7ba7623d5442e065046ce92f482adc --- /dev/null +++ b/src/closure/conf/externs/geojson.js @@ -0,0 +1,171 @@ +/** + * @fileoverview Externs for GeoJSON. + * @see http://geojson.org/geojson-spec.html + * @externs + */ + + + +/** + * @constructor + */ +var GeoJSONObject = function() {}; + + +/** + * @type {!Array.<number>|undefined} + */ +GeoJSONObject.prototype.bbox; + + +/** + * @type {string} + */ +GeoJSONObject.prototype.type; + + +/** + * @type {!GeoJSONCRS|undefined} + */ +GeoJSONObject.prototype.crs; + + + +/** + * @constructor + */ +var GeoJSONCRS = function() {}; + + +/** + * CRS type. One of `link` or `name`. + * @type {string} + */ +GeoJSONCRS.prototype.type; + + +/** + * TODO: remove GeoJSONCRSCode when http://jira.codehaus.org/browse/GEOS-5996 + * is fixed and widely deployed. + * @type {!GeoJSONCRSCode|!GeoJSONCRSName|!GeoJSONLink} + */ +GeoJSONCRS.prototype.properties; + + + +/** + * `GeoJSONCRSCode` is not part of the GeoJSON specification, but is generated + * by GeoServer. + * TODO: remove GeoJSONCRSCode when http://jira.codehaus.org/browse/GEOS-5996 + * is fixed and widely deployed. + * @constructor + */ +var GeoJSONCRSCode = function() {}; + + + +/** + * @constructor + */ +var GeoJSONCRSName = function() {}; + + +/** + * TODO: remove this when http://jira.codehaus.org/browse/GEOS-5996 is fixed + * and widely deployed. + * @type {string} + */ +GeoJSONCRSName.prototype.code; + + +/** + * @type {string} + */ +GeoJSONCRSName.prototype.name; + + + +/** + * @constructor + * @extends {GeoJSONObject} + */ +var GeoJSONGeometry = function() {}; + + +/** + * @type {!Array.<number>|!Array.<!Array.<number>>| + * !Array.<!Array.<!Array.<number>>>} + */ +GeoJSONGeometry.prototype.coordinates; + + + +/** + * @constructor + * @extends {GeoJSONObject} + */ +var GeoJSONGeometryCollection = function() {}; + + +/** + * @type {!Array.<GeoJSONGeometry>} + */ +GeoJSONGeometryCollection.prototype.geometries; + + + +/** + * @constructor + * @extends {GeoJSONObject} + */ +var GeoJSONFeature = function() {}; + + +/** + * @type {GeoJSONGeometry|GeoJSONGeometryCollection} + */ +GeoJSONFeature.prototype.geometry; + + +/** + * @type {number|string|undefined} + */ +GeoJSONFeature.prototype.id; + + +/** + * @type {Object.<string, *>} + */ +GeoJSONFeature.prototype.properties; + + + +/** + * @constructor + * @extends {GeoJSONObject} + */ +var GeoJSONFeatureCollection = function() {}; + + +/** + * @type {!Array.<GeoJSONFeature>} + */ +GeoJSONFeatureCollection.prototype.features; + + + +/** + * @constructor + */ +var GeoJSONLink = function() {}; + + +/** + * @type {string} + */ +GeoJSONLink.prototype.href; + +/** + * @type {string} + */ +GeoJSONLink.prototype.type; \ No newline at end of file diff --git a/src/closure/conf/externs/html2canvas.js b/src/closure/conf/externs/html2canvas.js new file mode 100755 index 0000000000000000000000000000000000000000..d12202e32f6fd2db7b14312b65d06e30b9e94c78 --- /dev/null +++ b/src/closure/conf/externs/html2canvas.js @@ -0,0 +1,8 @@ +/** + * + * @param {type} arg1 + * @param {type} arg2 + * @returns {html2canvas} + */ +function html2canvas (arg1, arg2) {}; + diff --git a/src/closure/conf/externs/jquery-1.9.js b/src/closure/conf/externs/jquery-1.9.js new file mode 100755 index 0000000000000000000000000000000000000000..72b80b31763c2810407a6faf2644d318d8c34a5b --- /dev/null +++ b/src/closure/conf/externs/jquery-1.9.js @@ -0,0 +1,2166 @@ +/* + * Copyright 2011 The Closure Compiler Authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @fileoverview Externs for jQuery 1.9.1 + * + * Note that some functions use different return types depending on the number + * of parameters passed in. In these cases, you may need to annotate the type + * of the result in your code, so the JSCompiler understands which type you're + * expecting. For example: + * <code>var elt = /** @type {Element} * / (foo.get(0));</code> + * + * @see http://api.jquery.com/ + * @externs + */ + +/** + * @typedef {(Window|Document|Element|Array.<Element>|string|jQuery| + * NodeList)} + */ +var jQuerySelector; + +/** @typedef {function(...)|Array.<function(...)>} */ +var jQueryCallback; + +/** @typedef { + { + accepts: (Object.<string, string>|undefined), + async: (?boolean|undefined), + beforeSend: (function(jQuery.jqXHR, (jQueryAjaxSettings|Object.<string, *>))|undefined), + cache: (?boolean|undefined), + complete: (function(jQuery.jqXHR, string)|undefined), + contents: (Object.<string, RegExp>|undefined), + contentType: (?string|undefined), + context: (Object.<?, ?>|jQueryAjaxSettings|undefined), + converters: (Object.<string, Function>|undefined), + crossDomain: (?boolean|undefined), + data: (Object.<?, ?>|?string|Array.<?>|undefined), + dataFilter: (function(string, string):?|undefined), + dataType: (?string|undefined), + error: (function(jQuery.jqXHR, string, string)|undefined), + global: (?boolean|undefined), + headers: (Object.<?, ?>|undefined), + ifModified: (?boolean|undefined), + isLocal: (?boolean|undefined), + jsonp: (?string|undefined), + jsonpCallback: (?string|function()|undefined), + mimeType: (?string|undefined), + password: (?string|undefined), + processData: (?boolean|undefined), + scriptCharset: (?string|undefined), + statusCode: (Object.<number, function()>|undefined), + success: (function(?, string, jQuery.jqXHR)|undefined), + timeout: (?number|undefined), + traditional: (?boolean|undefined), + type: (?string|undefined), + url: (?string|undefined), + username: (?string|undefined), + xhr: (function():(ActiveXObject|XMLHttpRequest)|undefined), + xhrFields: (Object.<?, ?>|undefined) + }} */ +var jQueryAjaxSettings; + +/** + * @constructor + * @param {(jQuerySelector|Element|Object|Array.<Element>|jQuery|string| + * function())=} arg1 + * @param {(Element|jQuery|Document| + * Object.<string, (string|function(!jQuery.event=))>)=} arg2 + * @return {!jQuery} + */ +function jQuery(arg1, arg2) {} + +/** + * @constructor + * @extends {jQuery} + * @param {(jQuerySelector|Element|Object|Array.<Element>|jQuery|string| + * function())=} arg1 + * @param {(Element|jQuery|Document| + * Object.<string, (string|function(!jQuery.event=))>)=} arg2 + * @return {!jQuery} + */ +function $(arg1, arg2) {} + +/** + * @param {(jQuerySelector|Array.<Element>|string|jQuery)} arg1 + * @param {Element=} context + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.add = function(arg1, context) {}; + +/** + * @param {(jQuerySelector|Array.<Element>|string|jQuery)=} arg1 + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.addBack = function(arg1) {}; + +/** + * @param {(string|function(number,String))} arg1 + * @return {!jQuery} + */ +jQuery.prototype.addClass = function(arg1) {}; + +/** + * @param {(string|Element|jQuery|function(number))} arg1 + * @param {(string|Element|Array.<Element>|jQuery)=} content + * @return {!jQuery} + */ +jQuery.prototype.after = function(arg1, content) {}; + +/** + * @param {(string|jQueryAjaxSettings|Object.<string,*>)} arg1 + * @param {(jQueryAjaxSettings|Object.<string, *>)=} settings + * @return {jQuery.jqXHR} + */ +jQuery.ajax = function(arg1, settings) {}; + +/** + * @param {(string|jQueryAjaxSettings|Object.<string, *>)} arg1 + * @param {(jQueryAjaxSettings|Object.<string, *>)=} settings + * @return {jQuery.jqXHR} + */ +$.ajax = function(arg1, settings) {}; + +/** + * @param {function(!jQuery.event,XMLHttpRequest,(jQueryAjaxSettings|Object.<string, *>))} handler + * @return {!jQuery} + */ +jQuery.prototype.ajaxComplete = function(handler) {}; + +/** + * @param {function(!jQuery.event,jQuery.jqXHR,(jQueryAjaxSettings|Object.<string, *>),*)} handler + * @return {!jQuery} + */ +jQuery.prototype.ajaxError = function(handler) {}; + +/** + * @param {(string|function((jQueryAjaxSettings|Object.<string, *>),(jQueryAjaxSettings|Object.<string, *>),jQuery.jqXHR))} dataTypes + * @param {function((jQueryAjaxSettings|Object.<string, *>),(jQueryAjaxSettings|Object.<string, *>),jQuery.jqXHR)=} handler + */ +jQuery.ajaxPrefilter = function(dataTypes, handler) {}; + +/** + * @param {(string|function((jQueryAjaxSettings|Object.<string, *>),(jQueryAjaxSettings|Object.<string, *>),jQuery.jqXHR))} dataTypes + * @param {function((jQueryAjaxSettings|Object.<string, *>),(jQueryAjaxSettings|Object.<string, *>),jQuery.jqXHR)=} handler + */ +$.ajaxPrefilter = function(dataTypes, handler) {}; + +/** + * @param {function(!jQuery.event,jQuery.jqXHR,(jQueryAjaxSettings|Object.<string, *>))} handler + * @return {!jQuery} + */ +jQuery.prototype.ajaxSend = function(handler) {}; + +/** @const {jQueryAjaxSettings|Object.<string, *>} */ +jQuery.ajaxSettings; + +/** @const {jQueryAjaxSettings|Object.<string, *>} */ +$.ajaxSettings = {}; + +/** @type {Object.<string, boolean>} */ +jQuery.ajaxSettings.flatOptions = {}; + +/** @type {Object.<string, boolean>} */ +$.ajaxSettings.flatOptions = {}; + +/** @type {boolean} */ +jQuery.ajaxSettings.processData; + +/** @type {boolean} */ +$.ajaxSettings.processData; + +/** @type {Object.<string, string>} */ +jQuery.ajaxSettings.responseFields = {}; + +/** @type {Object.<string, string>} */ +$.ajaxSettings.responseFields = {}; + +/** @param {jQueryAjaxSettings|Object.<string, *>} options */ +jQuery.ajaxSetup = function(options) {}; + +/** @param {jQueryAjaxSettings|Object.<string, *>} options */ +$.ajaxSetup = function(options) {}; + +/** + * @param {function()} handler + * @return {!jQuery} + */ +jQuery.prototype.ajaxStart = function(handler) {}; + +/** + * @param {function()} handler + * @return {!jQuery} + */ +jQuery.prototype.ajaxStop = function(handler) {}; + +/** + * @param {function(!jQuery.event,XMLHttpRequest,(jQueryAjaxSettings|Object.<string, *>), ?)} handler + * @return {!jQuery} + */ +jQuery.prototype.ajaxSuccess = function(handler) {}; + +/** + * @deprecated Please use .addBack(selector) instead. + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.andSelf = function() {}; + +/** + * @param {Object.<string,*>} properties + * @param {(string|number|function()|Object.<string,*>)=} arg2 + * @param {(string|function())=} easing + * @param {function()=} complete + * @return {!jQuery} + */ +jQuery.prototype.animate = function(properties, arg2, easing, complete) {}; + +/** + * @param {(string|Element|Array.<Element>|jQuery|function(number,string))} arg1 + * @param {...(string|Element|Array.<Element>|jQuery)} content + * @return {!jQuery} + */ +jQuery.prototype.append = function(arg1, content) {}; + +/** + * @param {(jQuerySelector|Element|jQuery)} target + * @return {!jQuery} + */ +jQuery.prototype.appendTo = function(target) {}; + +/** + * @param {(string|Object.<string,*>)} arg1 + * @param {(string|number|boolean|function(number,string))=} arg2 + * @return {(string|!jQuery)} + */ +jQuery.prototype.attr = function(arg1, arg2) {}; + +/** + * @param {(string|Element|jQuery|function())} arg1 + * @param {(string|Element|Array.<Element>|jQuery)=} content + * @return {!jQuery} + */ +jQuery.prototype.before = function(arg1, content) {}; + +/** + * @param {(string|Object.<string, function(!jQuery.event=)>)} arg1 + * @param {(Object.<string, *>|function(!jQuery.event=)|boolean)=} eventData + * @param {(function(!jQuery.event=)|boolean)=} arg3 + * @return {!jQuery} + */ +jQuery.prototype.bind = function(arg1, eventData, arg3) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.blur = function(arg1, handler) {}; + +/** + * @constructor + * @private + */ +jQuery.callbacks = function () {}; + +/** + * @param {string=} flags + * @return {jQuery.callbacks} + */ +jQuery.Callbacks = function (flags) {}; + +/** @param {function()} callbacks */ +jQuery.callbacks.prototype.add = function(callbacks) {}; + +/** @return {undefined} */ +jQuery.callbacks.prototype.disable = function() {}; + +/** @return {undefined} */ +jQuery.callbacks.prototype.empty = function() {}; + +/** @param {...*} var_args */ +jQuery.callbacks.prototype.fire = function(var_args) {}; + +/** @return {boolean} */ +jQuery.callbacks.prototype.fired = function() {}; + +/** @param {...*} var_args */ +jQuery.callbacks.prototype.fireWith = function(var_args) {}; + +/** + * @param {function()} callback + * @return {boolean} + * @nosideeffects + */ +jQuery.callbacks.prototype.has = function(callback) {}; + +/** @return {undefined} */ +jQuery.callbacks.prototype.lock = function() {}; + +/** @return {boolean} */ +jQuery.callbacks.prototype.locked = function() {}; + +/** @param {function()} callbacks */ +jQuery.callbacks.prototype.remove = function(callbacks) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.change = function(arg1, handler) {}; + +/** + * @param {jQuerySelector=} selector + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.children = function(selector) {}; + +/** + * @param {string=} queueName + * @return {!jQuery} + */ +jQuery.prototype.clearQueue = function(queueName) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.click = function(arg1, handler) {}; + +/** + * @param {boolean=} withDataAndEvents + * @param {boolean=} deepWithDataAndEvents + * @return {!jQuery} + * @suppress {checkTypes} see https://code.google.com/p/closure-compiler/issues/detail?id=583 + */ +jQuery.prototype.clone = function(withDataAndEvents, deepWithDataAndEvents) {}; + +/** + * @param {(jQuerySelector|jQuery|Element|string)} arg1 + * @param {Element=} context + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.closest = function(arg1, context) {}; + +/** + * @param {Element} container + * @param {Element} contained + * @return {boolean} + */ +jQuery.contains = function(container, contained) {}; + +/** + * @param {Element} container + * @param {Element} contained + * @return {boolean} + */ +$.contains = function(container, contained) {}; + +/** + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.contents = function() {}; + +/** @type {Element|Document} */ +jQuery.prototype.context; + +/** + * @param {(string|Object.<string,*>)} arg1 + * @param {(string|number|function(number,*))=} arg2 + * @return {(string|!jQuery)} + */ +jQuery.prototype.css = function(arg1, arg2) {}; + +/** @type {Object.<string, *>} */ +jQuery.cssHooks; + +/** @type {Object.<string, *>} */ +$.cssHooks; + +/** + * @param {Element} elem + * @param {string=} key + * @param {*=} value + * @return {*} + */ +jQuery.data = function(elem, key, value) {}; + +/** + * @param {(string|Object.<string, *>)=} arg1 + * @param {*=} value + * @return {*} + */ +jQuery.prototype.data = function(arg1, value) {}; + +/** + * @param {Element} elem + * @param {string=} key + * @param {*=} value + * @return {*} + */ +$.data = function(elem, key, value) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.dblclick = function(arg1, handler) {}; + +/** + * @constructor + * @implements {jQuery.Promise} + * @param {function()=} opt_fn + * @see http://api.jquery.com/category/deferred-object/ + */ +jQuery.deferred = function(opt_fn) {}; + +/** + * @constructor + * @extends {jQuery.deferred} + * @param {function()=} opt_fn + * @return {jQuery.Deferred} + */ +jQuery.Deferred = function(opt_fn) {}; + +/** + * @constructor + * @extends {jQuery.deferred} + * @param {function()=} opt_fn + * @see http://api.jquery.com/category/deferred-object/ + */ +$.deferred = function(opt_fn) {}; + +/** + * @constructor + * @extends {jQuery.deferred} + * @param {function()=} opt_fn + * @return {jQuery.deferred} + */ +$.Deferred = function(opt_fn) {}; + +/** + * @override + * @param {jQueryCallback} alwaysCallbacks + * @param {jQueryCallback=} alwaysCallbacks2 + * @return {jQuery.deferred} + */ +jQuery.deferred.prototype.always + = function(alwaysCallbacks, alwaysCallbacks2) {}; + +/** + * @override + * @param {jQueryCallback} doneCallbacks + * @param {jQueryCallback=} doneCallbacks2 + * @return {jQuery.deferred} + */ +jQuery.deferred.prototype.done = function(doneCallbacks, doneCallbacks2) {}; + +/** + * @override + * @param {jQueryCallback} failCallbacks + * @param {jQueryCallback=} failCallbacks2 + * @return {jQuery.deferred} + */ +jQuery.deferred.prototype.fail = function(failCallbacks, failCallbacks2) {}; + +/** + * @param {...*} var_args + * @return {jQuery.deferred} + */ +jQuery.deferred.prototype.notify = function(var_args) {}; + +/** + * @param {Object} context + * @param {...*} var_args + * @return {jQuery.deferred} + */ +jQuery.deferred.prototype.notifyWith = function(context, var_args) {}; + +/** + * @deprecated Please use deferred.then() instead. + * @override + * @param {function()=} doneFilter + * @param {function()=} failFilter + * @param {function()=} progressFilter + * @return {jQuery.Promise} + */ +jQuery.deferred.prototype.pipe = + function(doneFilter, failFilter, progressFilter) {}; + +/** + * @param {jQueryCallback} progressCallbacks + * @return {jQuery.deferred} + */ +jQuery.deferred.prototype.progress = function(progressCallbacks) {}; + +/** + * @param {Object=} target + * @return {jQuery.Promise} + */ +jQuery.deferred.prototype.promise = function(target) {}; + +/** + * @param {...*} var_args + * @return {jQuery.deferred} + */ +jQuery.deferred.prototype.reject = function(var_args) {}; + +/** + * @param {Object} context + * @param {Array.<*>=} args + * @return {jQuery.deferred} + */ +jQuery.deferred.prototype.rejectWith = function(context, args) {}; + +/** + * @param {...*} var_args + * @return {jQuery.deferred} + */ +jQuery.deferred.prototype.resolve = function(var_args) {}; + +/** + * @param {Object} context + * @param {Array.<*>=} args + * @return {jQuery.deferred} + */ +jQuery.deferred.prototype.resolveWith = function(context, args) {}; + +/** @return {string} */ +jQuery.deferred.prototype.state = function() {}; + +/** + * @override + * @param {jQueryCallback} doneCallbacks + * @param {jQueryCallback=} failCallbacks + * @param {jQueryCallback=} progressCallbacks + * @return {jQuery.deferred} + */ +jQuery.deferred.prototype.then + = function(doneCallbacks, failCallbacks, progressCallbacks) {}; + +/** + * @param {number} duration + * @param {string=} queueName + * @return {!jQuery} + */ +jQuery.prototype.delay = function(duration, queueName) {}; + +/** + * @param {string} selector + * @param {(string|Object.<string,*>)} arg2 + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg3 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.delegate = function(selector, arg2, arg3, handler) {}; + +/** + * @param {Element} elem + * @param {string=} queueName + */ +jQuery.dequeue = function(elem, queueName) {}; + +/** + * @param {string=} queueName + * @return {!jQuery} + */ +jQuery.prototype.dequeue = function(queueName) {}; + +/** + * @param {Element} elem + * @param {string=} queueName + */ +$.dequeue = function(elem, queueName) {}; + +/** + * @param {jQuerySelector=} selector + * @return {!jQuery} + */ +jQuery.prototype.detach = function(selector) {}; + +/** + * @param {Object} collection + * @param {function((number|string),?)} callback + * @return {Object} + */ +jQuery.each = function(collection, callback) {}; + +/** + * @param {function(number,Element)} fnc + * @return {!jQuery} + */ +jQuery.prototype.each = function(fnc) {}; + +/** + * @param {Object} collection + * @param {function((number|string),?)} callback + * @return {Object} + */ +$.each = function(collection, callback) {}; + +/** @return {!jQuery} */ +jQuery.prototype.empty = function() {}; + +/** + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.end = function() {}; + +/** + * @param {number} arg1 + * @return {!jQuery} + */ +jQuery.prototype.eq = function(arg1) {}; + +/** @param {string} message */ +jQuery.error = function(message) {}; + +/** + * @deprecated Please use .on( "error", handler ) instead. + * @param {(function(!jQuery.event=)|Object.<string, *>)} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.error = function(arg1, handler) {}; + +/** @param {string} message */ +$.error = function(message) {}; + +/** + * @constructor + * @param {string} eventType + */ +jQuery.event = function(eventType) {}; + +/** + * @constructor + * @extends {jQuery.event} + * @param {string} eventType + * @param {Object=} properties + * @return {jQuery.Event} + */ +jQuery.Event = function(eventType, properties) {}; + +/** + * @constructor + * @extends {jQuery.event} + * @param {string} eventType + */ +$.event = function(eventType) {}; + +/** + * @constructor + * @extends {jQuery.event} + * @param {string} eventType + * @param {Object=} properties + * @return {$.Event} + */ +$.Event = function(eventType, properties) {}; + +/** @type {Element} */ +jQuery.event.prototype.currentTarget; + +/** @type {Object.<string, *>} */ +jQuery.event.prototype.data; + +/** @type {Element} */ +jQuery.event.prototype.delegateTarget; + +/** + * @return {boolean} + * @nosideeffects + */ +jQuery.event.prototype.isDefaultPrevented = function() {}; + +/** + * @return {boolean} + * @nosideeffects + */ +jQuery.event.prototype.isImmediatePropagationStopped = function() {}; + +/** + * @return {boolean} + * @nosideeffects + */ +jQuery.event.prototype.isPropagationStopped = function() {}; + +/** @type {string} */ +jQuery.event.prototype.namespace; + +/** @type {Event} */ +jQuery.event.prototype.originalEvent; + +/** @type {number} */ +jQuery.event.prototype.pageX; + +/** @type {number} */ +jQuery.event.prototype.pageY; + +/** @return {undefined} */ +jQuery.event.prototype.preventDefault = function() {}; + +/** @type {Object.<string, *>} */ +jQuery.event.prototype.props; + +/** @type {Element} */ +jQuery.event.prototype.relatedTarget; + +/** @type {*} */ +jQuery.event.prototype.result; + +/** @return {undefined} */ +jQuery.event.prototype.stopImmediatePropagation = function() {}; + +/** @return {undefined} */ +jQuery.event.prototype.stopPropagation = function() {}; + +/** @type {Element} */ +jQuery.event.prototype.target; + +/** @type {number} */ +jQuery.event.prototype.timeStamp; + +/** @type {string} */ +jQuery.event.prototype.type; + +/** @type {number} */ +jQuery.event.prototype.which; + +/** + * @param {(Object|boolean)} arg1 + * @param {...*} var_args + * @return {Object} + */ +jQuery.extend = function(arg1, var_args) {}; + +/** + * @param {(Object|boolean)} arg1 + * @param {...*} var_args + * @return {Object} + */ +jQuery.prototype.extend = function(arg1, var_args) {}; + +/** + * @param {(Object|boolean)} arg1 + * @param {...*} var_args + * @return {Object} + */ +$.extend = function(arg1, var_args) {}; + +/** + * @param {(string|number|function())=} duration + * @param {(function()|string)=} arg2 + * @param {function()=} callback + * @return {!jQuery} + */ +jQuery.prototype.fadeIn = function(duration, arg2, callback) {}; + +/** + * @param {(string|number|function())=} duration + * @param {(function()|string)=} arg2 + * @param {function()=} callback + * @return {!jQuery} + */ +jQuery.prototype.fadeOut = function(duration, arg2, callback) {}; + +/** + * @param {(string|number)} duration + * @param {number} opacity + * @param {(function()|string)=} arg3 + * @param {function()=} callback + * @return {!jQuery} + */ +jQuery.prototype.fadeTo = function(duration, opacity, arg3, callback) {}; + +/** + * @param {(string|number|function())=} duration + * @param {(string|function())=} easing + * @param {function()=} callback + * @return {!jQuery} + */ +jQuery.prototype.fadeToggle = function(duration, easing, callback) {}; + +/** + * @param {(jQuerySelector|function(number,Element)|Element|jQuery)} arg1 + * @return {!jQuery} + * @see http://api.jquery.com/filter/ + */ +jQuery.prototype.filter = function(arg1) {}; + +/** + * @param {(jQuerySelector|jQuery|Element)} arg1 + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.find = function(arg1) {}; + +/** @return {!jQuery} */ +jQuery.prototype.first = function() {}; + +/** @see http://docs.jquery.com/Plugins/Authoring */ +jQuery.fn = jQuery.prototype; + +/** @see http://docs.jquery.com/Plugins/Authoring */ +$.fn = $.prototype; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.focus = function(arg1, handler) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.focusin = function(arg1, handler) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.focusout = function(arg1, handler) {}; + +/** @const */ +jQuery.fx = {}; + +/** @const */ +$.fx = {}; + +/** @type {number} */ +jQuery.fx.interval; + +/** @type {number} */ +$.fx.interval; + +/** @type {boolean} */ +jQuery.fx.off; + +/** @type {boolean} */ +$.fx.off; + +/** + * @param {string} url + * @param {(Object.<string,*>|string| + * function(string,string,jQuery.jqXHR))=} data + * @param {(function(string,string,jQuery.jqXHR)|string)=} success + * @param {string=} dataType + * @return {jQuery.jqXHR} + */ +jQuery.get = function(url, data, success, dataType) {}; + +/** + * @param {number=} index + * @return {(Element|Array.<Element>)} + * @nosideeffects + */ +jQuery.prototype.get = function(index) {}; + +/** + * @param {string} url + * @param {(Object.<string,*>|string| + * function(string,string,jQuery.jqXHR))=} data + * @param {(function(string,string,jQuery.jqXHR)|string)=} success + * @param {string=} dataType + * @return {jQuery.jqXHR} + */ +$.get = function(url, data, success, dataType) {}; + +/** + * @param {string} url + * @param {(Object.<string,*>| + * function(Object.<string,*>,string,jQuery.jqXHR))=} data + * @param {function(Object.<string,*>,string,jQuery.jqXHR)=} success + * @return {jQuery.jqXHR} + * @see http://api.jquery.com/jquery.getjson/#jQuery-getJSON-url-data-success + */ +jQuery.getJSON = function(url, data, success) {}; + +/** + * @param {string} url + * @param {(Object.<string,*>| + * function(Object.<string,*>,string,jQuery.jqXHR))=} data + * @param {function(Object.<string,*>,string,jQuery.jqXHR)=} success + * @return {jQuery.jqXHR} + * @see http://api.jquery.com/jquery.getjson/#jQuery-getJSON-url-data-success + */ +$.getJSON = function(url, data, success) {}; + +/** + * @param {string} url + * @param {function(Node,string,jQuery.jqXHR)=} success + * @return {jQuery.jqXHR} + */ +jQuery.getScript = function(url, success) {}; + +/** + * @param {string} url + * @param {function(Node,string,jQuery.jqXHR)=} success + * @return {jQuery.jqXHR} + */ +$.getScript = function(url, success) {}; + +/** @param {string} code */ +jQuery.globalEval = function(code) {}; + +/** @param {string} code */ +$.globalEval = function(code) {}; + +/** + * @param {Array.<*>} arr + * @param {function(*,number)} fnc + * @param {boolean=} invert + * @return {Array.<*>} + */ +jQuery.grep = function(arr, fnc, invert) {}; + +/** + * @param {Array.<*>} arr + * @param {function(*,number)} fnc + * @param {boolean=} invert + * @return {Array.<*>} + */ +$.grep = function(arr, fnc, invert) {}; + +/** + * @param {(string|Element)} arg1 + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.has = function(arg1) {}; + +/** + * @param {string} className + * @return {boolean} + * @nosideeffects + */ +jQuery.prototype.hasClass = function(className) {}; + +/** + * @param {Element} elem + * @return {boolean} + * @nosideeffects + */ +jQuery.hasData = function(elem) {}; + +/** + * @param {Element} elem + * @return {boolean} + * @nosideeffects + */ +$.hasData = function(elem) {}; + +/** + * @param {(string|number|function(number,number))=} arg1 + * @return {(number|!jQuery)} + */ +jQuery.prototype.height = function(arg1) {}; + +/** + * @param {(string|number|function())=} duration + * @param {(function()|string)=} arg2 + * @param {function()=} callback + * @return {!jQuery} + */ +jQuery.prototype.hide = function(duration, arg2, callback) {}; + +/** @param {boolean} hold */ +jQuery.holdReady = function(hold) {}; + +/** @param {boolean} hold */ +$.holdReady = function(hold) {}; + +/** + * @param {function(!jQuery.event=)} arg1 + * @param {function(!jQuery.event=)=} handlerOut + * @return {!jQuery} + */ +jQuery.prototype.hover = function(arg1, handlerOut) {}; + +/** + * @param {(string|function(number,string))=} arg1 + * @return {(string|!jQuery)} + */ +jQuery.prototype.html = function(arg1) {}; + +/** + * @param {*} value + * @param {Array.<*>} arr + * @param {number=} fromIndex + * @return {number} + * @nosideeffects + */ +jQuery.inArray = function(value, arr, fromIndex) {}; + +/** + * @param {*} value + * @param {Array.<*>} arr + * @param {number=} fromIndex + * @return {number} + * @nosideeffects + */ +$.inArray = function(value, arr, fromIndex) {}; + +/** + * @param {(jQuerySelector|Element|jQuery)=} arg1 + * @return {number} + */ +jQuery.prototype.index = function(arg1) {}; + +/** + * @return {number} + * @nosideeffects + */ +jQuery.prototype.innerHeight = function() {}; + +/** + * @return {number} + * @nosideeffects + */ +jQuery.prototype.innerWidth = function() {}; + +/** + * @param {(jQuerySelector|Element|jQuery)} target + * @return {!jQuery} + */ +jQuery.prototype.insertAfter = function(target) {}; + +/** + * @param {(jQuerySelector|Element|jQuery)} target + * @return {!jQuery} + */ +jQuery.prototype.insertBefore = function(target) {}; + +/** + * @param {(jQuerySelector|function(number)|jQuery|Element)} arg1 + * @return {boolean} + */ +jQuery.prototype.is = function(arg1) {}; + +/** + * @param {*} obj + * @return {boolean} + * @nosideeffects + */ +jQuery.isArray = function(obj) {}; + +/** + * @param {*} obj + * @return {boolean} + * @nosideeffects + */ +$.isArray = function(obj) {}; + +/** + * @param {Object} obj + * @return {boolean} + * @nosideeffects + */ +jQuery.isEmptyObject = function(obj) {}; + +/** + * @param {Object} obj + * @return {boolean} + * @nosideeffects + */ +$.isEmptyObject = function(obj) {}; + +/** + * @param {*} obj + * @return {boolean} + * @nosideeffects + */ +jQuery.isFunction = function(obj) {}; + +/** + * @param {*} obj + * @return {boolean} + * @nosideeffects + */ +$.isFunction = function(obj) {}; + +/** + * @param {*} value + * @return {boolean} + * @nosideeffects + */ +jQuery.isNumeric = function(value) {}; + +/** + * @param {*} value + * @return {boolean} + * @nosideeffects + */ +$.isNumeric = function(value) {}; + +/** + * @param {*} obj + * @return {boolean} + * @nosideeffects + */ +jQuery.isPlainObject = function(obj) {}; + +/** + * @param {*} obj + * @return {boolean} + * @nosideeffects + */ +$.isPlainObject = function(obj) {}; + +/** + * @param {*} obj + * @return {boolean} + * @nosideeffects + */ +jQuery.isWindow = function(obj) {}; + +/** + * @param {*} obj + * @return {boolean} + * @nosideeffects + */ +$.isWindow = function(obj) {}; + +/** + * @param {Element} node + * @return {boolean} + * @nosideeffects + */ +jQuery.isXMLDoc = function(node) {}; + +/** + * @param {Element} node + * @return {boolean} + * @nosideeffects + */ +$.isXMLDoc = function(node) {}; + +/** @type {string} */ +jQuery.prototype.jquery; + +/** + * @constructor + * @extends {XMLHttpRequest} + * @implements {jQuery.Promise} + * @private + * @see http://api.jquery.com/jQuery.ajax/#jqXHR + */ +jQuery.jqXHR = function () {}; + +/** + * @override + * @param {jQueryCallback} alwaysCallbacks + * @param {jQueryCallback=} alwaysCallbacks2 + * @return {jQuery.jqXHR} + */ +jQuery.jqXHR.prototype.always = + function(alwaysCallbacks, alwaysCallbacks2) {}; + +/** + * @deprecated + * @param {function()} callback + * @return {jQuery.jqXHR} +*/ +jQuery.jqXHR.prototype.complete = function (callback) {}; + +/** + * @override + * @param {jQueryCallback} doneCallbacks + * @return {jQuery.jqXHR} + */ +jQuery.jqXHR.prototype.done = function(doneCallbacks) {}; + +/** + * @deprecated + * @param {function()} callback + * @return {jQuery.jqXHR} +*/ +jQuery.jqXHR.prototype.error = function (callback) {}; + +/** + * @override + * @param {jQueryCallback} failCallbacks + * @return {jQuery.jqXHR} + */ +jQuery.jqXHR.prototype.fail = function(failCallbacks) {}; + +/** + * @deprecated + * @override + */ +jQuery.jqXHR.prototype.onreadystatechange = function (callback) {}; + +/** + * @override + * @param {function()=} doneFilter + * @param {function()=} failFilter + * @param {function()=} progressFilter + * @return {jQuery.jqXHR} + */ +jQuery.jqXHR.prototype.pipe = + function(doneFilter, failFilter, progressFilter) {}; + +/** + * @deprecated + * @param {function()} callback + * @return {jQuery.jqXHR} +*/ +jQuery.jqXHR.prototype.success = function (callback) {}; + +/** + * @override + * @param {jQueryCallback} doneCallbacks + * @param {jQueryCallback=} failCallbacks + * @param {jQueryCallback=} progressCallbacks + * @return {jQuery.jqXHR} + */ +jQuery.jqXHR.prototype.then = + function(doneCallbacks, failCallbacks, progressCallbacks) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.keydown = function(arg1, handler) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.keypress = function(arg1, handler) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.keyup = function(arg1, handler) {}; + +/** @return {!jQuery} */ +jQuery.prototype.last = function() {}; + +/** @type {number} */ +jQuery.prototype.length; + +/** + * @deprecated Please avoid the document loading Event invocation of + * .load() and use .on( "load", handler ) instead. (The AJAX + * module invocation signature is OK.) + * @param {(function(!jQuery.event=)|Object.<string, *>|string)} arg1 + * @param {(function(!jQuery.event=)|Object.<string,*>|string)=} arg2 + * @param {function(string,string,XMLHttpRequest)=} complete + * @return {!jQuery} + */ +jQuery.prototype.load = function(arg1, arg2, complete) {}; + +/** + * @param {*} obj + * @return {Array.<*>} + */ +jQuery.makeArray = function(obj) {}; + +/** + * @param {*} obj + * @return {Array.<*>} + */ +$.makeArray = function(obj) {}; + +/** + * @param {(Array.<*>|Object.<string, *>)} arg1 + * @param {(function(*,number)|function(*,(string|number)))} callback + * @return {Array.<*>} + */ +jQuery.map = function(arg1, callback) {}; + +/** + * @param {function(number,Element)} callback + * @return {!jQuery} + */ +jQuery.prototype.map = function(callback) {}; + +/** + * @param {(Array.<*>|Object.<string, *>)} arg1 + * @param {(function(*,number)|function(*,(string|number)))} callback + * @return {Array.<*>} + */ +$.map = function(arg1, callback) {}; + +/** + * @param {Array.<*>} first + * @param {Array.<*>} second + * @return {Array.<*>} + */ +jQuery.merge = function(first, second) {}; + +/** + * @param {Array.<*>} first + * @param {Array.<*>} second + * @return {Array.<*>} + */ +$.merge = function(first, second) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.mousedown = function(arg1, handler) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.mouseenter = function(arg1, handler) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.mouseleave = function(arg1, handler) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.mousemove = function(arg1, handler) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.mouseout = function(arg1, handler) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.mouseover = function(arg1, handler) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.mouseup = function(arg1, handler) {}; + +/** + * @param {jQuerySelector=} selector + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.next = function(selector) {}; + +/** + * @param {string=} selector + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.nextAll = function(selector) {}; + +/** + * @param {(jQuerySelector|Element)=} arg1 + * @param {jQuerySelector=} filter + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.nextUntil = function(arg1, filter) {}; + +/** + * @param {boolean=} removeAll + * @return {Object} + */ +jQuery.noConflict = function(removeAll) {}; + +/** + * @param {boolean=} removeAll + * @return {Object} + */ +$.noConflict = function(removeAll) {}; + +/** + * @return {function()} + * @nosideeffects + */ +jQuery.noop = function() {}; + +/** + * @return {function()} + * @nosideeffects + */ +$.noop = function() {}; + +/** + * @param {(jQuerySelector|Array.<Element>|function(number)|jQuery)} arg1 + * @return {!jQuery} + */ +jQuery.prototype.not = function(arg1) {}; + +/** + * @return {number} + * @nosideeffects + */ +jQuery.now = function() {}; + +/** + * @return {number} + * @nosideeffects + */ +$.now = function() {}; + +/** + * @param {(string|Object.<string,*>)=} arg1 + * @param {(string|function(!jQuery.event=))=} selector + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.off = function(arg1, selector, handler) {}; + +/** + * @param {({left:number,top:number}| + * function(number,{top:number,left:number}))=} arg1 + * @return {({left:number,top:number}|!jQuery)} + */ +jQuery.prototype.offset = function(arg1) {}; + +/** + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.offsetParent = function() {}; + +/** + * @param {(string|Object.<string,*>)} arg1 + * @param {*=} selector + * @param {*=} data + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.on = function(arg1, selector, data, handler) {}; + +/** + * @param {(string|Object.<string,*>)} arg1 + * @param {*=} arg2 + * @param {*=} arg3 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.one = function(arg1, arg2, arg3, handler) {}; + +/** + * @param {boolean=} includeMargin + * @return {number} + * @nosideeffects + */ +jQuery.prototype.outerHeight = function(includeMargin) {}; + +/** + * @param {boolean=} includeMargin + * @return {number} + * @nosideeffects + */ +jQuery.prototype.outerWidth = function(includeMargin) {}; + +/** + * @param {(Object.<string, *>|Array.<Object.<string, *>>)} obj + * @param {boolean=} traditional + * @return {string} + */ +jQuery.param = function(obj, traditional) {}; + +/** + * @param {(Object.<string, *>|Array.<Object.<string, *>>)} obj + * @param {boolean=} traditional + * @return {string} + */ +$.param = function(obj, traditional) {}; + +/** + * @param {jQuerySelector=} selector + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.parent = function(selector) {}; + +/** + * @param {jQuerySelector=} selector + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.parents = function(selector) {}; + +/** + * @param {(jQuerySelector|Element)=} arg1 + * @param {jQuerySelector=} filter + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.parentsUntil = function(arg1, filter) {}; + +/** + * @param {string} data + * @param {(Element|boolean)=} context + * @param {boolean=} keepScripts + * @return {Array.<Element>} + */ +jQuery.parseHTML = function(data, context, keepScripts) {}; + +/** + * @param {string} data + * @param {(Element|boolean)=} context + * @param {boolean=} keepScripts + * @return {Array.<Element>} + */ +$.parseHTML = function(data, context, keepScripts) {}; + +/** + * @param {string} json + * @return {string|number|Object.<string, *>|Array.<?>|boolean} + */ +jQuery.parseJSON = function(json) {}; + +/** + * @param {string} json + * @return {Object.<string, *>} + */ +$.parseJSON = function(json) {}; + +/** + * @param {string} data + * @return {Document} + */ +jQuery.parseXML = function(data) {}; + +/** + * @param {string} data + * @return {Document} + */ +$.parseXML = function(data) {}; + +/** + * @return {{left:number,top:number}} + * @nosideeffects + */ +jQuery.prototype.position = function() {}; + +/** + * @param {string} url + * @param {(Object.<string,*>|string| + * function(string,string,jQuery.jqXHR))=} data + * @param {(function(string,string,jQuery.jqXHR)|string|null)=} success + * @param {string=} dataType + * @return {jQuery.jqXHR} + */ +jQuery.post = function(url, data, success, dataType) {}; + +/** + * @param {string} url + * @param {(Object.<string,*>|string| + * function(string,string,jQuery.jqXHR))=} data + * @param {(function(string,string,jQuery.jqXHR)|string|null)=} success + * @param {string=} dataType + * @return {jQuery.jqXHR} + */ +$.post = function(url, data, success, dataType) {}; + +/** + * @param {(string|Element|jQuery|function(number,string))} arg1 + * @param {(string|Element|jQuery)=} content + * @return {!jQuery} + */ +jQuery.prototype.prepend = function(arg1, content) {}; + +/** + * @param {(jQuerySelector|Element|jQuery)} target + * @return {!jQuery} + */ +jQuery.prototype.prependTo = function(target) {}; + +/** + * @param {jQuerySelector=} selector + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.prev = function(selector) {}; + +/** + * @param {jQuerySelector=} selector + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.prevAll = function(selector) {}; + +/** + * @param {(jQuerySelector|Element)=} arg1 + * @param {jQuerySelector=} filter + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.prevUntil = function(arg1, filter) {}; + +/** + * @param {(string|Object)=} type + * @param {Object=} target + * @return {jQuery.Promise} + */ +jQuery.prototype.promise = function(type, target) {}; + +/** + * @interface + * @private + * @see http://api.jquery.com/Types/#Promise + */ +jQuery.Promise = function () {}; + +/** + * @param {jQueryCallback} alwaysCallbacks + * @param {jQueryCallback=} alwaysCallbacks2 + * @return {jQuery.Promise} + */ +jQuery.Promise.prototype.always = + function(alwaysCallbacks, alwaysCallbacks2) {}; + +/** + * @param {jQueryCallback} doneCallbacks + * @return {jQuery.Promise} + */ +jQuery.Promise.prototype.done = function(doneCallbacks) {}; + +/** + * @param {jQueryCallback} failCallbacks + * @return {jQuery.Promise} + */ +jQuery.Promise.prototype.fail = function(failCallbacks) {}; + +/** + * @param {function()=} doneFilter + * @param {function()=} failFilter + * @param {function()=} progressFilter + * @return {jQuery.Promise} + */ +jQuery.Promise.prototype.pipe = + function(doneFilter, failFilter, progressFilter) {}; + +/** + * @param {jQueryCallback} doneCallbacks + * @param {jQueryCallback=} failCallbacks + * @param {jQueryCallback=} progressCallbacks + * @return {jQuery.Promise} + */ +jQuery.Promise.prototype.then = + function(doneCallbacks, failCallbacks, progressCallbacks) {}; + +/** + * @param {(string|Object.<string,*>)} arg1 + * @param {(string|number|boolean|function(number,String))=} arg2 + * @return {(string|boolean|!jQuery)} + */ +jQuery.prototype.prop = function(arg1, arg2) {}; + +/** + * @param {...*} var_args + * @return {function()} + */ +jQuery.proxy = function(var_args) {}; + +/** + * @param {...*} var_args + * @return {function()} + */ +$.proxy = function(var_args) {}; + +/** + * @param {Array.<Element>} elements + * @param {string=} name + * @param {Array.<*>=} args + * @return {!jQuery} + */ +jQuery.prototype.pushStack = function(elements, name, args) {}; + +/** + * @param {(string|Array.<function()>|function(function()))=} queueName + * @param {(Array.<function()>|function(function()))=} arg2 + * @return {(Array.<Element>|!jQuery)} + */ +jQuery.prototype.queue = function(queueName, arg2) {}; + +/** + * @param {Element} elem + * @param {string=} queueName + * @param {(Array.<function()>|function())=} arg3 + * @return {(Array.<Element>|!jQuery)} + */ +jQuery.queue = function(elem, queueName, arg3) {}; + +/** + * @param {Element} elem + * @param {string=} queueName + * @param {(Array.<function()>|function())=} arg3 + * @return {(Array.<Element>|!jQuery)} + */ +$.queue = function(elem, queueName, arg3) {}; + +/** + * @param {function()} handler + * @return {!jQuery} + */ +jQuery.prototype.ready = function(handler) {}; + +/** + * @param {string=} selector + * @return {!jQuery} + */ +jQuery.prototype.remove = function(selector) {}; + +/** + * @param {string} attributeName + * @return {!jQuery} + */ +jQuery.prototype.removeAttr = function(attributeName) {}; + +/** + * @param {(string|function(number,string))=} arg1 + * @return {!jQuery} + */ +jQuery.prototype.removeClass = function(arg1) {}; + +/** + * @param {(string|Array.<string>)=} arg1 + * @return {!jQuery} + */ +jQuery.prototype.removeData = function(arg1) {}; + +/** + * @param {Element} elem + * @param {string=} name + * @return {!jQuery} + */ +jQuery.removeData = function(elem, name) {}; + +/** + * @param {Element} elem + * @param {string=} name + * @return {!jQuery} + */ +$.removeData = function(elem, name) {}; + +/** + * @param {string} propertyName + * @return {!jQuery} + */ +jQuery.prototype.removeProp = function(propertyName) {}; + +/** + * @param {jQuerySelector} target + * @return {!jQuery} + */ +jQuery.prototype.replaceAll = function(target) {}; + +/** + * @param {(string|Element|jQuery|function())} arg1 + * @return {!jQuery} + */ +jQuery.prototype.replaceWith = function(arg1) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.resize = function(arg1, handler) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.scroll = function(arg1, handler) {}; + +/** + * @param {number=} value + * @return {(number|!jQuery)} + */ +jQuery.prototype.scrollLeft = function(value) {}; + +/** + * @param {number=} value + * @return {(number|!jQuery)} + */ +jQuery.prototype.scrollTop = function(value) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.select = function(arg1, handler) {}; + +/** + * @return {string} + * @nosideeffects + */ +jQuery.prototype.serialize = function() {}; + +/** + * @return {Array.<Object.<string, *>>} + * @nosideeffects + */ +jQuery.prototype.serializeArray = function() {}; + +/** + * @param {(string|number|function())=} duration + * @param {(function()|string)=} arg2 + * @param {function()=} callback + * @return {!jQuery} + */ +jQuery.prototype.show = function(duration, arg2, callback) {}; + +/** + * @param {jQuerySelector=} selector + * @return {!jQuery} + * @nosideeffects + */ +jQuery.prototype.siblings = function(selector) {}; + +/** + * @deprecated Please use the .length property instead. + * @return {number} + * @nosideeffects + */ +jQuery.prototype.size = function() {}; + +/** + * @param {number} start + * @param {number=} end + * @return {!jQuery} + */ +jQuery.prototype.slice = function(start, end) {}; + +/** + * @param {(Object.<string,*>|string|number)=} optionsOrDuration + * @param {(function()|string)=} completeOrEasing + * @param {function()=} complete + * @return {!jQuery} + */ +jQuery.prototype.slideDown = + function(optionsOrDuration, completeOrEasing, complete) {}; + +/** + * @param {(Object.<string,*>|string|number)=} optionsOrDuration + * @param {(function()|string)=} completeOrEasing + * @param {function()=} complete + * @return {!jQuery} + */ +jQuery.prototype.slideToggle = + function(optionsOrDuration, completeOrEasing, complete) {}; + +/** + * @param {(Object.<string,*>|string|number)=} optionsOrDuration + * @param {(function()|string)=} completeOrEasing + * @param {function()=} complete + * @return {!jQuery} + */ +jQuery.prototype.slideUp = + function(optionsOrDuration, completeOrEasing, complete) {}; + +/** + * @param {(boolean|string)=} arg1 + * @param {boolean=} arg2 + * @param {boolean=} jumpToEnd + * @return {!jQuery} + */ +jQuery.prototype.stop = function(arg1, arg2, jumpToEnd) {}; + +/** + * @param {(function(!jQuery.event=)|Object.<string, *>)=} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.submit = function(arg1, handler) {}; + +/** @type {Object.<string, *>} + * @deprecated Please try to use feature detection instead. + */ +jQuery.support; + +/** @type {Object.<string, *>} + * @deprecated Please try to use feature detection instead. + */ +$.support; + +/** + * @deprecated Please try to use feature detection instead. + * @type {boolean} + */ +jQuery.support.boxModel; + +/** + * @deprecated Please try to use feature detection instead. + * @type {boolean} + */ +$.support.boxModel; + +/** @type {boolean} */ +jQuery.support.changeBubbles; + +/** @type {boolean} */ +$.support.changeBubbles; + +/** @type {boolean} */ +jQuery.support.cors; + +/** @type {boolean} */ +$.support.cors; + +/** @type {boolean} */ +jQuery.support.cssFloat; + +/** @type {boolean} */ +$.support.cssFloat; + +/** @type {boolean} */ +jQuery.support.hrefNormalized; + +/** @type {boolean} */ +$.support.hrefNormalized; + +/** @type {boolean} */ +jQuery.support.htmlSerialize; + +/** @type {boolean} */ +$.support.htmlSerialize; + +/** @type {boolean} */ +jQuery.support.leadingWhitespace; + +/** @type {boolean} */ +$.support.leadingWhitespace; + +/** @type {boolean} */ +jQuery.support.noCloneEvent; + +/** @type {boolean} */ +$.support.noCloneEvent; + +/** @type {boolean} */ +jQuery.support.opacity; + +/** @type {boolean} */ +$.support.opacity; + +/** @type {boolean} */ +jQuery.support.style; + +/** @type {boolean} */ +$.support.style; + +/** @type {boolean} */ +jQuery.support.submitBubbles; + +/** @type {boolean} */ +$.support.submitBubbles; + +/** @type {boolean} */ +jQuery.support.tbody; + +/** @type {boolean} */ +$.support.tbody; + +/** + * @param {(string|number|boolean|function(number,string))=} arg1 + * @return {(string|!jQuery)} + */ +jQuery.prototype.text = function(arg1) {}; + +/** + * @return {Array.<Element>} + * @nosideeffects + */ +jQuery.prototype.toArray = function() {}; + +/** + * Refers to the method from the Effects category. There used to be a toggle + * method on the Events category which was removed starting version 1.9. + * @param {(number|string|Object.<string,*>|boolean)=} arg1 + * @param {(function()|string)=} arg2 + * @param {function()=} arg3 + * @return {!jQuery} + */ +jQuery.prototype.toggle = function(arg1, arg2, arg3) {}; + +/** + * @param {(string|boolean|function(number,string,boolean))=} arg1 + * @param {boolean=} flag + * @return {!jQuery} + */ +jQuery.prototype.toggleClass = function(arg1, flag) {}; + +/** + * @param {(string|jQuery.event)} arg1 + * @param {...*} var_args + * @return {!jQuery} + */ +jQuery.prototype.trigger = function(arg1, var_args) {}; + +/** + * @param {string|jQuery.event} eventType + * @param {Array.<*>=} extraParameters + * @return {*} + */ +jQuery.prototype.triggerHandler = function(eventType, extraParameters) {}; + +/** + * @param {string} str + * @return {string} + * @nosideeffects + */ +jQuery.trim = function(str) {}; + +/** + * @param {string} str + * @return {string} + * @nosideeffects + */ +$.trim = function(str) {}; + +/** + * @param {*} obj + * @return {string} + * @nosideeffects + */ +jQuery.type = function(obj) {}; + +/** + * @param {*} obj + * @return {string} + * @nosideeffects + */ +$.type = function(obj) {}; + +/** + * @param {(string|function(!jQuery.event=)|jQuery.event)=} arg1 + * @param {(function(!jQuery.event=)|boolean)=} arg2 + * @return {!jQuery} + */ +jQuery.prototype.unbind = function(arg1, arg2) {}; + +/** + * @param {string=} arg1 + * @param {(string|Object.<string,*>)=} arg2 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.undelegate = function(arg1, arg2, handler) {}; + +/** + * @param {Array.<Element>} arr + * @return {Array.<Element>} + */ +jQuery.unique = function(arr) {}; + +/** + * @param {Array.<Element>} arr + * @return {Array.<Element>} + */ +$.unique = function(arr) {}; + +/** + * @deprecated Please use .on( "unload", handler ) instead. + * @param {(function(!jQuery.event=)|Object.<string, *>)} arg1 + * @param {function(!jQuery.event=)=} handler + * @return {!jQuery} + */ +jQuery.prototype.unload = function(arg1, handler) {}; + +/** @return {!jQuery} */ +jQuery.prototype.unwrap = function() {}; + +/** + * @param {(string|Array.<string>|function(number,*))=} arg1 + * @return {(string|number|Array.<string>|!jQuery)} + */ +jQuery.prototype.val = function(arg1) {}; + +/** + * Note: The official documentation (https://api.jquery.com/jQuery.when/) says + * jQuery.when accepts deferreds, but it actually accepts any type, e.g.: + * + * jQuery.when(jQuery.ready, jQuery.ajax(''), jQuery('#my-element'), 1) + * + * If an argument is not an "observable" (a promise-like object) it is wrapped + * into a promise. + * @param {*} deferred + * @param {...*} deferreds + * @return {jQuery.Promise} + */ +jQuery.when = function(deferred, deferreds) {}; + +/** + * Note: See jQuery.when(). + * @param {*} deferred + * @param {...*} deferreds + * @return {jQuery.Promise} + */ +$.when = function(deferred, deferreds) {}; + +/** + * @param {(string|number|function(number,number))=} arg1 + * @return {(number|!jQuery)} + */ +jQuery.prototype.width = function(arg1) {}; + +/** + * @param {(string|jQuerySelector|Element|jQuery|function(number))} arg1 + * @return {!jQuery} + */ +jQuery.prototype.wrap = function(arg1) {}; + +/** + * @param {(string|jQuerySelector|Element|jQuery)} wrappingElement + * @return {!jQuery} + */ +jQuery.prototype.wrapAll = function(wrappingElement) {}; + +/** + * @param {(string|jQuerySelector|Element|jQuery|function(number))} arg1 + * @return {!jQuery} + */ +jQuery.prototype.wrapInner = function(arg1) {}; + +/** + * @param {(string|number|function(number,number))=} arg1 + * @return {(number|!jQuery)} + */ +jQuery.prototype.tooltip = function(arg1) {}; \ No newline at end of file diff --git a/src/closure/conf/externs/jspdf.js b/src/closure/conf/externs/jspdf.js new file mode 100755 index 0000000000000000000000000000000000000000..2b5ba6f00f45b775de5e4d9bd0666149dadbc650 --- /dev/null +++ b/src/closure/conf/externs/jspdf.js @@ -0,0 +1,51 @@ +/** + * + * @param {type} arg1 + * @returns {jsPDF} + */ +function jsPDF (arg1) {}; + +/** + * + * @param {type} arg1 + * @param {type} arg2 + * @param {type} arg3 + * @param {type} arg4 + * @returns {undefined} + */ +jsPDF.prototype.fromHTML = function (arg1, arg2, arg3, arg4) {}; + +/** + * + * @param {type} arg1 + * @param {type} arg2 + * @param {type} arg3 + * @param {type} arg4 + * @param {type} arg5 + * @param {type} arg6 + * @returns {undefined} + */ +jsPDF.prototype.addImage = function (arg1, arg2, arg3, arg4, arg5, arg6) {}; + +/** + * + * @param {type} arg1 + * @returns {undefined} + */ +jsPDF.prototype.save = function (arg1) {}; + +/** + * + * @param {type} arg1 + * @returns {undefined} + */ +jsPDF.prototype.setPage = function (arg1) {}; + +/** + * + * @param {type} arg1 + * @param {type} arg2 + * @returns {undefined} + */ +jsPDF.prototype.addHTML = function (arg1, arg2) {}; + diff --git a/src/closure/conf/externs/vmap.js b/src/closure/conf/externs/vmap.js new file mode 100755 index 0000000000000000000000000000000000000000..b799165a0202a74c3d1fe51fe8ad666558122205 --- /dev/null +++ b/src/closure/conf/externs/vmap.js @@ -0,0 +1,75 @@ +/** + * @author: Armand Bahi + * @Description: Fichier contenant les externs: fonctions à ne pas renommer durant la compilation + * @externs + */ + +/** + * Function for initialise the bootstrap toggle switch checkbox plugin + * @constructor + * @param {object} arg1 + */ +function bootstrapToggle(arg1) {} + +/** + * Function for initialise the bootstrap colorpicker plugin + * @constructor + * @param {object} arg1 + */ +function colorpicker(arg1) {} + +/** + * Function for initialise the bootstrap table plugin + * @constructor + * @param {object} arg1 + */ +function bootstrapTable(arg1) {} + +/** + * @param {object} arg1 + * @return {!jQuery} + */ +function sortable(arg1) {} + +/** + * + * @param {string} key + * @returns {undefined} + */ +ol.Object.prototype.get = function (key) {} + +/** + * Get the collection of layers associated with this map. + * @return {!ol.Collection.<ol.layer.Base>} Layers. + * @api stable + */ +ol.Map.prototype.getLayers = function () {} + +/** + * Return the visibility of the layer (`true` or `false`). + * @return {boolean} The visibility of the layer. + * @observable + * @api stable + */ +ol.layer.Base.prototype.getVisible = function () {} + +/** + * Set the visibility of the layer (`true` or `false`). + * @param {boolean} visible The visibility of the layer. + * @observable + * @api stable + */ +ol.layer.Base.prototype.setVisible = function (visible) {} + +/** + * The tile related to the event. + * @type {ol.Tile} + * @api + */ +ol.source.TileEvent.tile + +/** + * @type {string} + * @see http://www.w3.org/TR/pointerevents/#the-touch-action-css-property + */ +CSSProperties.prototype.touchAction; \ No newline at end of file diff --git a/src/module_anc b/src/module_anc deleted file mode 160000 index a568ce02aa9dc93beeea1836b7deefb6da88ef5a..0000000000000000000000000000000000000000 --- a/src/module_anc +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a568ce02aa9dc93beeea1836b7deefb6da88ef5a diff --git a/src/module_anc/README.md b/src/module_anc/README.md new file mode 100755 index 0000000000000000000000000000000000000000..db41d72617e447a19275b22357444073ec5f55fb --- /dev/null +++ b/src/module_anc/README.md @@ -0,0 +1 @@ +Module ANC 2018.03.00 for Vitis \ No newline at end of file diff --git a/src/module_anc/_install/dependency.xml b/src/module_anc/_install/dependency.xml new file mode 100755 index 0000000000000000000000000000000000000000..0b43e654026669b448e22fbf2387ae376d4a1d62 --- /dev/null +++ b/src/module_anc/_install/dependency.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<installer> + <schema> + <name>s_anc</name> + <dependenciesCollection> + <dependency> + <nature>schema</nature> + <name>s_vitis</name> + <object>vitis</object> + </dependency> + <dependency> + <nature>schema</nature> + <name>s_cadastre</name> + <object>module_cadastreV2</object> + </dependency> + <dependency> + <name>postgis</name> + <version>2.0</version> + <nature>extern-pre</nature> + </dependency> + </dependenciesCollection> + </schema> + <dependenciesCollection> + <dependency> + <nature>framework</nature> + <name>vitis</name> + </dependency> + <dependency> + <nature>modules</nature> + <name>module_vmap</name> + </dependency> + </dependenciesCollection> +</installer> diff --git a/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_entreprise.json b/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_entreprise.json new file mode 100755 index 0000000000000000000000000000000000000000..c09edf1e1eff68046dae39dca4db31a3b77ae811 --- /dev/null +++ b/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_entreprise.json @@ -0,0 +1,1329 @@ +{ + "display":{ + "name":"anc_parametrage_anc_entreprise-form", + "title":"ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_entreprises", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"id_parametre_entreprises_1_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"commune_2_1" + }, + { + "type":"label", + "name":"siret", + "label":"SIRET", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"siret_3_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"raison_sociale", + "label":"Raison Sociale", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"raison_sociale_4_1" + }, + { + "type":"label", + "name":"nom_entreprise", + "label":"Nom de l'entreprise", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_entreprise_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"nom_contact", + "label":"Contact", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"nom_contact_6_1" + }, + { + "type":"label", + "name":"telephone_fixe", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"telephone_fixe_7_1" + }, + { + "type":"label", + "name":"telephone_mobile", + "label":"Mobile", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"telephone_mobile_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"web", + "label":"Site internet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"web_9_1" + }, + { + "type":"label", + "name":"mail", + "label":"Email", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"mail_10_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"voie", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"voie_12_1" + }, + { + "type":"label", + "name":"code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"code_postal_11_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"bureau_etude", + "label":"Bureau d'étude", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"bureau_etude_13_1" + }, + { + "type":"label", + "name":"concepteur", + "label":"Concepteur", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"concepteur_14_1" + }, + { + "type":"label", + "name":"constructeur", + "label":"Contructeur", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"constructeur_15_1" + }, + { + "type":"label", + "name":"installateur", + "label":"Installateur", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"installateur_16_1" + }, + { + "type":"label", + "name":"vidangeur", + "label":"Vidangeur", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"vidangeur_17_1" + }, + { + "type":"label", + "name":"en_activite", + "label":"En activité", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"en_activite_18_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"observations", + "label":"Obsevations", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"observations_19_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"creat", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"creat_20_1" + }, + { + "type":"label", + "name":"creat_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"creat_date_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_22_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_23_1" + } + ] + }, + { + "fields":[ + { + "type":"map_osm", + "name":"geom", + "label":"Maps", + "required":false, + "nb_cols":12, + "id":"geom_24_1", + "style":{ + "height":"350px" + }, + "map_options":{ + "proj":"EPSG:2154", + "type":"OSM", + "output_format": "ewkt", + "center":{ + "extent":[ + 106035.20950928, + 6702357.4186523, + 653689.58829346, + 6974242.5712402 + ], + "coord":[ + 379862.39890137, + 6838299.9949462 + ], + "scale":2931385 + }, + "controls":{ + "MP":true, + "ZO":true, + "SL":true, + "CP":true + }, + "layers":[ + + ], + "interactions":{ + "multi_geometry":false, + "full_screen":true, + "RA":false, + "RO":false, + "ED":false, + "DP":false, + "DL":false, + "DPol":false, + "SE":true + }, + "draw_color":"rgba(54,184,255,0.6)", + "contour_color":"rgba(0,0,0,0.4)", + "contour_size":2, + "circle_radius":6, + "features":[ + + ], + "coord_accuracy":8 + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent":"initAncParametrageEntrepriseForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_entreprises", + "commune", + "siret", + "raison_sociale", + "nom_entreprise", + "nom_contact", + "telephone_fixe", + "telephone_mobile", + "web", + "mail", + "code_postal", + "voie", + "bureau_etude", + "concepteur", + "constructeur", + "installateur", + "vidangeur", + "en_activite", + "observations", + "creat", + "creat_date", + "maj", + "maj_date", + "geom", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_parametrage_anc_entreprise-form", + "title":"ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"editable_select", + "name":"commune", + "label":"Commune", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "id_from":"Element_0_1_1_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"nom", + "attributs":"nom" + } + }, + { + "type":"text", + "name":"raison_sociale", + "label":"Raison sociale", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_1_2" + }, + { + "type":"text", + "name":"nom_entreprise", + "label":"Nom de l'entreprise", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_2_1_3" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "commune", + "raison_sociale", + "nom_entreprise" + ] + } + ] + } + }, + "insert":{ + "name":"anc_parametrage_anc_entreprise-form", + "title":"ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"editable_select", + "name":"commune", + "label":"Commune", + "required":true, + "nb_cols":6, + "id":"commune_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"nom", + "attributs":"nom" + }, + "id_from":"commune_2_1_from" + }, + { + "type":"text", + "name":"siret", + "label":"SIRET", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^[0-9]{3}[ \\.\\-]?[0-9]{3}[ \\.\\-]?[0-9]{3}[ \\.\\-]?[0-9]{5}$", + "id":"siret_3_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"raison_sociale", + "label":"Raison sociale", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"raison_sociale_4_1" + }, + { + "type":"text", + "name":"nom_entreprise", + "label":"Nom de l'entreprise", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_entreprise_5_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"nom_contact", + "label":"Contact", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"nom_contact_6_1" + }, + { + "type":"text", + "name":"telephone_fixe", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 10, + "pattern":"^0[0-9]{9}$", + "id":"telephone_fixe_7_1" + }, + { + "type":"text", + "name":"telephone_mobile", + "label":"Mobile", + "disabled":false, + "required":false, + "nb_cols":4, + "pattern" : "^((\\+\\d{1,3}(| )?\\(?\\d\\)?(| )?\\d{1,5})|(\\(?\\d{2,6}\\)?))(| )?(\\d{3,4})(| )?(\\d{4})(( x| ext)\\d{1,5}){0,1}$", + "id":"telephone_mobile_8_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"web", + "label":"Site internet", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$", + "id":"web_9_1" + }, + { + "type":"text", + "name":"mail", + "label":"Email", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^(([A-Za-z0-9_\\+\\-]+\\.)*[A-Za-z0-9_\\+\\-]+@([A-Za-z0-9_\\+\\-]+\\.)+([A-Za-z]{2,4})(\\s*(\n)\\s*))*([A-Za-z0-9_\\+\\-]+\\.)*[A-Za-z0-9_\\+\\-]+@([A-Za-z0-9_\\+\\-]+\\.)+([A-Za-z]{2,4})$", + "id":"mail_10_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"voie", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"voie_12_1" + }, + { + "type":"integer", + "name":"code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"code_postal_11_1", + "max_length": 5 + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"bureau_etude", + "label":"Bureau d'étude", + "nb_cols":2, + "id":"bureau_etude_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + }, + { + "type":"radio", + "name":"concepteur", + "label":"Concepteur", + "nb_cols":2, + "id":"concepteur_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + }, + { + "type":"radio", + "name":"constructeur", + "label":"Constructeur", + "nb_cols":2, + "id":"constructeur_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + }, + { + "type":"radio", + "name":"installateur", + "label":"Installateur", + "nb_cols":2, + "id":"installateur_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + }, + { + "type":"radio", + "name":"vidangeur", + "label":"Vidangeur", + "nb_cols":2, + "id":"vidangeur_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + }, + { + "type":"radio", + "name":"en_activite", + "label":"En activité", + "nb_cols":2, + "id":"en_activite_18_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"observations", + "label":"Observations", + "nb_cols":12, + "id":"observations_19_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"map_osm", + "name":"geom", + "label":"Maps", + "required":false, + "nb_cols":12, + "id":"geom_24_1", + "style":{ + "height":"450px" + }, + "map_options":{ + "proj":"EPSG:2154", + "type":"OSM", + "output_format": "ewkt", + "center":{ + "extent":[ + 147983.20447998, + 6654194.9059082, + 686315.806604, + 7003761.5306641 + ], + "coord":[ + 417149.50554199, + 6828978.2182862 + ], + "scale":2931512 + }, + "controls":{ + "MP":true, + "ZO":true, + "SL":true, + "CP":true + }, + "layers":[ + + ], + "interactions":{ + "multi_geometry":false, + "full_screen":true, + "RA":false, + "RO":true, + "ED":true, + "DP":true, + "DL":false, + "DPol":false, + "SE":true + }, + "draw_color":"rgba(54,184,255,0.6)", + "contour_color":"rgba(0,0,0,0.4)", + "contour_size":2, + "circle_radius":6, + "features":[ + + ], + "coord_accuracy":8 + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "commune", + "siret", + "raison_sociale", + "nom_entreprise", + "nom_contact", + "telephone_fixe", + "telephone_mobile", + "web", + "mail", + "code_postal", + "voie", + "bureau_etude", + "concepteur", + "constructeur", + "installateur", + "vidangeur", + "en_activite", + "observations", + "geom", + "insert_button" + ] + } + ] + } + }, + "update":{ + "name":"anc_parametrage_anc_entreprise-form", + "title":"ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_entreprises", + "label":"ID", + "nb_cols":12, + "id":"id_parametre_entreprises_1_1" + } + ] + }, + { + "fields":[ + { + "type":"editable_select", + "name":"commune", + "label":"Commune", + "required":true, + "nb_cols":6, + "id":"commune_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"nom", + "attributs":"nom" + }, + "id_from":"commune_2_1_from" + }, + { + "type":"text", + "name":"siret", + "label":"SIRET", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^[0-9]{3}[ \\.\\-]?[0-9]{3}[ \\.\\-]?[0-9]{3}[ \\.\\-]?[0-9]{5}$", + "id":"siret_3_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"raison_sociale", + "label":"Raison sociale", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"raison_sociale_4_1" + }, + { + "type":"text", + "name":"nom_entreprise", + "label":"Nom de l'entreprise", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_entreprise_5_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"nom_contact", + "label":"Contact", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"nom_contact_6_1" + }, + { + "type":"text", + "name":"telephone_fixe", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 10, + "pattern":"^0[0-9]{9}$", + "id":"telephone_fixe_7_1" + }, + { + "type":"text", + "name":"telephone_mobile", + "label":"Mobile", + "disabled":false, + "required":false, + "nb_cols":4, + "pattern" : "^((\\+\\d{1,3}(| )?\\(?\\d\\)?(| )?\\d{1,5})|(\\(?\\d{2,6}\\)?))(| )?(\\d{3,4})(| )?(\\d{4})(( x| ext)\\d{1,5}){0,1}$", + "id":"telephone_mobile_8_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"web", + "label":"Site internet", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$", + "id":"web_9_1" + }, + { + "type":"text", + "name":"mail", + "label":"Email", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^(([A-Za-z0-9_\\+\\-]+\\.)*[A-Za-z0-9_\\+\\-]+@([A-Za-z0-9_\\+\\-]+\\.)+([A-Za-z]{2,4})(\\s*(\n)\\s*))*([A-Za-z0-9_\\+\\-]+\\.)*[A-Za-z0-9_\\+\\-]+@([A-Za-z0-9_\\+\\-]+\\.)+([A-Za-z]{2,4})$", + "id":"mail_10_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"voie", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"voie_12_1" + }, + { + "type":"integer", + "name":"code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"code_postal_11_1", + "max_length": 5 + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"bureau_etude", + "label":"Bureau d'étude", + "nb_cols":2, + "id":"bureau_etude_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13416" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13417" + } + ] + } + }, + { + "type":"radio", + "name":"concepteur", + "label":"Concepteur", + "nb_cols":2, + "id":"concepteur_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13424" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13425" + } + ] + } + }, + { + "type":"radio", + "name":"constructeur", + "label":"Constructeur", + "nb_cols":2, + "id":"constructeur_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13432" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13433" + } + ] + } + }, + { + "type":"radio", + "name":"installateur", + "label":"Installateur", + "nb_cols":2, + "id":"installateur_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13440" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13441" + } + ] + } + }, + { + "type":"radio", + "name":"vidangeur", + "label":"Vidangeur", + "nb_cols":2, + "id":"vidangeur_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13448" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13449" + } + ] + } + }, + { + "type":"radio", + "name":"en_activite", + "label":"En activité", + "nb_cols":2, + "id":"en_activite_18_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13456" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13457" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"observations", + "label":"Observations", + "nb_cols":12, + "id":"observations_19_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"creat", + "label":"Auteur", + "nb_cols":6, + "id":"creat_20_1" + }, + { + "type":"label", + "name":"creat_date", + "label":"Date de création", + "nb_cols":6, + "id":"creat_date_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "id":"maj_22_1", + "nb_cols":6, + "label":"Mise à jour" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_23_1" + } + ] + }, + { + "fields":[ + { + "type":"map_osm", + "name":"geom", + "label":"Maps", + "required":false, + "nb_cols":12, + "id":"geom_24_1", + "style":{ + "height":"400px" + }, + "map_options":{ + "proj":"EPSG:2154", + "type":"OSM", + "output_format": "ewkt", + "center":{ + "extent":[ + 97101.84020996303, + 6672838.459228512, + 701463.69367676, + 6983564.347900387 + ], + "coord":[ + 399282.7669433615, + 6828201.403564449 + ], + "scale":2931544 + }, + "controls":{ + "MP":true, + "ZO":true, + "SL":true, + "CP":true + }, + "layers":[ + + ], + "interactions":{ + "multi_geometry":false, + "full_screen":true, + "RA":false, + "RO":true, + "ED":true, + "DP":true, + "DL":false, + "DPol":false, + "SE":true + }, + "draw_color":"rgba(54,184,255,0.6)", + "contour_color":"rgba(0,0,0,0.4)", + "contour_size":2, + "circle_radius":6, + "features":[ + + ], + "coord_accuracy":8 + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent":"initAncParametrageEntrepriseForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_entreprises", + "commune", + "siret", + "raison_sociale", + "nom_entreprise", + "nom_contact", + "telephone_fixe", + "telephone_mobile", + "web", + "mail", + "code_postal", + "voie", + "bureau_etude", + "concepteur", + "constructeur", + "installateur", + "vidangeur", + "en_activite", + "observations", + "creat", + "creat_date", + "maj", + "maj_date", + "geom", + "update_button" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"commune", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_commune" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + } + } +} diff --git a/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_param_admin.json b/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_param_admin.json new file mode 100755 index 0000000000000000000000000000000000000000..aa595125be12dc9ab732e2414b470ac52fe1c15d --- /dev/null +++ b/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_param_admin.json @@ -0,0 +1,750 @@ +{ + "display":{ + "name":"anc_parametrage_anc_param_admin-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_admin", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"id_parametre_admin_1_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"id_com", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_com_2_1" + }, + { + "type":"label", + "name":"type", + "label":"Type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"type_3_1" + }, + { + "type":"label", + "name":"sous_type", + "label":"Sous type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"sous type_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"civilite", + "label":"Civilité", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"civilite_8_1" + }, + { + "type":"label", + "name":"nom", + "label":"Nom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"nom_5_1" + }, + { + "type":"label", + "name":"prenom", + "label":"Prénom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"prenom_6_1" + }, + { + "type":"label", + "name":"qualite", + "label":"Qualité", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"qualite_10_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"description", + "label":"Description", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"description_7_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"date_fin_validite", + "label":"Date de fin de validité", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"date_fin_validite_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"signature", + "label":"Signature", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"signature_11_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent":"initAncParametrageAdministrateurForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_admin", + "id_com", + "type", + "sous_type", + "nom", + "prenom", + "description", + "civilite", + "date_fin_validite", + "qualite", + "signature", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_parametrage_anc_param_admin-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":4, + "id":"Element_0_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + } + }, + { + "type":"text", + "name":"nom", + "label":"Nom", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_0_1_2" + }, + { + "type":"select", + "name":"type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"type_3_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"type_3_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"sous_type", + "label":"Sous type", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_0_1_3" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_com", + "nom", + "type", + "sous_type" + ] + } + ] + } + }, + "insert":{ + "name":"anc_parametrage_anc_param_admin-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":4, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"id_com_2_1_from" + }, + { + "type":"select", + "name":"type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"type_3_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"type_3_1_from" + }, + { + "type":"text", + "name":"sous_type", + "label":"Sous type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"sous type_4_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"civilite", + "label":"Civilité", + "required":false, + "nb_cols":3, + "id":"civilite_8_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"civilite_8_1_from" + }, + { + "type":"text", + "name":"nom", + "label":"Nom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"nom_5_1" + }, + { + "type":"text", + "name":"prenom", + "label":"Prénom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"prenom_6_1" + }, + { + "type":"select", + "name":"qualite", + "label":"Qualité", + "required":false, + "nb_cols":3, + "id":"qualite_10_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"qualite_10_1_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"description", + "label":"Description", + "nb_cols":12, + "id":"description_7_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"date_fin_validite", + "label":"Fin de validité", + "nb_cols":12, + "id":"date_fin_validite_9_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"signature", + "label":"Signature", + "nb_cols":12, + "id":"signature_11_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_com", + "type", + "sous_type", + "nom", + "prenom", + "description", + "civilite", + "date_fin_validite", + "qualite", + "signature", + "insert_button" + ] + } + ] + } + }, + "update":{ + "name":"anc_parametrage_anc_param_admin-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_admin", + "label":"ID", + "nb_cols":12, + "id":"id_parametre_admin_1_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":true, + "nb_cols":4, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"id_com_2_1_from" + }, + { + "type":"select", + "name":"type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"type_3_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"type_3_1_from" + }, + { + "type":"text", + "name":"sous_type", + "label":"Sous type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"sous type_4_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"civilite", + "label":"Civilité", + "required":false, + "nb_cols":3, + "id":"civilite_8_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"civilite_8_1_from" + }, + { + "type":"text", + "name":"nom", + "label":"Nom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"nom_5_1" + }, + { + "type":"text", + "name":"prenom", + "label":"Prénom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"prenom_6_1" + }, + { + "type":"select", + "name":"qualite", + "label":"Qualité", + "required":false, + "nb_cols":3, + "id":"qualite_10_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"qualite_10_1_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"description", + "label":"Description", + "nb_cols":12, + "id":"description_7_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"date_fin_validite", + "label":"Fin de validité", + "nb_cols":12, + "id":"date_fin_validite_9_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"signature", + "label":"ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_SIGNATURE", + "nb_cols":12, + "id":"signature_11_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent":"initAncParametrageAdministrateurForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_admin", + "id_com", + "type", + "sous_type", + "nom", + "prenom", + "description", + "civilite", + "date_fin_validite", + "qualite", + "signature", + "update_button" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"commune", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_commune" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"civilité", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "param_admin", "nom_liste": "civilite"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"qualite", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "param_admin", "nom_liste": "qualite"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "param_admin", "nom_liste": "type"} + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_param_liste.json b/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_param_liste.json new file mode 100755 index 0000000000000000000000000000000000000000..23dbc3f4499580494828e2782b54f89d4c19e6af --- /dev/null +++ b/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_param_liste.json @@ -0,0 +1,433 @@ +{ + "display":{ + "name":"anc_parametrage_anc_param_liste-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_liste", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"id_parametre_liste_1_1", + "default_value":"36" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"id_nom_table", + "label":"Nom de table", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_nom_table_2_1", + "default_value":"installation" + }, + { + "type":"label", + "name":"nom_liste", + "label":"Nom de liste", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_liste_3_1", + "default_value":"cont_zone_enjeu" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"valeur", + "label":"Valeur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"valeurs_4_1", + "default_value":"SANITAIRE" + }, + { + "type":"label", + "name":"alias", + "label":"Alias", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"alias_5_1", + "default_value":"Sanitaire" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_liste", + "id_nom_table", + "nom_liste", + "valeur", + "alias", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_parametrage_anc_param_liste-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_nom_table", + "label":"Nom de table", + "required":false, + "nb_cols":6, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_nom_table", + "order_by":"id_nom_table", + "id_key":"id_nom_table", + "attributs":"id_nom_table" + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"nom_liste", + "label":"Nom de liste", + "required":false, + "nb_cols":6, + "id":"Element_0_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_liste", + "order_by":"nom_liste", + "id_key":"nom_liste", + "attributs":"nom_liste|nom_liste", + "parents":[ + { + "name":"id_nom_table", + "filter_attr":"id_nom_table", + "filter_equality":"=", + "wait_for_parent":false + } + ] + }, + "id_from":"Element_0_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_nom_table", + "nom_liste" + ] + } + ] + } + }, + "insert":{ + "name":"anc_parametrage_anc_param_liste-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"text", + "name":"id_nom_table", + "label":"Nom de la table", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_nom_table_2_1" + }, + { + "type":"text", + "name":"nom_liste", + "label":"Nom de la liste", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_liste_3_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"valeur", + "label":"Valeur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"valeurs_4_1" + }, + { + "type":"text", + "name":"alias", + "label":"Alias", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"alias_5_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_nom_table", + "nom_liste", + "valeur", + "alias", + "insert_button" + ] + } + ] + } + }, + "update":{ + "name":"anc_parametrage_anc_param_liste-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_liste", + "label":"ID", + "nb_cols":12, + "id":"id_parametre_liste_1_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"id_nom_table", + "label":"Nom de la table", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_nom_table_2_1" + }, + { + "type":"text", + "name":"nom_liste", + "label":"Nom de la liste", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_liste_3_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"valeur", + "label":"Valeur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"valeurs_4_1" + }, + { + "type":"text", + "name":"alias", + "label":"Alias", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"alias_5_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_liste", + "id_nom_table", + "nom_liste", + "valeur", + "alias", + "update_button" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"id_nom_table", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"nom_table" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"nom_liste", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_param_tarif.json b/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_param_tarif.json new file mode 100755 index 0000000000000000000000000000000000000000..2ca3c28a0cbd004a148b36567502349a56ab7478 --- /dev/null +++ b/src/module_anc/module/forms/anc_parametrage/anc_parametrage_anc_param_tarif.json @@ -0,0 +1,481 @@ +{ + "display":{ + "name":"anc_parametrage_anc_param_tarif-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_tarif", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"id_parametre_tarif_1_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"id_com", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_com_2_1" + }, + { + "type":"label", + "name":"controle_type", + "label":"Type de contrôle", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"controle_type_3_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"montant", + "label":"Montant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"montant_4_1" + }, + { + "type":"label", + "name":"annee_validite", + "label":"Année de validité", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"annee_validite_5_1" + }, + { + "type":"label", + "name":"devise", + "label":"Devise", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"devise_6_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_tarif", + "id_com", + "controle_type", + "montant", + "annee_validite", + "devise", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_parametrage_anc_param_tarif-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":6, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":false, + "nb_cols":6, + "id":"Element_0_1_2", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"alias|valeur" + }, + "id_from":"Element_0_1_2_from" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_com", + "controle_type" + ] + } + ] + } + }, + "insert":{ + "name":"anc_parametrage_anc_param_tarif-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":true, + "nb_cols":6, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"nom|id_com" + }, + "id_from":"id_com_2_1_from" + }, + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":false, + "nb_cols":6, + "id":"controle_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"alias|valeur" + }, + "id_from":"controle_type_3_1_from" + } + ] + }, + { + "fields":[ + { + "type":"float", + "name":"montant", + "label":"Montant", + "nb_cols":4, + "id":"montant_4_1" + }, + { + "type":"integer", + "name":"annee_validite", + "label":"Année de validité", + "nb_cols":4, + "id":"annee_validite_5_1" + }, + { + "type":"text", + "name":"devise", + "label":"Devise", + "disabled":false, + "required":false, + "nb_cols":4, + "default_value":"euros", + "id":"devise_6_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_com", + "controle_type", + "montant", + "annee_validite", + "devise", + "insert_button" + ] + } + ] + } + }, + "update":{ + "name":"anc_parametrage_anc_param_tarif-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_tarif", + "label":"ID", + "nb_cols":12, + "id":"id_parametre_tarif_1_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":6, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + } + }, + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":false, + "nb_cols":6, + "id":"controle_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"alias|valeur" + }, + "id_from":"controle_type_3_1_from" + } + ] + }, + { + "fields":[ + { + "type":"float", + "name":"montant", + "label":"Montant", + "nb_cols":4, + "id":"montant_4_1" + }, + { + "type":"integer", + "name":"annee_validite", + "label":"Année de validité", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"annee_validite_5_1" + }, + { + "type":"text", + "name":"devise", + "label":"Devise", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"devise_6_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_tarif", + "id_com", + "controle_type", + "montant", + "annee_validite", + "devise", + "update_button" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"communes", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_commune" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"control_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "controle_type"} + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle.json new file mode 100755 index 0000000000000000000000000000000000000000..3ca7df18f05ec2b369085cff9efe3e80a303c3c0 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle.json @@ -0,0 +1,3420 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle-form", + "title":"ANC_SAISIE_ANC_CONTROLE_TITLE", + "input_size":"xxs", + "initEvent": "initAncControlForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_controle", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_controle_1_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"Installation", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_installation_2_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dossier", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"controle_type", + "label":"Type de contrôle", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"controle_type_3_1" + }, + { + "type":"label", + "name":"controle_ss_type", + "label":"Sous type de contrôle", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"controle_ss_type_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_date_control", + "label":"Date de contrôle", + "disabled":false, + "required":true, + "nb_cols":6, + "id":"des_date_control_5_1" + }, + { + "type":"label", + "name":"des_interval_control", + "label":"Intervalle avec le prochain contrôle", + "disabled":false, + "required":true, + "nb_cols":6, + "id":"des_interval_control_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_pers_control", + "label":"Personnes présentes lors du contrôle", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"des_pers_control_7_1" + }, + { + "type":"label", + "name":"des_agent_control", + "label":"Nom du contrôleur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"des_agent_control_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_installateur", + "label":"Installateur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_installateur_9_1" + }, + { + "type":"label", + "name":"des_date_installation", + "label":"Date de réalisation de la filière", + "disabled":false, + "required":true, + "nb_cols":6, + "id":"des_date_installation_11_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_date_recommande", + "label":"Date du recommandé", + "disabled":false, + "required":true, + "nb_cols":4, + "id":"des_date_recommande_12_1" + }, + { + "type":"label", + "name":"des_numero_recommande", + "label":"Numéro du recommandé", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"des_numero_recommande_13_1" + }, + { + "type":"label", + "name":"des_refus_visite", + "label":"Refus de visite", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"des_refus_visite_10_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Dépôt", + "nb_cols":12, + "id":"Element_1_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"dep_date_depot", + "label":"Date du dépôt du dossier", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"dep_date_depot_14_1" + }, + { + "type":"label", + "name":"dep_liste_piece", + "label":"Liste des pièces", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"dep_liste_piece_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"dep_dossier_complet", + "label":"Le dossier est-il complet ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"dep_dossier_complet_16_1" + }, + { + "type":"label", + "name":"dep_date_envoi_incomplet", + "label":"Date de rappel du dossier incomplet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"dep_date_envoi_incomplet_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_nature_projet", + "label":"Nature du projet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_nature_projet_18_1" + }, + { + "type":"label", + "name":"des_concepteur", + "label":"Concepteur du projet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_concepteur_19_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Caractéristique du terrain", + "nb_cols":12, + "id":"Element_2_13_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_surface_dispo_m2", + "label":"Surface disponible pour l'installation (en m²)", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"car_surface_dispo_m2_21_1" + }, + { + "type":"label", + "name":"car_permea", + "label":"Perméabilité", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"car_permea_22_1" + }, + { + "type":"label", + "name":"car_valeur_permea", + "label":"Valeur de Perméabilité (k en mm/h)", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"car_valeur_permea_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_hydromorphie", + "label":"Hydromorphie", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_hydromorphie_24_1" + }, + { + "type":"label", + "name":"car_prof_app", + "label":"Profondeur d’apparition en cm", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_prof_app_25_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_nappe_fond", + "label":"Nappe d’eau présente à moins de 1 mètre du fond de fouille", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_nappe_fond_26_1" + }, + { + "type":"label", + "name":"car_terrain_innondable", + "label":"Terrain innondable ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_terrain_innondable_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_roche_sol", + "label":"Présence de la roche à moins de 1 mètre de la surface du sol", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"car_roche_sol_28_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Implantation", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_dist_hab", + "label":"Distance de l’habitation ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_dist_hab_29_1" + }, + { + "type":"label", + "name":"car_dist_lim_par", + "label":"Distance limite de la parcelle ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_dist_lim_par_30_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_dist_veget", + "label":"Distance de la végétation ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_dist_veget_31_1" + }, + { + "type":"label", + "name":"car_dist_puit", + "label":"Distance du puit ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_dist_puit_32_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Modification intervenu", + "nb_cols":12, + "id":"Element_4_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_reamenage_terrain", + "label":"Réaménagement du terrain sur et aux abords de l'installation", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_reamenage_terrain_33_1" + }, + { + "type":"label", + "name":"des_reamenage_immeuble", + "label":"Réaménagement de l'immeuble:augmentation du nombre de PP", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_reamenage_immeuble_34_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_real_trvx", + "label":"Réalisation des travaux notifiés dans le précédent rapport de visite.", + "disabled":false, + "required":false, + "nb_cols":7, + "id":"des_real_trvx_35_1" + }, + { + "type":"label", + "name":"des_anc_ss_accord", + "label":"Réalisation d'un anc sans accord du SPANC", + "disabled":false, + "required":false, + "nb_cols":5, + "id":"des_anc_ss_accord_36_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Collecte des eaux pluviales", + "nb_cols":12, + "id":"Element_5_24_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_collecte_ep", + "label":"Destination des eaux pluviales", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_collecte_ep_37_1" + }, + { + "type":"label", + "name":"des_sep_ep_eu", + "label":"Séparation des eaux pluviales et des eaux usées", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_sep_ep_eu_38_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Collecte EU", + "nb_cols":12, + "id":"Element_8_26_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_eu_nb_sortie", + "label":"Nombre de sorties eaux usées", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_eu_nb_sortie_39_1" + }, + { + "type":"label", + "name":"des_eu_tes_regards", + "label":"Nombre de regard de collecte ou té de visite", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_eu_tes_regards_40_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_eu_pente_ecoul", + "label":"Pente des canalisations suffisante pour permettre un bon écoulement ?", + "disabled":false, + "required":false, + "nb_cols":7, + "id":"des_eu_pente_ecoul_41_1" + }, + { + "type":"label", + "name":"des_eu_regars_acces", + "label":"Regard accessible", + "disabled":false, + "required":false, + "nb_cols":5, + "id":"des_eu_regars_acces_42_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_eu_alteration", + "label":"Signes d'altération", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_eu_alteration_43_1" + }, + { + "type":"label", + "name":"des_eu_ecoulement", + "label":"L'écoulement se fait il correctement?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_eu_ecoulement_44_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_eu_depot_regard", + "label":"Dépot de matière en fond de regard?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"des_eu_depot_regard_45_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Commentaires", + "nb_cols":12, + "id":"Element_7_31_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"des_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"des_commentaire_46_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "num_dossier", + "controle_type", + "controle_ss_type", + "des_date_control", + "des_interval_control", + "des_pers_control", + "des_agent_control", + "des_refus_visite", + "des_date_installation", + "des_date_recommande", + "des_numero_recommande", + "dep_date_depot", + "dep_liste_piece", + "dep_dossier_complet", + "dep_date_envoi_incomplet", + "des_nature_projet", + "des_concepteur", + "car_surface_dispo_m2", + "car_permea", + "car_valeur_permea", + "car_hydromorphie", + "car_prof_app", + "car_nappe_fond", + "car_terrain_innondable", + "car_roche_sol", + "car_dist_hab", + "car_dist_lim_par", + "car_dist_veget", + "car_dist_puit", + "des_reamenage_terrain", + "des_reamenage_immeuble", + "des_real_trvx", + "des_anc_ss_accord", + "des_collecte_ep", + "des_sep_ep_eu", + "des_eu_nb_sortie", + "des_eu_tes_regards", + "des_eu_pente_ecoul", + "des_eu_regars_acces", + "des_eu_alteration", + "des_eu_ecoulement", + "des_eu_depot_regard", + "des_commentaire", + "display_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_6", + "Element_7", + "des_installateur" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle-form", + "title":"ANC_SAISIE_ANC_CONTROLE_TITLE", + "input_size":"xxs", + "initEvent": "initAncControlForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"text", + "name":"num_dossier", + "label":"nº installation", + "nb_cols":4, + "visible": true + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_0_1_1_from", + "visible": false + }, + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":false, + "nb_cols":4, + "id":"Element_1_1_2", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_1_1_2_from" + }, + { + "type":"select", + "name":"controle_ss_type", + "label":"Sous type de contrôle", + "required":false, + "nb_cols":4, + "id":"Element_2_1_3", + "id_from":"Element_2_1_3_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"des_date_control", + "label":"Date du contrôle", + "nb_cols":4, + "id":"Element_3_1_4" + }, + { + "type":"radio", + "name":"des_refus_visite", + "label":"Refus de visite", + "nb_cols":4, + "id":"Element_5_1_6", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"dep_date_depot", + "label":"Date du dépôt de dossier", + "nb_cols":3, + "id":"Element_6_1_7" + }, + { + "type":"radio", + "name":"dep_dossier_complet", + "label":"Le dossier est-il complet ?", + "nb_cols":3, + "id":"Element_7_1_8", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "visible": false + }, + { + "type":"select", + "name":"cl_avis", + "label":"Conforme à la reglementation ?", + "required":false, + "nb_cols":4, + "id":"Element_8_1_9", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_8_1_9_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cl_classe_cbf", + "label":"Classement à l'issue du contrôle périodique", + "required":false, + "nb_cols":5, + "id":"Element_9_1_10", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_9_1_10_from", + "visible": false + }, + { + "type":"date", + "name":"cl_date_avis", + "label":"Date de l'avis", + "nb_cols":3, + "id":"Element_10_1_11" + }, + { + "type":"text", + "name":"cl_auteur_avis", + "label":"Auteur de l'avis", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_11_1_12", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"cl_facture", + "label":"A Facturer", + "nb_cols":6, + "id":"Element_0_5_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "num_dossier", + "controle_type", + "controle_ss_type", + "des_date_control", + "des_refus_visite", + "dep_date_depot", + "dep_dossier_complet", + "cl_avis", + "cl_classe_cbf", + "cl_date_avis", + "cl_auteur_avis", + "cl_date_prochain_controle", + "cl_facture" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_controle-form", + "title":"ANC_SAISIE_ANC_CONTROLE_TITLE_INSERT", + "input_size":"xxs", + "initEvent": "initAncControlForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":5, + "id":"id_installation_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_2_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dossier", + "nb_cols":12, + "id":"Element_0_2_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":false, + "nb_cols":6, + "id":"controle_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"controle_type_3_1_from" + }, + { + "type":"select", + "name":"controle_ss_type", + "label":"Sous type de contrôle", + "required":false, + "nb_cols":6, + "id":"controle_ss_type_4_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"controle_ss_type_4_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"des_date_control", + "label":"Date du contrôle", + "nb_cols":6, + "id":"des_date_control_5_1", + "required":true + }, + { + "type":"select", + "name":"des_interval_control", + "label":"Intervalle avec le prochain contrôle", + "required":false, + "nb_cols":6, + "id":"des_interval_control_45_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"des_pers_control", + "label":"Personnes présentes lors du contrôle", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"des_pers_control_7_1", + "visible": false + }, + { + "type":"select", + "name":"des_agent_control", + "label":"Nom du contrôleur", + "required":false, + "nb_cols":4, + "id":"des_agent_control_8_1", + "id_from":"des_agent_control_8_1_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_prenom", + "order_by":"nom_prenom", + "id_key":"id_parametre_admin", + "attributs":"id_parametre_admin|nom_prenom" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_installateur", + "label":"Installateur", + "required":false, + "nb_cols":6, + "id":"des_installateur_9_1", + "id_from":"des_installateur_9_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "visible": false + }, + { + "type":"date", + "name":"des_date_installation", + "label":"Date de réalisation de la filière", + "nb_cols":6, + "id":"des_date_installation_11_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"des_date_recommande", + "label":"Date du recommandé", + "nb_cols":4, + "id":"des_date_recommande_12_1" + }, + { + "type":"text", + "name":"des_numero_recommande", + "label":"Numéro du recommandé", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"des_numero_recommande_13_1", + "visible": false + }, + { + "type":"radio", + "name":"des_refus_visite", + "label":"Refus de visite", + "nb_cols":4, + "id":"des_refus_visite_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:80675" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:80676" + } + ] + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Dépôt", + "nb_cols":12, + "id":"Element_1_8_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"dep_date_depot", + "label":"Date du dépôt du dossier", + "nb_cols":4, + "id":"dep_date_depot_14_1" + } + ] + }, + { + "fields":[ + { + "type":"double_select", + "name":"dep_liste_piece", + "label":"Liste des pièces", + "required":false, + "nb_cols":12, + "id":"dep_liste_piece_15_1", + "name_to":"dep_liste_piece", + "name_from":"dep_liste_piece_from", + "id_from":"dep_liste_piece_15_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "id_key":"valeur", + "label_key":"alias", + "attributs":"valeur|alias", + "order_by":"alias" + }, + "label_from":"Pièces disponibles", + "label_to":"Pièces fournies lors du contrôle", + "size":5, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"dep_dossier_complet", + "label":"Le dossier est il complet ?", + "nb_cols":6, + "id":"dep_dossier_complet_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:80703" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:80704" + } + ] + }, + "visible": false + }, + { + "type":"date", + "name":"dep_date_envoi_incomplet", + "label":"Date de rappel du dossier incomplet", + "nb_cols":6, + "id":"dep_date_envoi_incomplet_17_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_nature_projet", + "label":"Nature du projet", + "required":false, + "nb_cols":6, + "id":"des_nature_projet_18_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_nature_projet_18_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_concepteur", + "label":"Concepteur du projet", + "required":true, + "nb_cols":6, + "id":"des_concepteur_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"des_concepteur_19_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Caractéristiques du terrain", + "nb_cols":12, + "id":"Element_2_14_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"car_surface_dispo_m2", + "label":"Surface disponible pour l'installation (en m²)", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_surface_dispo_m2_21_1", + "visible": false + }, + { + "type":"select", + "name":"car_permea", + "label":"Perméabilité", + "required":false, + "nb_cols":6, + "id":"car_permea_22_1", + "id_from":"car_permea_22_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"car_valeur_permea", + "label":"Valeur de Perméabilité (k en mm/h)", + "required":true, + "nb_cols":6, + "id":"car_valeur_permea_23_1", + "visible": false + }, + { + "type":"select", + "name":"car_hydromorphie", + "label":"Hydromorphie", + "required":false, + "nb_cols":6, + "id":"car_hydromorphie_24_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_hydromorphie_24_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"car_prof_app", + "label":"Profondeur d’apparition en cm", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_prof_app_25_1", + "visible": false + }, + { + "type":"select", + "name":"car_nappe_fond", + "label":"Nappe d’eau présente à moins de 1 mètre du fond de fouille", + "required":false, + "nb_cols":6, + "id":"car_nappe_fond_26_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_nappe_fond_26_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_terrain_innondable", + "label":"Terrain innondable ?", + "required":false, + "nb_cols":6, + "id":"car_terrain_innondable_27_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_terrain_innondable_27_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_roche_sol", + "label":"Présence de la roche à moins de 1 mètre de la surface du sol", + "required":false, + "nb_cols":6, + "id":"car_roche_sol_28_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_roche_sol_28_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Implantation", + "nb_cols":12, + "id":"Element_3_19_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_dist_hab", + "label":"Distance de l’habitation ?", + "required":false, + "nb_cols":6, + "id":"car_dist_hab_29_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_hab_29_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_dist_lim_par", + "label":"Distance limite de la parcelle ?", + "required":false, + "nb_cols":6, + "id":"car_dist_lim_par_30_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_lim_par_30_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_dist_veget", + "label":"Distance de la végétation ?", + "required":false, + "nb_cols":6, + "id":"car_dist_veget_31_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_veget_31_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_dist_puit", + "label":"Distance du puit ?", + "required":false, + "nb_cols":6, + "id":"car_dist_puit_32_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_puit_32_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Modification intervenu", + "nb_cols":12, + "id":"Element_4_22_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_reamenage_terrain", + "label":"Réaménagement du terrain sur et aux abords de l'installation", + "required":false, + "nb_cols":6, + "id":"des_reamenage_terrain_33_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_reamenage_terrain_33_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_reamenage_immeuble", + "label":"Réaménagement de l'immeuble:augmentation du nombre de PP", + "required":false, + "nb_cols":6, + "id":"des_reamenage_immeuble_34_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_reamenage_immeuble_34_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_real_trvx", + "label":"Réalisation des travaux notifiés dans le précédent rapport de visite.", + "required":false, + "nb_cols":7, + "id":"des_real_trvx_35_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_real_trvx_35_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_anc_ss_accord", + "label":"Réalisation d'un anc sans accord du SPANC", + "required":false, + "nb_cols":5, + "id":"des_anc_ss_accord_36_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_anc_ss_accord_36_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Collecte des eaux pluviales", + "nb_cols":12, + "id":"Element_5_25_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_collecte_ep", + "label":"Destination des eaux pluviales", + "required":false, + "nb_cols":6, + "id":"des_collecte_ep_37_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_collecte_ep_37_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_sep_ep_eu", + "label":"Séparation des eaux pluviales et des eaux usées", + "required":false, + "nb_cols":6, + "id":"des_sep_ep_eu_38_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_sep_ep_eu_38_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Collecte EU", + "nb_cols":12, + "id":"Element_8_28_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_nb_sortie", + "label":"Nombre de sorties eaux usées", + "required":false, + "nb_cols":6, + "id":"des_eu_nb_sortie_39_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_nb_sortie_39_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_eu_tes_regards", + "label":"Nombre de regard de collecte ou té de visite", + "required":false, + "nb_cols":6, + "id":"des_eu_tes_regards_40_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_tes_regards_40_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_pente_ecoul", + "label":"Pente des canalisations suffisante pour permettre un bon écoulement ?", + "required":false, + "nb_cols":7, + "id":"des_eu_pente_ecoul_41_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_pente_ecoul_41_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_eu_regars_acces", + "label":"Regard accessible", + "required":false, + "nb_cols":5, + "id":"des_eu_regars_acces_42_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_regars_acces_42_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_alteration", + "label":"Signes d'altération", + "required":false, + "nb_cols":6, + "id":"des_eu_alteration_43_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_alteration_43_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_eu_ecoulement", + "label":"L'écoulement se fait il correctement?", + "required":false, + "nb_cols":6, + "id":"des_eu_ecoulement_44_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_ecoulement_44_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_depot_regard", + "label":"Dépot de matière en fond de regard?", + "required":false, + "nb_cols":12, + "id":"des_eu_depot_regard_45_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_depot_regard_45_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Commentaires", + "nb_cols":12, + "id":"Element_7_31_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"des_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"des_commentaire_46_1", + "nb_rows":10, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "num_dossier", + "controle_type", + "controle_ss_type", + "des_date_control", + "des_interval_control", + "des_pers_control", + "des_agent_control", + "des_refus_visite", + "des_date_installation", + "des_date_recommande", + "des_numero_recommande", + "dep_date_depot", + "dep_liste_piece", + "dep_dossier_complet", + "dep_date_envoi_incomplet", + "des_nature_projet", + "des_concepteur", + "car_surface_dispo_m2", + "car_permea", + "car_valeur_permea", + "car_hydromorphie", + "car_prof_app", + "car_nappe_fond", + "car_terrain_innondable", + "car_roche_sol", + "car_dist_hab", + "car_dist_lim_par", + "car_dist_veget", + "car_dist_puit", + "des_reamenage_terrain", + "des_reamenage_immeuble", + "des_real_trvx", + "des_anc_ss_accord", + "des_collecte_ep", + "des_sep_ep_eu", + "des_eu_nb_sortie", + "des_eu_tes_regards", + "des_eu_pente_ecoul", + "des_eu_regars_acces", + "des_eu_alteration", + "des_eu_ecoulement", + "des_eu_depot_regard", + "des_commentaire", + "insert_button", + "id_installation", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_7", + "Element_8", + "des_installateur" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle-form", + "title":"ANC_SAISIE_ANC_CONTROLE_TITLE", + "input_size":"xxs", + "initEvent": "initAncControlForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_controle", + "label":"ID", + "nb_cols":6, + "id":"id_controle_1_1" + }, + { + "_commentaire": "Pour enlever l'id de l'installation ajouter des '_' en début de ligne (de la ligne 1994 à 2998)", + "type": "label", + "name": "id_installation", + "label": "Installation", + "nb_cols": 6, + "id": "id_installation_1_1" + }, + { + "_commentaire": "Pour remettre la liste des installations enlever les '_' en début de ligne (de la ligne 2002 à 2017)", + "_type":"select", + "_name":"id_installation", + "_label":"Installation", + "_required":true, + "_nb_cols":6, + "_id":"id_installation_2_1", + "_datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "_id_from":"id_installation_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dossier", + "nb_cols":12, + "id":"Element_0_2_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":true, + "nb_cols":6, + "id":"controle_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"controle_type_3_1_from" + }, + { + "type":"select", + "name":"controle_ss_type", + "label":"Sous type de contrôle", + "required":false, + "nb_cols":6, + "id":"controle_ss_type_4_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"controle_ss_type_4_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"des_date_control", + "label":"Date du contrôle", + "nb_cols":6, + "id":"des_date_control_5_1", + "required":true + }, + { + "type":"select", + "name":"des_interval_control", + "label":"Intervalle avec le prochain contrôle", + "required":false, + "nb_cols":6, + "id":"des_interval_control_45_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"des_pers_control", + "label":"Personnes présentes lors du contrôle", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"des_pers_control_7_1", + "visible": false + }, + { + "type":"select", + "name":"des_agent_control", + "label":"Nom du contrôleur", + "required":false, + "nb_cols":4, + "id":"des_agent_control_8_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_prenom", + "order_by":"nom_prenom", + "id_key":"id_parametre_admin", + "attributs":"id_parametre_admin|nom_prenom" + }, + "id_from":"des_agent_control_8_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_installateur", + "label":"Installateur", + "required":false, + "nb_cols":6, + "id":"des_installateur_9_1", + "id_from":"des_installateur_9_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "visible": false + }, + { + "type":"date", + "name":"des_date_installation", + "label":"Date de réalisation de la filière", + "nb_cols":6, + "id":"des_date_installation_11_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"des_date_recommande", + "label":"Date du recommandé", + "nb_cols":4, + "id":"des_date_recommande_12_1" + }, + { + "type":"text", + "name":"des_numero_recommande", + "label":"Numéro du recommandé", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"des_numero_recommande_13_1", + "visible": false + }, + { + "type":"radio", + "name":"des_refus_visite", + "label":"Refus de visite", + "nb_cols":4, + "id":"des_refus_visite_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:81242" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:81243" + } + ] + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Dépôt", + "nb_cols":12, + "id":"Element_1_8_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"dep_date_depot", + "label":"Date du dépôt du dossier", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"dep_date_depot_14_1" + } + ] + }, + { + "fields":[ + { + "type":"double_select", + "name":"dep_liste_piece", + "label":"Liste des pièces", + "required":false, + "nb_cols":12, + "id":"dep_liste_piece_15_1", + "name_to":"dep_liste_piece", + "name_from":"dep_liste_piece_from", + "size":5, + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "id_key":"valeur", + "label_key":"alias", + "attributs":"valeur|alias", + "order_by":"alias" + }, + "label_from":"Pièces disponibles", + "label_to":"Pièces fournies lors du contrôle", + "id_from":"dep_liste_piece_15_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"dep_dossier_complet", + "label":"Le dossier est-il complet ?", + "nb_cols":6, + "id":"dep_dossier_complet_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:81254" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:81255" + } + ] + }, + "visible": false + }, + { + "type":"date", + "name":"dep_date_envoi_incomplet", + "label":"Date de rappel du dossier incomplet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"dep_date_envoi_incomplet_17_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_nature_projet", + "label":"Nature du projet", + "required":false, + "nb_cols":6, + "id":"des_nature_projet_18_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_nature_projet_18_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_concepteur", + "label":"Concepteur du projet", + "required":true, + "nb_cols":6, + "id":"des_concepteur_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"des_concepteur_19_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Caractéristiques du terrain", + "nb_cols":12, + "id":"Element_2_14_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"car_surface_dispo_m2", + "label":"Surface disponible pour l'installation (en m²)", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_surface_dispo_m2_21_1", + "visible": false + }, + { + "type":"select", + "name":"car_permea", + "label":"Perméabilité", + "required":false, + "nb_cols":6, + "id":"car_permea_22_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_permea_22_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"car_valeur_permea", + "label":"Valeur de Perméabilité (k en mm/h)", + "disabled":false, + "required":true, + "nb_cols":6, + "id":"car_valeur_permea_23_1", + "visible": false + }, + { + "type":"select", + "name":"car_hydromorphie", + "label":"Hydromorphie", + "required":false, + "nb_cols":6, + "id":"car_hydromorphie_24_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_hydromorphie_24_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"car_prof_app", + "label":"Profondeur d’apparition en cm", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_prof_app_25_1", + "visible": false + }, + { + "type":"select", + "name":"car_nappe_fond", + "label":"Nappe d’eau présente à moins de 1 mètre du fond de fouille", + "required":false, + "nb_cols":6, + "id":"car_nappe_fond_26_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_nappe_fond_26_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_terrain_innondable", + "label":"Terrain innondable ?", + "required":false, + "nb_cols":6, + "id":"car_terrain_innondable_27_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_terrain_innondable_27_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_roche_sol", + "label":"Présence de la roche à moins de 1 mètre de la surface du sol", + "required":false, + "nb_cols":6, + "id":"car_roche_sol_28_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_roche_sol_28_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Implantation", + "nb_cols":12, + "id":"Element_3_19_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_dist_hab", + "label":"Distance de l’habitation ?", + "required":false, + "nb_cols":6, + "id":"car_dist_hab_29_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_hab_29_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_dist_lim_par", + "label":"Distance limite de la parcelle ?", + "required":false, + "nb_cols":6, + "id":"car_dist_lim_par_30_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_lim_par_30_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_dist_veget", + "label":"Distance de la végétation ?", + "required":false, + "nb_cols":6, + "id":"car_dist_veget_31_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_veget_31_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_dist_puit", + "label":"Distance du puit ?", + "required":false, + "nb_cols":6, + "id":"car_dist_puit_32_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_puit_32_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Modification intervenu", + "nb_cols":12, + "id":"Element_4_22_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_reamenage_terrain", + "label":"Réaménagement du terrain sur et aux abords de l'installation", + "required":false, + "nb_cols":6, + "id":"des_reamenage_terrain_33_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_reamenage_terrain_33_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_reamenage_immeuble", + "label":"Réaménagement de l'immeuble:augmentation du nombre de PP", + "required":false, + "nb_cols":6, + "id":"des_reamenage_immeuble_34_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_reamenage_immeuble_34_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_real_trvx", + "label":"Réalisation des travaux notifiés dans le précédent rapport de visite.", + "required":false, + "nb_cols":7, + "id":"des_real_trvx_35_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_real_trvx_35_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_anc_ss_accord", + "label":"Réalisation d'un anc sans accord du SPANC", + "required":false, + "nb_cols":5, + "id":"des_anc_ss_accord_36_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_anc_ss_accord_36_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Collecte des eaux pluviales", + "nb_cols":12, + "id":"Element_5_25_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_collecte_ep", + "label":"Destination des eaux pluviales", + "required":false, + "nb_cols":6, + "id":"des_collecte_ep_37_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_collecte_ep_37_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_sep_ep_eu", + "label":"Séparation des eaux pluviales et des eaux usées", + "required":false, + "nb_cols":6, + "id":"des_sep_ep_eu_38_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_sep_ep_eu_38_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Collecte EU", + "nb_cols":12, + "id":"Element_8_27_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_nb_sortie", + "label":"Nombre de sorties eaux usées", + "required":false, + "nb_cols":6, + "id":"des_eu_nb_sortie_39_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + }, + { + "type":"select", + "name":"des_eu_tes_regards", + "label":"Nombre de regard de collecte ou té de visite", + "required":false, + "nb_cols":6, + "id":"des_eu_tes_regards_40_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_pente_ecoul", + "label":"Pente des canalisations suffisante pour permettre un bon écoulement ?", + "required":false, + "nb_cols":7, + "id":"des_eu_pente_ecoul_41_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + }, + { + "type":"select", + "name":"des_eu_regars_acces", + "label":"Regard accessible", + "required":false, + "nb_cols":5, + "id":"des_eu_regars_acces_42_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_alteration", + "label":"Signes d'altération", + "required":false, + "nb_cols":6, + "id":"des_eu_alteration_43_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + }, + { + "type":"select", + "name":"des_eu_ecoulement", + "label":"L'écoulement se fait il correctement?", + "required":false, + "nb_cols":6, + "id":"des_eu_ecoulement_44_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_depot_regard", + "label":"Dépot de matière en fond de regard?", + "required":false, + "nb_cols":12, + "id":"des_eu_depot_regard_45_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Commentaires", + "nb_cols":12, + "id":"Element_7_32_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"des_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"des_commentaire_46_1", + "nb_rows":10, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "id_installation", + "controle_type", + "controle_ss_type", + "des_date_control", + "des_interval_control", + "des_pers_control", + "des_agent_control", + "des_refus_visite", + "des_date_installation", + "des_date_recommande", + "des_numero_recommande", + "dep_date_depot", + "dep_liste_piece", + "dep_dossier_complet", + "dep_date_envoi_incomplet", + "des_nature_projet", + "des_concepteur", + "car_surface_dispo_m2", + "car_permea", + "car_valeur_permea", + "car_hydromorphie", + "car_prof_app", + "car_nappe_fond", + "car_terrain_innondable", + "car_roche_sol", + "car_dist_hab", + "car_dist_lim_par", + "car_dist_veget", + "car_dist_puit", + "des_reamenage_terrain", + "des_reamenage_immeuble", + "des_real_trvx", + "des_anc_ss_accord", + "des_collecte_ep", + "des_sep_ep_eu", + "des_eu_nb_sortie", + "des_eu_tes_regards", + "des_eu_pente_ecoul", + "des_eu_regars_acces", + "des_eu_alteration", + "des_eu_ecoulement", + "des_eu_depot_regard", + "des_commentaire", + "update_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_7", + "Element_8", + "des_installateur" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"contrôle_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "controle_type"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle_ss_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "controle_ss_type"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_interval_control", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "des_interval_control"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cl_avis", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "cl_avis"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cl_classe_cbf", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "cl_classe_cbf"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_agent_control", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_param_admin", + "filter": {"type": "Contrôleur"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"param_entreprise_install", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_entreprise", + "filter": {"installateur": true} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"dep_liste_piece", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "dep_liste_piece"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"param_entreprise_concepteur", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_entreprise", + "filter":{"bureau_etude": true} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_permea", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_permea"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_prof_app", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_prof_app"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_nappe_fond", + "description":"", + "parameters":{ + "database":"", + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_nappe_fond"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_terrain_innondable", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_terrain_innondable"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_roche_sol", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_roche_sol"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_dist_hab", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_dist_hab"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_dist_lim_par", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_dist_lim_par"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_dist_veget", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_dist_veget"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_dist_puit", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_dist_puit"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_reamenage_terrain", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_reamenage_terrain"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_real_trvx", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_real_trvx"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_anc_ss_accord", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_anc_ss_accord"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_collecte_ep", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_collecte_ep"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_sep_ep_eu", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_sep_ep_eu"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_nb_sortie", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_nb_sortie"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_tes_regards", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_tes_regards"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_27":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_pente_ecoul", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_pente_ecoul"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_28":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_regars_acces", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_regars_acces"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_29":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_alteration", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_alteration"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_30":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_ecoulement", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_ecoulement"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_31":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_depot_regard", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_depot_regard"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_32":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_nature_projet", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_nature_projet"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_33":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_nature_projet", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_hydromorphie"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_34":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_reamenage_immeuble", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_reamenage_immeuble"} + }, + "ressource_id":"vitis/genericquerys" + } + } +} diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_conclusion.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_conclusion.json new file mode 100755 index 0000000000000000000000000000000000000000..38526a8dfa3acc140b2340b1d1a605c928babc4e --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_conclusion.json @@ -0,0 +1,522 @@ +{ + "display": { + "name": "anc_saisie_anc_controle_controle_conclusion-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "cl_avis", + "label": "Avis", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "cl_avis_1_1" + }, + { + "type": "label", + "name": "cl_classe_cbf", + "label": "Classement à l'issue du contrôle périodique", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "cl_classe_cbf_2_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_classe_cbf_warning", + "label": "EN CAS DE VENTE", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_classe_cbf_warning_2_1_2", + "default_value": "En cas de vente de l'immeuble, l'acquéreur doit procéder aux travaux de mise en conformitéde l'installation dans un délai de 1 an à compter de la date de signature de l'acte authentique de vente." + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_constat", + "label": "Constat", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_constat_2_2" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_travaux", + "label": "Travaux", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_travaux_2_3" + } + ] + }, + { + "fields": [ + { + "type": "tinymce", + "name": "cl_commentaires", + "label": "Commantaires / Modifications à réaliser", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_commentaires_3_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_date_avis", + "label": "Date de l'avis", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "cl_date_avis_4_1" + }, + { + "type": "label", + "name": "cl_auteur_avis", + "label": "Auteur de l'avis", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "cl_auteur_avis_5_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_montant", + "label": "Montant du contrôle", + "disabled": false, + "required": false, + "nb_cols": 4, + "id": "cl_montant_7_1" + }, + { + "type": "label", + "options": { + "choices": [ + { + "label": "oui", + "value": true + }, + { + "label": "non", + "value": false + } + ] + }, + "name": "cl_facture", + "label": "A Facturer", + "disabled": false, + "required": false, + "nb_cols": 4, + "id": "cl_facture_8_1" + }, + { + "type": "label", + "name": "cl_facture_le", + "label": "Date de facturation", + "disabled": false, + "required": false, + "nb_cols": 4, + "id": "cl_facture_le_9_1" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "display_button", + "id": "display_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlConclusionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "cl_avis", + "cl_classe_cbf", + "cl_commentaires", + "cl_date_avis", + "cl_auteur_avis", + "cl_montant", + "cl_facture", + "cl_facture_le", + "display_button", + "cl_constat", + "cl_travaux", + "cl_classe_cbf_warning" + ] + } + ] + } + }, + "search": { + "name": "anc_saisie_anc_controle_controle_conclusion-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + + ] + }, + "insert": { + "name": "anc_saisie_anc_controle_controle_conclusion-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + + ] + } + ] + } + }, + "update": { + "name": "anc_saisie_anc_controle_controle_conclusion-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "select", + "name": "cl_avis", + "label": "Avis", + "required": false, + "nb_cols": 6, + "id": "cl_avis_1_1", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "alias", + "order_by": "alias", + "id_key": "valeur", + "attributs": "valeur|alias" + }, + "id_from": "cl_avis_1_1_from" + }, + { + "type": "double_select", + "name": "cl_classe_cbf", + "name_to": "cl_classe_cbf", + "name_from": "cl_classe_cbf_from", + "label": "Classement à l'issue du contrôle périodique", + "required": false, + "nb_cols": 9, + "size": 9, + "id": "cl_classe_cbf_2_1", + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true", + "label_key": "alias", + "order_by": "alias", + "id_key": "valeur", + "attributs": "valeur|alias" + }, + "id_from": "cl_classe_cbf_2_1_from" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_classe_cbf_warning", + "label": "EN CAS DE VENTE", + "disabled": false, + "required": false, + "nb_cols": 12, + "default_value": "En cas de vente de l'immeuble, l'acquéreur doit procéder aux travaux de mise en conformitéde l'installation dans un délai de 1 an à compter de la date de signature de l'acte authentique de vente.", + "id": "cl_classe_cbf_warning_2_1_2" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "cl_constat", + "label": "Constat", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_constat_2_2", + "maxLength": 255 + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "cl_travaux", + "label": "Travaux", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_travaux_2_3", + "maxLength": 255 + } + ] + }, + { + "fields": [ + { + "type": "tinymce", + "name": "cl_commentaires", + "label": "Commentaires", + "nb_cols": 12, + "id": "cl_commentaires_3_1", + "nb_rows": 10 + } + ] + }, + { + "fields": [ + { + "type": "date", + "name": "cl_date_avis", + "label": "Date de l'avis", + "nb_cols": 6, + "id": "cl_date_avis_4_1" + }, + { + "type": "select", + "name": "cl_auteur_avis", + "label": "Auteur de l'avis", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "cl_auteur_avis_5_1", + "datasource": { + "datasource_id": "datasource_4", + "sort_order": "ASC", + "distinct": "true", + "label_key": "nom_prenom", + "order_by": "nom_prenom", + "id_key": "id_parametre_admin", + "attributs": "id_parametre_admin|nom_prenom" + }, + "id_from": "cl_auteur_avis_5_1_from" + } + ] + }, + { + "fields": [ + { + "type": "editable_select", + "name": "cl_montant", + "label": "Montant du contrôle", + "required": false, + "nb_cols": 6, + "id": "cl_montant_2_1", + "datasource": { + "datasource_id": "datasource_3", + "sort_order": "ASC", + "distinct": "true", + "label_key": "libelle_montant", + "order_by": "montant", + "id_key": "libelle_montant", + "attributs": "montant|libelle_montant" + }, + "id_from": "cl_montant_2_1_from" + }, + { + "type": "radio", + "options": { + "choices": [ + { + "label": "oui", + "value": true, + "$$hashKey": "object:78765" + }, + { + "label": "non", + "value": false, + "$$hashKey": "object:78766" + } + ] + }, + "name": "cl_facture", + "label": "A Facturer", + "disabled": false, + "required": false, + "nb_cols": 4, + "id": "cl_facture_8_1" + }, + { + "type": "date", + "name": "cl_facture_le", + "label": "Date de facturation", + "nb_cols": 4, + "id": "cl_facture_le_9_1" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_UPDATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlConclusionForm()", + "event": "sendSimpleForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "cl_avis", + "cl_classe_cbf", + "cl_commentaires", + "cl_date_avis", + "cl_auteur_avis", + "cl_montant", + "cl_facture", + "cl_facture_le", + "update_button", + "cl_constat", + "cl_travaux", + "cl_classe_cbf_warning" + ] + } + ] + } + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "tableValue", + "name": "cl_avis", + "description": "", + "parameters": { + "filter": { + "id_nom_table": "controle", + "nom_liste": "cl_avis" + }, + "schema": "s_anc", + "table": "param_liste" + }, + "ressource_id": "vitis/genericquerys" + }, + "datasource_2": { + "type": "web_service", + "dataType": "tableValue", + "name": "cl_classe_cbf", + "description": "", + "parameters": { + "filter": { + "id_nom_table": "controle", + "nom_liste": "cl_classe_cbf" + }, + "schema": "s_anc", + "table": "param_liste" + }, + "ressource_id": "vitis/genericquerys" + }, + "datasource_3": { + "type": "web_service", + "dataType": "tableValue", + "name": "cl_montant", + "description": "", + "parameters": { + "filter": { + "annee_validite": "", + "controle_type": "" + } + }, + "ressource_id": "anc/param_tarifs" + }, + "datasource_4": { + "type": "web_service", + "dataType": "tableValue", + "name": "cl_auteur_avis", + "description": "", + "parameters": { + "filter": { + "type": "Contrôleur" + } + }, + "ressource_id": "anc/param_admins" + } + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_dispositif.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_dispositif.json new file mode 100755 index 0000000000000000000000000000000000000000..516520299cc70e4d19b2b27f03d593855f8850bd --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_dispositif.json @@ -0,0 +1,1100 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_dispositif-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Chasse à auget", + "nb_cols":12, + "id":"Element_0_1_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_chasse_acces", + "label":"Accessible", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_chasse_acces_1_1" + }, + { + "type":"label", + "name":"da_chasse_auto", + "label":"Volume de la bâche (en Litres)", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_chasse_auto_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_chasse_pr_nat_eau", + "label":"Localisation de la chasse à auget", + "disabled":false, + "required":false, + "nb_cols":5, + "id":"da_chasse_pr_nat_eau_3_1" + }, + { + "type":"label", + "name":"da_chasse_ok", + "label":"La chasse à auget est-elle installée correctement (essai en eau) ?", + "disabled":false, + "required":false, + "nb_cols":7, + "id":"da_chasse_ok_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_chasse_dysfonctionnement", + "label":"Dysfonctionnement constaté", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_chasse_dysfonctionnement_5_1" + }, + { + "type":"label", + "name":"da_chasse_degradation", + "label":"Degradation constatées", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_chasse_degradation_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_chasse_entretien", + "label":"Entretien effectué", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"da_chasse_entretien_7_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Pompe de relevage", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_loc_pompe", + "label":"Localisation de la pompe", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_loc_pompe_8_1" + }, + { + "type":"label", + "name":"da_pr_acces", + "label":"Accessible", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_acces_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_nb_pompe", + "label":"Nombre de pompe de relevage", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_nb_pompe_10_1" + }, + { + "type":"label", + "name":"da_pr_nat_eau", + "label":"Nature des eaux usées raccordées à la pompe", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_nat_eau_11_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_ventilatio", + "label":"Présence d'une ventilation ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_ventilatio_12_1" + }, + { + "type":"label", + "name":"da_pr_ok", + "label":"La chasse à auget est-elle installée correctement (essai en eau) ?", + "disabled":false, + "required":false, + "nb_cols":7, + "id":"da_pr_ok_13_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_alarme", + "label":"Est-il prévu une alarme ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_alarme_14_1" + }, + { + "type":"label", + "name":"da_pr_clapet", + "label":"Présence d’un clapet anti retour ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_clapet_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_etanche", + "label":"Etanchéité du poste", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_etanche_16_1" + }, + { + "type":"label", + "name":"da_pr_branchement", + "label":"Branchement électrique?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_branchement_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_dysfonctionnement", + "label":"Dysfonctionnement constaté", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_dysfonctionnement_18_1" + }, + { + "type":"label", + "name":"da_pr_degradation", + "label":"Degradation constatées", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_degradation_19_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_entretien", + "label":"Entretien effectué", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"da_pr_entretien_20_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"da_commentaires", + "label":"Commentaires", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"da_commentaires_21_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlDispositifsAnnexesForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "da_chasse_acces", + "da_chasse_auto", + "da_chasse_pr_nat_eau", + "da_chasse_ok", + "da_chasse_dysfonctionnement", + "da_chasse_degradation", + "da_chasse_entretien", + "da_pr_loc_pompe", + "da_pr_acces", + "da_pr_nb_pompe", + "da_pr_nat_eau", + "da_pr_ok", + "da_pr_clapet", + "da_pr_etanche", + "da_pr_branchement", + "da_pr_dysfonctionnement", + "da_pr_degradation", + "da_pr_entretien", + "da_commentaires", + "display_button", + "Element_0", + "Element_1", + "da_pr_ventilatio", + "da_pr_alarme" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_dispositif-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_dispositif-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_dispositif-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Chasse à auget", + "nb_cols":12, + "id":"Element_1_1_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_chasse_acces", + "label":"Accessible", + "required":false, + "nb_cols":6, + "id":"da_chasse_acces_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_acces_1_1_from" + }, + { + "type":"number", + "name":"da_chasse_auto", + "label":"Volume de la bâche (en Litres)", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_chasse_auto_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_chasse_pr_nat_eau", + "label":"Localisation de la chasse à auget", + "required":false, + "nb_cols":5, + "id":"da_chasse_pr_nat_eau_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_pr_nat_eau_3_1_from" + }, + { + "type":"select", + "name":"da_chasse_ok", + "label":"La chasse à auget est-elle installée correctement (essai en eau) ?", + "required":false, + "nb_cols":7, + "id":"da_chasse_ok_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_ok_4_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_chasse_dysfonctionnement", + "label":"Dysfonctionnement constaté", + "required":false, + "nb_cols":6, + "id":"da_chasse_dysfonctionnement_5_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_dysfonctionnement_5_1_from" + }, + { + "type":"select", + "name":"da_chasse_degradation", + "label":"Degradation constatées", + "required":false, + "nb_cols":6, + "id":"da_chasse_degradation_6_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_degradation_6_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_chasse_entretien", + "label":"Entretien effectué", + "required":false, + "nb_cols":6, + "id":"da_chasse_entretien_7_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_entretien_7_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Pompe de relevage", + "nb_cols":12, + "id":"Element_2_6_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_loc_pompe", + "label":"Localisation de la pompe", + "required":false, + "nb_cols":6, + "id":"da_pr_loc_pompe_8_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_loc_pompe_8_1_from" + }, + { + "type":"select", + "name":"da_pr_acces", + "label":"Accessible", + "required":false, + "nb_cols":6, + "id":"da_pr_acces_9_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_acces_9_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_nb_pompe", + "label":"Nombre de pompe de relevage", + "required":false, + "nb_cols":6, + "id":"da_pr_nb_pompe_10_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_nb_pompe_10_1_from" + }, + { + "type":"select", + "name":"da_pr_nat_eau", + "label":"Nature des eaux usées raccordées à la pompe", + "required":false, + "nb_cols":6, + "id":"da_pr_nat_eau_11_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_nat_eau_11_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_ventilatio", + "label":"Présence d'une ventilation ?", + "required":false, + "nb_cols":6, + "id":"da_pr_ventilatio_12_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_ventilatio_12_1_from" + }, + { + "type":"select", + "name":"da_pr_ok", + "label":"La chasse à auget est-elle installée correctement (essai en eau) ?", + "required":false, + "nb_cols":6, + "id":"da_pr_ok_13_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_ok_13_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_alarme", + "label":"Est-il prévu une alarme ?", + "required":false, + "nb_cols":6, + "id":"da_pr_alarme_14_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_alarme_14_1_from" + }, + { + "type":"select", + "name":"da_pr_clapet", + "label":"Présence d’un clapet anti retour ?", + "required":false, + "nb_cols":6, + "id":"da_pr_clapet_15_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_clapet_15_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_etanche", + "label":"Etanchéité du poste", + "required":false, + "nb_cols":6, + "id":"da_pr_etanche_16_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_etanche_16_1_from" + }, + { + "type":"select", + "name":"da_pr_branchement", + "label":"Branchement électrique?", + "required":false, + "nb_cols":6, + "id":"da_pr_branchement_17_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_branchement_17_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_dysfonctionnement", + "label":"Dysfonctionnement constaté", + "required":false, + "nb_cols":6, + "id":"da_pr_dysfonctionnement_18_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_dysfonctionnement_18_1_from" + }, + { + "type":"select", + "name":"da_pr_degradation", + "label":"Degradation constatées", + "required":false, + "nb_cols":6, + "id":"da_pr_degradation_19_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_degradation_19_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_entretien", + "label":"Entretien effectué", + "required":false, + "nb_cols":6, + "id":"da_pr_entretien_20_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_entretien_20_1_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"da_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"da_commentaires_21_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlDispositifsAnnexesForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "da_chasse_acces", + "da_chasse_auto", + "da_chasse_pr_nat_eau", + "da_chasse_ok", + "da_chasse_dysfonctionnement", + "da_chasse_degradation", + "da_chasse_entretien", + "da_pr_loc_pompe", + "da_pr_acces", + "da_pr_nb_pompe", + "da_pr_nat_eau", + "da_pr_ok", + "da_pr_clapet", + "da_pr_etanche", + "da_pr_branchement", + "da_pr_dysfonctionnement", + "da_pr_degradation", + "da_pr_entretien", + "da_commentaires", + "update_button", + "Element_1", + "Element_2", + "da_pr_ventilatio", + "da_pr_alarme" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_acces", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_acces"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_auto", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_auto"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_pr_nat_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_pr_nat_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_ok", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_ok"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_dysfonctionnement", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_dysfonctionnement"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_degradation", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_degradation"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_entretien", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_entretien"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_loc_pompe", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_loc_pompe"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_acces", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_acces"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_nb_pompe", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_nb_pompe"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_nat_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_nat_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_ventilatio", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_ventilatio"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_ok", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_ok"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_alarme", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_alarme"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_clapet", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_clapet"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_etanche", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_etanche"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_branchement", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_branchement"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_dysfonctionnement", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_dysfonctionnement"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_degradation", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_degradation"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_entretien", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_entretien"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_documents.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_documents.json new file mode 100755 index 0000000000000000000000000000000000000000..b1aee28f9483198b71a05f14e268ab412b55ef2e --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_documents.json @@ -0,0 +1,298 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_documents-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"photos_f_1_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche entretien", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fiche_f_2_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"rapport_f", + "label":"Rapport validé", + "nb_cols":12, + "id":"rapport_f_3_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"schema_f_4_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"documents_f_5_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"plan_f_6_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "photos_f", + "fiche_f", + "rapport_f", + "schema_f", + "documents_f", + "plan_f", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_documents-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_documents-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_documents-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"photos_f_1_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche entretien", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fiche_f_2_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"rapport_f", + "label":"Rapport validé", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"rapport_f_3_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"schema_f_4_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"documents_f_5_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"plan_f_6_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "photos_f", + "fiche_f", + "rapport_f", + "schema_f", + "documents_f", + "plan_f", + "update_button" + ] + } + ] + } + }, + "datasources":{ + + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_evacuation.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_evacuation.json new file mode 100755 index 0000000000000000000000000000000000000000..c03a7ab46c2b8a76476524dfd448b16d79010e01 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_evacuation.json @@ -0,0 +1,2366 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_DISPLAY", + "input_size":"xxs", + "initEvent": "initAncControlEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_eva", + "label":"Identifiant de l'evacuation", + "nb_cols":3, + "id":"id_eva_1_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"Installation", + "nb_cols":3, + "id":"num_dossier_43_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Identifiant du contrôle", + "nb_cols":3, + "id":"id_controle_2_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_type", + "label":"Type d'évacuation", + "nb_cols":3, + "id":"evac_type_3_1" + }, + { + "type":"label", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"label", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_lin_total", + "label":"Total", + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"label", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"label", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1" + }, + { + "type":"label", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1" + }, + { + "type":"label", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1" + }, + { + "type":"label", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1" + }, + { + "type":"label", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis??", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1" + }, + { + "type":"label", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1" + }, + { + "type":"label", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente?", + "nb_cols":4, + "id":"evac_is_inf_perm_17_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"label", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1" + }, + { + "type":"label", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1" + }, + { + "type":"label", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1" + }, + { + "type":"label", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_rp_type_eff_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "nb_cols":4, + "id":"evac_hs_type_25_1" + }, + { + "type":"label", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1" + }, + { + "type":"label", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1" + }, + { + "type":"label", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_hs_type_eff_29_1" + }, + { + "type":"label", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Suivi", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_anc_eva", + "id_anc_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "num_dossier", + "display_button", + "Element_2", + "id_installation", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_INSERT", + "input_size":"xxs", + "initEvent": "initAncControlEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_42_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_42_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant du contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_type", + "label":"Type d'évacuation", + "required":true, + "nb_cols":4, + "id":"evac_type_3_1", + "id_from":"evac_type_3_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"number", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_is_lin_total", + "label":"Total", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"number", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"number", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39330" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39331" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39341" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39342" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39352" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39353" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39360" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39361" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis?", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39376" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39377" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39393" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente", + "required":true, + "nb_cols":4, + "id":"evac_is_inf_perm_17_1", + "id_from":"evac_is_inf_perm_17_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"radio", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39411" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39412" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39423" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39424" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39434" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39435" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1", + "id_from":"evac_rp_tamp_22_1_from", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39434" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39435" + } + ] + } + }, + { + "type":"select", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_eff_23_1", + "id_from":"evac_rp_type_eff_23_1_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39453" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39454" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_25_1", + "id_from":"evac_hs_type_25_1_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "required":false, + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1", + "id_from":"evac_hs_gestionnaire_26_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39476" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39477" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39487" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39488" + } + ] + } + }, + { + "type":"select", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_eff_29_1", + "id_from":"evac_hs_type_eff_29_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39495" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39496" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"evac_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"evac_commentaires_32_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent": "closeModalSectionForm(true)", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "id_installation", + "insert_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_UPDATE", + "input_size":"xxs", + "initEvent": "initAncControlEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_eva", + "label":"Identifiant de l'evacuation", + "nb_cols":12, + "id":"id_eva_1_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"Element_3_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_3_2_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant du contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_type", + "label":"Type d'évacuation", + "required":true, + "nb_cols":4, + "id":"evac_type_3_1", + "id_from":"evac_type_3_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"number", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_is_lin_total", + "label":"Total", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"number", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"number", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35271" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35272" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35282" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35283" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35293" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35294" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35305" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35306" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35316" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35317" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis?", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35328" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35329" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35352" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35353" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente", + "required":true, + "nb_cols":4, + "id":"evac_is_inf_perm_17_1", + "id_from":"evac_is_inf_perm_17_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"radio", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35379" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35380" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35393" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1", + "id_from":"evac_rp_tamp_22_1_from", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39434" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39435" + } + ] + } + }, + { + "type":"select", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_eff_23_1", + "id_from":"evac_rp_type_eff_23_1_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35419" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35420" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_25_1", + "id_from":"evac_hs_type_25_1_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "required":false, + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1", + "id_from":"evac_hs_gestionnaire_26_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35438" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35439" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39487" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39488" + } + ] + } + }, + { + "type":"select", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_eff_29_1", + "id_from":"evac_hs_type_eff_29_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39495" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39496" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"evac_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"evac_commentaires_32_1", + "size":5 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Suivi", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm(true)" + } + ] + } + ] + }, + { + "fields":[ + + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_eva", + "id_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "id_installation", + "num_dossier", + "update_button", + "id_installation", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_type", + "description":"", + "parameters":{ + "database":"", + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_is_nb", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_is_nb"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_type_eff", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_type_eff"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_gestionnaire", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_gestionnaire"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_type_eff", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_type_eff"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_tamp", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_tamp"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_is_inf_perm", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_is_inf_perm"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_is_type_effl", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_is_type_effl"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + } + } +} diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_filieres.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_filieres.json new file mode 100755 index 0000000000000000000000000000000000000000..5bedb462015628af261c2acdbe9d16f415ae014d --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_filieres.json @@ -0,0 +1,5322 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_filieres_agree-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_fag", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_fag_1_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"Installation", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"num_dossier_89_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Contrôle", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_controle_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_type", + "label":"Type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_type_3_1" + }, + { + "type":"label", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1" + }, + { + "type":"label", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_denom", + "label":"Dénomination de la filière", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1" + }, + { + "type":"label", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"label", + "name":"fag_cap_eh", + "label":"Capacité EH", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"label", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"label", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"label", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_guide_15_1" + }, + { + "type":"label", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_livret_16_1" + }, + { + "type":"label", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_contr_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1" + }, + { + "type":"label", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_plan_20_1" + }, + { + "type":"label", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1" + }, + { + "type":"label", + "name":"fag_rep", + "label":"Dalle de répartition?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1" + }, + { + "type":"label", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1" + }, + { + "type":"label", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1" + }, + { + "type":"label", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1" + }, + { + "type":"label", + "name":"fag_pres_alar", + "label":"Présence d'un regard de collecte permettant les prelevements", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1" + }, + { + "type":"label", + "name":"fag_pres_reg", + "label":"Présence d'une alarme visuelle?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1" + }, + { + "type":"label", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1" + }, + { + "type":"label", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1" + }, + { + "type":"label", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"label", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reac_bull_37_1" + }, + { + "type":"label", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_dec_39_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_broy_38_1" + }, + { + "type":"label", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fag_type_eau_40_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"label", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1" + }, + { + "type":"label", + "name":"fag_reg_affl", + "label":"Affleure t-il au niveau du sol", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1" + }, + { + "type":"label", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1" + }, + { + "type":"label", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1" + }, + { + "type":"label", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"label", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1" + }, + { + "type":"label", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1" + }, + { + "type":"label", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"label", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"label", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1" + }, + { + "type":"label", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Contrôle de l'état", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1" + }, + { + "type":"label", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1" + }, + { + "type":"label", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1" + }, + { + "type":"label", + "name":"fag_acces", + "label":"Accessibilité", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1" + }, + { + "type":"label", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1" + }, + { + "type":"label", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"label", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1" + }, + { + "type":"label", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"label", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1" + }, + { + "type":"label", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1" + }, + { + "type":"label", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_32_4", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1" + }, + { + "type":"label", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1" + }, + { + "type":"label", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_9", + "label":"Suivi", + "nb_cols":12, + "id":"Element_9_40_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_81_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_82_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_79_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_80_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm()" + } + ] + } + ] + } + ], + "initEvent": "initAncControlFilieresAgreeesForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_fag", + "id_controle", + "fag_type", + "fag_integerer", + "fag_agree", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_dist", + "fag_surpr_elec", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "maj", + "maj_date", + "create", + "create_date", + "num_dossier", + "display_button", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_6", + "Element_7", + "Element_8", + "Element_9", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_filieres_agree-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_filieres_agree-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":6, + "id":"id_installation_88_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_88_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":6, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_type", + "label":"Type", + "required":true, + "nb_cols":4, + "id":"fag_type_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_3_1_from" + }, + { + "type":"select", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_integerer_5_1_from" + }, + { + "type":"select", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_agree_4_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_denom", + "label":"Dénomination de la filière", + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1", + "datasource":{ + "datasource_id":"datasource_63", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_denom_7_1_from" + }, + { + "type":"select", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1", + "datasource":{ + "datasource_id":"datasource_62", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"fag_fab_8_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"text", + "name":"fag_cap_eh", + "label":"Capacité EH", + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"number", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"number", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"select", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1", + "datasource":{ + "datasource_id":"datasource_61", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_cuv_14_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "required":false, + "nb_cols":6, + "id":"fag_guide_15_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_guide_15_1_from" + }, + { + "type":"select", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "required":false, + "nb_cols":6, + "id":"fag_livret_16_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_livret_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "required":false, + "nb_cols":6, + "id":"fag_contr_17_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_contr_17_1_from" + }, + { + "type":"text", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_19_1_from" + }, + { + "type":"select", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "nb_cols":4, + "id":"fag_plan_20_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_plan_20_1_from" + }, + { + "type":"select", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_tamp_21_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ancrage_22_1_from" + }, + { + "type":"select", + "name":"fag_rep", + "label":"Dalle de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_rep_23_1_from" + }, + { + "type":"select", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_respect_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ventil_25_1_from" + }, + { + "type":"select", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1", + "datasource":{ + "datasource_id":"datasource_55", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_typ_26_1_from" + }, + { + "type":"select", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_filt_27_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mise_eau_28_1_from" + }, + { + "type":"select", + "name":"fag_pres_reg", + "label":"Présence d'un regard de collecte permettant les prelevements", + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_reg_30_1_from" + }, + { + "type":"select", + "name":"fag_pres_alar", + "label":"Présence d'une alarme visuelle?", + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_alar_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_att_conf_31_1_from" + }, + { + "type":"select", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_32_1_from" + }, + { + "type":"text", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_elec_35_1_from" + }, + { + "type":"text", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"select", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_aer_36_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "required":false, + "nb_cols":6, + "id":"fag_reac_bull_37_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reac_bull_37_1_from" + }, + { + "type":"select", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "required":false, + "nb_cols":6, + "id":"fag_dec_39_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dec_39_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "required":false, + "nb_cols":6, + "id":"fag_broy_38_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_broy_38_1_from" + }, + { + "type":"select", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "required":false, + "nb_cols":6, + "id":"fag_type_eau_40_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_eau_40_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"select", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_mat_42_1_from" + }, + { + "type":"select", + "name":"fag_reg_affl", + "label":"Affleure t-il au niveau du sol", + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_affl_43_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_hz_44_1_from" + }, + { + "type":"select", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_van_45_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_nb_46_1_from" + }, + { + "type":"select", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1", + "datasource":{ + "datasource_id":"datasource_35", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_long_47_1_from" + }, + { + "type":"select", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1", + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_larg_48_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"select", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1", + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_sep_50_1_from" + }, + { + "type":"select", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_pla_51_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_drain_52_1_from" + }, + { + "type":"select", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_resp_53_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"select", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "datasource":{ + "datasource_id":"datasource_42", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"text", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1", + "datasource":{ + "datasource_id":"datasource_43", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_drain_57_1_from" + }, + { + "type":"select", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1", + "datasource":{ + "datasource_id":"datasource_44", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_resp_58_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Controle de l'etat", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1", + "datasource":{ + "datasource_id":"datasource_45", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_qual_59_1_from" + }, + { + "type":"select", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1", + "datasource":{ + "datasource_id":"datasource_46", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_epa_60_1_from" + }, + { + "type":"select", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1", + "datasource":{ + "datasource_id":"datasource_47", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_veg_61_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1", + "datasource":{ + "datasource_id":"datasource_48", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_pro_62_1_from" + }, + { + "type":"select", + "name":"fag_acces", + "label":"Accessibilité", + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1", + "datasource":{ + "datasource_id":"datasource_49", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_acces_63_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1", + "datasource":{ + "datasource_id":"datasource_50", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_deg_64_1_from" + }, + { + "type":"select", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1", + "datasource":{ + "datasource_id":"datasource_51", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_od_65_1_from" + }, + { + "type":"select", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1", + "datasource":{ + "datasource_id":"datasource_52", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_dy_66_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"select", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1", + "datasource":{ + "datasource_id":"datasource_53", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_jus_68_1_from" + }, + { + "type":"select", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1", + "id_from":"fag_en_entr_69_1_from", + "datasource":{ + "datasource_id":"datasource_64", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + } + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"select", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1", + "datasource":{ + "datasource_id":"datasource_56", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_dest_71_1_from" + }, + { + "type":"number", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1", + "datasource":{ + "datasource_id":"datasource_54", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_contr_73_1_from" + }, + { + "type":"text", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_37_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1", + "datasource":{ + "datasource_id":"datasource_57", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_arb_75_1_from" + }, + { + "type":"select", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1", + "datasource":{ + "datasource_id":"datasource_58", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_parc_76_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1", + "datasource":{ + "datasource_id":"datasource_59", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_hab_77_1_from" + }, + { + "type":"select", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1", + "datasource":{ + "datasource_id":"datasource_60", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_cap_78_1_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + } + ] + } + ] + } + ], + "initEvent": "initAncControlFilieresAgreeesForm()", + "event":"sendSimpleForm()", + "afterEvent": "closeModalSectionForm(true)", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "fag_type", + "fag_integerer", + "fag_agree", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_dist", + "fag_surpr_elec", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "id_installation", + "insert_button", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_6", + "Element_7", + "Element_8", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_filieres_agree-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_fag", + "label":"ID", + "nb_cols":4, + "id":"Element_11_1_1" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_88_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_88_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_type", + "label":"Type", + "required":true, + "nb_cols":4, + "id":"fag_type_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_3_1_from" + }, + { + "type":"select", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_integerer_5_1_from" + }, + { + "type":"select", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_agree_4_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_denom", + "label":"Dénomination de la filière", + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1", + "datasource":{ + "datasource_id":"datasource_63", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_denom_7_1_from" + }, + { + "type":"select", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1", + "datasource":{ + "datasource_id":"datasource_62", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"fag_fab_8_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"text", + "name":"fag_cap_eh", + "label":"Capacité EH", + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"number", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"number", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"select", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1", + "datasource":{ + "datasource_id":"datasource_61", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_cuv_14_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "required":false, + "nb_cols":6, + "id":"fag_guide_15_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_guide_15_1_from" + }, + { + "type":"select", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "required":false, + "nb_cols":6, + "id":"fag_livret_16_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_livret_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "required":false, + "nb_cols":6, + "id":"fag_contr_17_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_contr_17_1_from" + }, + { + "type":"text", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_19_1_from" + }, + { + "type":"select", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "nb_cols":4, + "id":"fag_plan_20_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_plan_20_1_from" + }, + { + "type":"select", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_tamp_21_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ancrage_22_1_from" + }, + { + "type":"select", + "name":"fag_rep", + "label":"Dalle de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_rep_23_1_from" + }, + { + "type":"select", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_respect_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ventil_25_1_from" + }, + { + "type":"select", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1", + "datasource":{ + "datasource_id":"datasource_55", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_typ_26_1_from" + }, + { + "type":"select", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_filt_27_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mise_eau_28_1_from" + }, + { + "type":"select", + "name":"fag_pres_reg", + "label":"Présence d'un regard de collecte permettant les prelevements", + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_reg_30_1_from" + }, + { + "type":"select", + "name":"fag_pres_alar", + "label":"Présence d'une alarme visuelle?", + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_alar_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_att_conf_31_1_from" + }, + { + "type":"select", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_32_1_from" + }, + { + "type":"text", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_elec_35_1_from" + }, + { + "type":"text", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"select", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_aer_36_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "required":false, + "nb_cols":6, + "id":"fag_reac_bull_37_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reac_bull_37_1_from" + }, + { + "type":"select", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "required":false, + "nb_cols":6, + "id":"fag_dec_39_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dec_39_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "required":false, + "nb_cols":6, + "id":"fag_broy_38_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_broy_38_1_from" + }, + { + "type":"select", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "required":false, + "nb_cols":6, + "id":"fag_type_eau_40_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_eau_40_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"select", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_mat_42_1_from" + }, + { + "type":"select", + "name":"fag_reg_affl", + "label":"Affleure t-il au niveau du sol", + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_affl_43_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_hz_44_1_from" + }, + { + "type":"select", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_van_45_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_nb_46_1_from" + }, + { + "type":"select", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1", + "datasource":{ + "datasource_id":"datasource_35", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_long_47_1_from" + }, + { + "type":"select", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1", + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_larg_48_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"select", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1", + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_sep_50_1_from" + }, + { + "type":"select", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_pla_51_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_drain_52_1_from" + }, + { + "type":"select", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_resp_53_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"select", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "datasource":{ + "datasource_id":"datasource_42", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"text", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1", + "datasource":{ + "datasource_id":"datasource_43", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_drain_57_1_from" + }, + { + "type":"select", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1", + "datasource":{ + "datasource_id":"datasource_44", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_resp_58_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Controle de l'etat", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1", + "datasource":{ + "datasource_id":"datasource_45", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_qual_59_1_from" + }, + { + "type":"select", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1", + "datasource":{ + "datasource_id":"datasource_46", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_epa_60_1_from" + }, + { + "type":"select", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1", + "datasource":{ + "datasource_id":"datasource_47", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_veg_61_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1", + "datasource":{ + "datasource_id":"datasource_48", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_pro_62_1_from" + }, + { + "type":"select", + "name":"fag_acces", + "label":"Accessibilité", + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1", + "datasource":{ + "datasource_id":"datasource_49", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_acces_63_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1", + "datasource":{ + "datasource_id":"datasource_50", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1", + "datasource":{ + "datasource_id":"datasource_51", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1", + "datasource":{ + "datasource_id":"datasource_52", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"select", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1", + "datasource":{ + "datasource_id":"datasource_53", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1", + "id_from":"fag_en_entr_69_1_from", + "datasource":{ + "datasource_id":"datasource_64", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + } + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"select", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1", + "datasource":{ + "datasource_id":"datasource_56", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_dest_71_1_from" + }, + { + "type":"number", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1", + "datasource":{ + "datasource_id":"datasource_54", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"text", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_37_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1", + "datasource":{ + "datasource_id":"datasource_57", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_arb_75_1_from" + }, + { + "type":"select", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1", + "datasource":{ + "datasource_id":"datasource_58", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_parc_76_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1", + "datasource":{ + "datasource_id":"datasource_59", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_hab_77_1_from" + }, + { + "type":"select", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1", + "datasource":{ + "datasource_id":"datasource_60", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_cap_78_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_9", + "label":"Suivi", + "nb_cols":12, + "id":"Element_9_40_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_81_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_82_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_79_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_80_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"plan_f_87_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm(true)" + } + ] + } + ] + } + ], + "initEvent": "initAncControlFilieresAgreeesForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_installation", + "id_controle", + "fag_type", + "fag_agree", + "fag_integerer", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_elec", + "fag_surpr_dist", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "Element_1", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "Element_2", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "Element_3", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "Element_4", + "Element_5", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "Element_6", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "Element_7", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "Element_8", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "Element_9", + "create", + "create_date", + "maj", + "maj_date", + "update_button", + "id_fag", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_agree", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_agree"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_integerer", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_integerer"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type_fil", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type_fil"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_guide", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_guide"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_livret", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_livret"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_contr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_contr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_plan", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_plan"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_tamp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_tamp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_ancrage", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_ancrage"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_rep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_rep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_respect", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_respect"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_ventil", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_ventil"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mil_filt", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mil_filt"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mise_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mise_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_reg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_reg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_alar", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_alar"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_att_conf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_att_conf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_elec", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_elec"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_dist", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_dist"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_aer", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_aer"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reac_bull", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reac_bull"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + }, + "datasource_27":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_broy", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_broy"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_27" + }, + "datasource_28":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dec", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dec"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_28" + }, + "datasource_29":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_29" + }, + "datasource_30":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_30" + }, + "datasource_31":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_31" + }, + "datasource_32":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_32" + }, + "datasource_33":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_van", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_van"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_33" + }, + "datasource_34":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_nb", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_nb"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_34" + }, + "datasource_35":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_long", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_long"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_35" + }, + "datasource_36":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_larg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_larg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_36" + }, + "datasource_37":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_sep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_sep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_37" + }, + "datasource_38":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_pla", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_pla"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_38" + }, + "datasource_39":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_drain", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_drain"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_39" + }, + "datasource_40":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_resp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_resp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_40" + }, + "datasource_41":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_long", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_long"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_41" + }, + "datasource_42":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_larg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_larg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_42" + }, + "datasource_43":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_drain", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_drain"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_43" + }, + "datasource_44":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_resp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_resp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_44" + }, + "datasource_45":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_45" + }, + "datasource_46":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_epa", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_epa"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_46" + }, + "datasource_47":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_veg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_veg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_47" + }, + "datasource_48":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_pro", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_pro"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_48" + }, + "datasource_49":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_acces", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_acces"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_49" + }, + "datasource_50":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_deg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_deg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_50" + }, + "datasource_51":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_od", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_od"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_51" + }, + "datasource_52":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_dy", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_dy"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_52" + }, + "datasource_53":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_jus", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_jus"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_53" + }, + "datasource_54":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_contr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_contr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_54" + }, + "datasource_55":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mil_typ", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mil_typ"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_55" + }, + "datasource_56":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_dest", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_dest"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_56" + }, + "datasource_57":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_arb", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_arb"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_57" + }, + "datasource_58":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_parc", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_parc"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_58" + }, + "datasource_59":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_hab", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_hab"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_59" + }, + "datasource_60":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_cap", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_cap"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_60" + }, + "datasource_61":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_cuv", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_cuv"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_61" + }, + "datasource_62":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fab", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_entreprise", + "filter": {"constructeur": true} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_63":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_denom", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_denom"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_63" + }, + "datasource_64":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_entr", + "description":"", + "parameters":{ + "filter":{"vidangeur": true}, + "schema":"s_anc", + "table":"param_entreprise" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_64" + } + } +} diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_pretraitement.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_pretraitement.json new file mode 100755 index 0000000000000000000000000000000000000000..03ba819a5431181674a479bb24963261a2660136 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_pretraitement.json @@ -0,0 +1,2182 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_pretraitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_pretraitement", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"id_pretraitement_1_1" + }, + { + "type":"label", + "name":"id_installation", + "label":"Installation", + "disabled":false, + "nb_cols":3, + "id":"id_installation_2_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Contrôle", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"id_controle_2_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"N° dossier", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"num_dossier_43_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Description", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_type", + "label":"Type de prétraitement", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_type_3_1" + }, + { + "type":"label", + "name":"ptr_volume", + "label":"Volume (en litres)", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1" + }, + { + "type":"label", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1" + }, + { + "type":"label", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1" + }, + { + "type":"label", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1" + }, + { + "type":"label", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1" + }, + { + "type":"label", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1" + }, + { + "type":"label", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1" + }, + { + "type":"label", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1" + }, + { + "type":"label", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1" + }, + { + "type":"label", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Entretien", + "nb_cols":12, + "id":"Element_2_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1" + }, + { + "type":"label", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Vidange", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"label", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1" + }, + { + "type":"label", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"label", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1" + }, + { + "type":"label", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_commentaire_17_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Suivi", + "nb_cols":12, + "id":"Element_4_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm()" + } + ] + } + ] + } + ], + "initEvent": "initAncControlPretraitementForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_pretraitement", + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "maj", + "maj_date", + "create", + "create_date", + "id_installation", + "display_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "id_installation", + "ptr_type_eau", + "ptr_adapte", + "ptr_im_puit", + "ptr_pose", + "ptr_conforme_projet", + "ptr_renforce", + "ptr_verif_mise_en_eau", + "ptr_im_dalle", + "ptr_im_fixation" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_pretraitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_pretraitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":6, + "id":"num_dossier_43_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"num_dossier_43_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":6, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Description", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_type", + "label":"Type de prétraitement", + "required":true, + "nb_cols":3, + "id":"ptr_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_3_1_from" + }, + { + "type":"editable_select", + "name":"ptr_volume", + "label":"Volume (en litres)", + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_volume_4_1_from" + }, + { + "type":"select", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_marque_5_1_from" + }, + { + "type":"select", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_materiau_6_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_pose_7_1_from" + }, + { + "type":"select", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_adapte_8_1_from" + }, + { + "type":"select", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé", + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_conforme_projet_9_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_renforce_11_1_from" + }, + { + "type":"select", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_verif_mise_en_eau_12_1_from" + }, + { + "type":"select", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_eau_13_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_distance_18_1_from" + }, + { + "type":"select", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_hydrom_19_1_from" + }, + { + "type":"select", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_dalle_20_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_fixation_23_1_from" + }, + { + "type":"select", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_puit_22_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_acces_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Entretien", + "nb_cols":12, + "id":"Element_2_17_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_degrad_25_1_from" + }, + { + "type":"select", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_real_26_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Vidange", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"select", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_justi_28_1_from" + }, + { + "type":"select", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + }, + "id_from":"ptr_vi_entr_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"select", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_dest_31_1_from" + }, + { + "type":"integer", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"ptr_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + } + ] + } + ] + } + ], + "initEvent": "initAncControlPretraitementForm()", + "event":"sendSimpleForm()", + "afterEvent": "closeModalSectionForm(true)", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "id_installation", + "insert_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "ptr_type_eau", + "ptr_adapte", + "ptr_im_puit", + "ptr_pose", + "ptr_conforme_projet", + "ptr_renforce", + "ptr_verif_mise_en_eau", + "ptr_im_dalle", + "ptr_im_fixation" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_pretraitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_pretraitement", + "label":"ID", + "nb_cols":4, + "id":"id_pretraitement_1_1" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_42_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_42_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Description", + "nb_cols":12, + "id":"Element_4_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_type", + "label":"Type de prétraitement", + "required":true, + "nb_cols":3, + "id":"ptr_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_3_1_from" + }, + { + "type":"editable_select", + "name":"ptr_volume", + "label":"Volume (en litres)", + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_volume_4_1_from" + }, + { + "type":"select", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_marque_5_1_from" + }, + { + "type":"select", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_materiau_6_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_pose_7_1_from" + }, + { + "type":"select", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_adapte_8_1_from" + }, + { + "type":"select", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé", + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_conforme_projet_9_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_renforce_11_1_from" + }, + { + "type":"select", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_verif_mise_en_eau_12_1_from" + }, + { + "type":"select", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_eau_13_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Implantation", + "nb_cols":12, + "id":"Element_5_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_distance_18_1_from" + }, + { + "type":"select", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_hydrom_19_1_from" + }, + { + "type":"select", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_dalle_20_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_fixation_23_1_from" + }, + { + "type":"select", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_puit_22_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_acces_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Entretien", + "nb_cols":12, + "id":"Element_6_13_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_degrad_25_1_from" + }, + { + "type":"select", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_real_26_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Vidange", + "nb_cols":12, + "id":"Element_0_15_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"select", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_justi_28_1_from" + }, + { + "type":"select", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + }, + "id_from":"ptr_vi_entr_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"select", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_dest_31_1_from" + }, + { + "type":"integer", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"ptr_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Suivi", + "nb_cols":12, + "id":"Element_1_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm(true)" + } + ] + } + ] + } + ], + "initEvent": "initAncControlPretraitementForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_pretraitement", + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "maj", + "maj_date", + "create", + "create_date", + "id_installation", + "update_button", + "Element_4", + "Element_5", + "Element_6", + "Element_0", + "Element_1", + "Element_2", + "ptr_type_eau", + "ptr_adapte", + "ptr_im_puit", + "ptr_pose", + "ptr_adapte", + "ptr_conforme_projet", + "ptr_renforce", + "ptr_verif_mise_en_eau", + "ptr_im_dalle", + "ptr_im_fixation" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_volume", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_volume"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_materiau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_materiau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_pose", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_pose"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_adapte", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_adapte"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_conforme_projet", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_conforme_projet"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_dalle_repartition", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_dalle_repartition"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_renforce", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_renforce"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_verif_mise_en_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_verif_mise_en_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_type_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_type_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_reglementaire", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_reglementaire"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_distance", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_distance"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_hydrom", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_hydrom"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_dalle", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_dalle"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_renfor", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_renfor"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_puit", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_puit"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_fixation", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_fixation"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_acces", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_acces"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_et_degrad", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_et_degrad"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_et_real", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_et_real"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_justi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_vi_justi"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_entr", + "description":"", + "parameters":{ + "filter":{"vidangeur": true}, + "schema":"s_anc", + "table":"param_entreprise" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_justi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_vi_dest"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_marque", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_marque"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + } + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_rapport.js b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_rapport.js new file mode 100755 index 0000000000000000000000000000000000000000..3b66a04d1f5b8996a3fa96db090cd9c3c10b19a8 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_rapport.js @@ -0,0 +1,149 @@ + +var $q = angular.element(vitisApp.appMainDrtv).injector().get(['$q']); +var $log = angular.element(vitisApp.appMainDrtv).injector().get(['$log']); +var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(['envSrvc']); +var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(['propertiesSrvc']); + +/** + * constructor_form + * Function called by form init only if javascript boolean is Equal true + * @param {type} scope Scope who contain the formreader + * @param {type} s_url URL of file for destructor + * @returns {undefined} + */ +var constructor_form = function (scope, s_url) { + console.log("Constructor Rapports"); + + var sBoId; + console.log("propertiesSrvc: ", propertiesSrvc); + if (angular.isDefined(propertiesSrvc)) { + if (angular.isDefined(propertiesSrvc['anc'])) { + if (angular.isDefined(propertiesSrvc['anc']['controle'])) { + if (angular.isDefined(propertiesSrvc['anc']['controle']['business_object_id'])) { + sBoId = propertiesSrvc['anc']['controle']['business_object_id']; + } + } + } + } + + getReportsArray(sBoId).then(function(aPrintReports){ + console.log("aPrintReports: ", aPrintReports); + + if (typeof aPrintReports !== 'object') { + aPrintReports = []; + } + + var sHTMLList = getReportsListAsHTML(aPrintReports); + $('#anc_saisie_controle_rapports_list_container').parent().html(sHTMLList); + }); +}; + +/** + * destructor_form + * Function called before constructor_form of a new form to remove all the watchers, variables, and others objects useless for others forms + * @returns {undefined} + */ +var destructor_form = function () { + console.log("Destructor Rapports"); +}; + +/** + * Download the BO reports list + * @param {string} business_object_id + * @return {promise} + */ +var getReportsArray = function(sBoId) { + $log.info('getReportsArray'); + + var deferred = $q.defer(); + + if (!angular.isDefined(sBoId) || sBoId == '') { + console.error('Objet métier non configuré'); + deferred.resolve([]); + } else { + + // Récupère la liste des rapports disponibles + ajaxRequest({ + 'method': 'GET', + 'url': propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + '/vmap/printreports', + 'headers': { + 'Accept': 'application/x-vm-json' + }, + 'params': { + 'attributs': 'name|printreport_id|business_object_id|business_object_id_field|multiobject', + 'filter': { + "column": "business_object_id", + "compare_operator": "=", + "value": sBoId + } + }, + 'success': function (response) { + if (!angular.isDefined(response['data'])) { + console.error('response.data undefined: ', response); + deferred.resolve([]); + return 0; + } + if (!angular.isDefined(response['data']['data'])) { + console.error('Aucun rapport disponible pour ' + sBoId); + deferred.resolve([]); + return 0; + } + var avaliablePrintReports = response['data']['data']; + deferred.resolve(avaliablePrintReports); + } + }); + } + + return deferred.promise; +} + +/** + * Retourne une liste HTML contenant les rapports + * @param {array} aPrintReports liste des rapports + * @return {dom} Liste au format HTML + */ +var getReportsListAsHTML = function(aPrintReports) { + + if (!aPrintReports.length > 0) { + return 'Aucun rapport disponible'; + } + + var domLi; + var sHTMLLi; + var domUl = $(document.createElement('ul')).addClass('anc_saisie_controle_rapports_list'); + for (var i = 0; i < aPrintReports.length; i++) { + + sHTMLLi = '<li>'; + sHTMLLi += '<a href="javascript:void(0)" class="padding-sides-10">'; + sHTMLLi += '<span class="glyphicon glyphicon-download-alt margin-sides-5"></span>'; + sHTMLLi += aPrintReports[i]['name']; + sHTMLLi += '<span class="margin-sides-5 icon-files-o"></span>'; + sHTMLLi += '</a>'; + sHTMLLi += '</li>'; + domLi = $(sHTMLLi); + + $(domLi).click(angular.bind(this, generateReport, aPrintReports[i])); + $(domUl).append($(domLi)); + } + + return domUl; +} + +/** + * Génère le rapport vMap correspondant + * + * @param {object} oPrintReport Définition du rapport + */ +var generateReport = function(oPrintReport) { + + if (angular.isDefined(oVmap.generatePrintReport)) { + oVmap.generatePrintReport({ + 'printReportId': oPrintReport['printreport_id'], + 'ids': [envSrvc['sId']] + }); + } else { + var sMessage = 'Module vMap requis pour effectuer cette opération'; + console.error(sMessage); + $.notify(sMessage, 'error'); + } +} diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_rapport.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_rapport.json new file mode 100755 index 0000000000000000000000000000000000000000..c8a5758c3e64da694c2019ad12a307e74a5e4f7d --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_rapport.json @@ -0,0 +1,73 @@ +{ + "display": { + "name": "anc_saisie_anc_controle_controle_schema-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "display_button", + "id": "display_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ] + }, + "search": { + "name": "anc_saisie_anc_controle_controle_schema-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + + ] + }, + "insert": { + "name": "anc_saisie_anc_controle_controle_schema-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + + ], + "event": "sendSimpleForm()" + }, + "update": { + "name": "anc_saisie_anc_controle_controle_rapport-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_RAPPORT_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": true, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "raports", + "label": "Rapports", + "id": "anc_saisie_controle_rapports_list_container", + "nb_cols": 12 + } + ] + } + ], + "event": "sendSimpleForm()" + } +} diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_schema.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_schema.json new file mode 100755 index 0000000000000000000000000000000000000000..45642a3929dd6073831ede459b1149145b68e4d4 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_schema.json @@ -0,0 +1,313 @@ +{ + "display": { + "name": "anc_saisie_anc_controle_controle_schema-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "display_button", + "id": "display_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ] + }, + "search": { + "name": "anc_saisie_anc_controle_controle_schema-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + + ] + }, + "insert": { + "name": "anc_saisie_anc_controle_controle_schema-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + + ], + "event": "sendSimpleForm()" + }, + "update": { + "name": "anc_saisie_anc_controle_controle_schema-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "map_workbench", + "name": "composants", + "label": "", + "required": false, + "nb_cols": 12, + "id":"anc_saisie_anc_controle_schema_map", + "style": { + "height": "350px" + }, + "grid_height": "150px", + "map_options": { + "proj": "EPSG:2154", + "base_proj": "EPSG:4326", + "output_format": "geojson", + "type": "OSM", + "center": { + "extent": [ + -1309672.0426382099, + 5253975.576209875, + 1517886.5076870301, + 6476968.028772695 + ], + "coord": [ + 104107.23252441005, + 5865471.802491285 + ], + "scale": 12720279 + }, + "controls": { + "MP": true, + "ZO": true, + "SL": true, + "CP": true + }, + "layers": [], + "interactions": { + "multi_geometry": true, + "full_screen": false, + "layer_tree": false, + "remove_all": false, + "remove": true, + "modify": true, + "point": true, + "line": true, + "polygon": true, + "select": true + }, + "coord_accuracy": 8 + }, + "attributes_def": [{ + "label": "Type", + "name": "composant_type" + }, + { + "label": "Nom", + "name": "label" + }, + { + "label": "Observations", + "name": "observations" + }], + "custom_form": { + "form": { + "display": { + "name": "custom-form", + "title": "1", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "search": { + "name": "custom-form", + "title": "1", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "insert": { + "name": "custom-form", + "title": "1", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "custom-subform", + "title": "1", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "select", + "name": "composant_type", + "label": "Type", + "required": false, + "nb_cols": 12, + "id": "Element_0_1_1", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "composant_type", + "order_by": "composant_type", + "id_key": "composant_type", + "attributs": "composant_type|composant_type" + }, + "id_from": "Element_0_1_1_from" + } + ] + }, + { + "fields": [ + { + "type": "text", + "label": "Nom", + "name": "label", + "required": false, + "nb_cols": 12 + } + ] + }, + { + "fields": [ + { + "type": "slider", + "name": "size", + "label": "Taille", + "nb_cols": 12, + "options": { + "min": 0, + "max": 300, + "precision": 1, + "step": 1 + }, + "default_value": 50 + } + ] + }, + { + "fields": [ + { + "type": "slider", + "name": "rotation", + "label": "Angle", + "nb_cols": 12, + "options": { + "min": 0, + "max": 360, + "precision": 1, + "step": 1 + } + } + ] + }, + { + "fields": [ + { + "type": "text", + "label": "Observations", + "name": "observations", + "required": false, + "nb_cols": 12 + } + ] + } + ] + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "webService", + "name": "datasource_1", + "description": "", + "ressource_id": "anc/ComposantTypeFeatureStyles", + "webservice": { + "name": "anc" + }, + "ressource": { + "name": "ComposantTypeFeatureStyles" + } + } + } + }, + "featureStructure": {} + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_UPDATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControleSchemaFormMap()", + "event": "sendSimpleForm()" + } +} diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_suivi.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_suivi.json new file mode 100755 index 0000000000000000000000000000000000000000..6a641dcf98baf0256965844c2077f1b66fdea31e --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_suivi.json @@ -0,0 +1,272 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_suivi-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_1_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "options":{ + "choices":[ + { + "label":"oui", + "value":true + }, + { + "label":"non", + "value":false + } + ] + }, + "name":"cloturer", + "label":"Dossier cloturer impossible de le modifier sans passer par le responsable", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"cloturer_5_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent" : "initAncControleSuiviForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "maj", + "maj_date", + "create", + "create_date", + "cloturer", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_suivi-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_suivi-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[], + "initEvent" : "initAncControleSuiviForm()", + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0","elements":[ + + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_suivi-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE", + "input_size":"xxs","nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_1_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "options":{ + "choices":[ + { + "label":"oui", + "value":true + }, + { + "label":"non", + "value":false + } + ] + }, + "name":"cloturer", + "label":"Dossier cloturer impossible de le modifier sans passer par le responsable", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"cloturer_5_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent" : "initAncControleSuiviForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "maj", + "maj_date", + "create", + "create_date", + "cloturer", + "update_button" + ] + } + ] + } + } + ,"datasources":{ + + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_toilettes_seches.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_toilettes_seches.json new file mode 100755 index 0000000000000000000000000000000000000000..7ca752478002c79a80d5cfeb7dba3a167af88927 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_toilettes_seches.json @@ -0,0 +1,720 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_toilettes_seches-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"ts_conforme", + "label":"Dispositif conforme au projet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_conforme_1_1" + }, + { + "type":"label", + "name":"ts_type_effluent", + "label":"Type d'effluents", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_type_effluent_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_cuve_etanche", + "label":"La cuve est elle étanche", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_cuve_etanche_9_1" + }, + { + "type":"label", + "name":"ts_capacite_bac", + "label":"Capacité des bacs extérieurs (en m3)", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_capacite_bac_3_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_nb_bac", + "label":"Nombre de bacs", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_nb_bac_4_1" + }, + { + "type":"label", + "name":"ts_coher_taille_util", + "label":"Cohérence taille des composteurs, nombre utilisateurs, types de toilettes", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_coher_taille_util_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_aire_etanche", + "label":"Aire de compostage étanche", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_aire_etanche_6_1" + }, + { + "type":"label", + "name":"ts_aire_abri", + "label":"Aire de compostage à l'abri des intempéries", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_aire_abri_7_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_ventilation", + "label":"Présence d'une ventilation", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_ventilation_8_1" + }, + { + "type":"label", + "name":"ts_val_comp", + "label":"Valorisation du compost sur la parcelle", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_val_comp_10_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_ruissel_ep", + "label":"Phénomène de ruisselement des EP", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_ruissel_ep_11_1" + }, + { + "type":"label", + "name":"ts_absence_nuisance", + "label":"Absence de nuisance pour le voisinage et pollution visible", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_absence_nuisance_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_respect_regles", + "label":"Respect des règles d'épandage", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ts_respect_regles_13_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ts_commentaires", + "label":"Commentaires", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ts_commentaires_14_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlDryToiletsForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "ts_conforme", + "ts_type_effluent", + "ts_capacite_bac", + "ts_nb_bac", + "ts_coher_taille_util", + "ts_aire_etanche", + "ts_aire_abri", + "ts_ventilation", + "ts_cuve_etanche", + "ts_val_comp", + "ts_ruissel_ep", + "ts_absence_nuisance", + "ts_respect_regles", + "ts_commentaires", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_toilettes_seches-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_toilettes_seches-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_toilettes_seches-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"ts_conforme", + "label":"Dispositif conforme au projet", + "required":false, + "nb_cols":6, + "id":"ts_conforme_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"ts_type_effluent", + "label":"Type d'effluents", + "required":false, + "nb_cols":6, + "id":"ts_type_effluent_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_cuve_etanche", + "label":"La cuve est elle étanche", + "required":false, + "nb_cols":6, + "id":"ts_cuve_etanche_9_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"ts_capacite_bac", + "label":"Capacité des bacs extérieurs (en m3)", + "required":false, + "nb_cols":6, + "id":"ts_capacite_bac_3_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_nb_bac", + "label":"Nombre de bacs", + "required":false, + "nb_cols":6, + "id":"ts_nb_bac_4_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"ts_coher_taille_util", + "label":"Cohérence taille des composteurs, nombre utilisateurs, types de toilettes", + "required":false, + "nb_cols":6, + "id":"ts_coher_taille_util_5_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_aire_etanche", + "label":"Aire de compostage étanche", + "required":false, + "nb_cols":6, + "id":"ts_aire_etanche_6_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"ts_aire_abri", + "label":"Aire de compostage à l'abri des intempéries", + "required":false, + "nb_cols":6, + "id":"ts_aire_abri_7_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_ventilation", + "label":"Présence d'une ventilation", + "required":false, + "nb_cols":6, + "id":"ts_ventilation_8_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"ts_val_comp", + "label":"Valorisation du compost sur la parcelle", + "required":false, + "nb_cols":6, + "id":"ts_val_comp_10_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_ruissel_ep", + "label":"Phénomène de ruisselement des EP", + "required":false, + "nb_cols":6, + "id":"ts_ruissel_ep_11_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"ts_absence_nuisance", + "label":"Absence de nuisance pour le voisinage et pollution visible", + "required":false, + "nb_cols":6, + "id":"ts_absence_nuisance_12_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_respect_regles", + "label":"Respect des règles d'épandage", + "required":false, + "nb_cols":12, + "id":"ts_respect_regles_13_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ts_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"ts_commentaires_14_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlDryToiletsForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "ts_conforme", + "ts_type_effluent", + "ts_capacite_bac", + "ts_nb_bac", + "ts_coher_taille_util", + "ts_aire_etanche", + "ts_aire_abri", + "ts_ventilation", + "ts_cuve_etanche", + "ts_val_comp", + "ts_ruissel_ep", + "ts_absence_nuisance", + "ts_respect_regles", + "ts_commentaires", + "update_button" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_conforme", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "ts_conforme"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_type_effluent", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "ts_type_effluent"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_cuve_etanche", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "ts_cuve_etanche"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_capacite_bac", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "ts_capacite_bac"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_nb_bac", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_nb_bac"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_coher_taille_util", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_coher_taille_util"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_aire_etanche", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_aire_etanche"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_aire_abri", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_aire_abri"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_ventilation", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_ventilation"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_val_comp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_val_comp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_ruissel_ep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_ruissel_ep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_absence_nuisance", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_absence_nuisance"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_respect_regles", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_respect_regles"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_traitement.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_traitement.json new file mode 100755 index 0000000000000000000000000000000000000000..9c06715511f0dc1829fb151d5d609b1d473a7b31 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_traitement.json @@ -0,0 +1,3447 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_traitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_traitement", + "label":"Identifiant", + "nb_cols":4, + "id":"Element_6_1_2" + }, + { + "type":"label", + "name":"id_controle", + "label":"Identifiant de contrôle", + "nb_cols":4, + "id":"Element_0_1_1" + }, + { + "type":"label", + "name":"tra_type", + "label":"Type de traitement", + "nb_cols":4, + "id":"Element_0_1_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_nb", + "label":"Nombre de tranchées", + "nb_cols":4, + "id":"Element_1_3_1" + }, + { + "type":"label", + "name":"tra_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"label", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"label", + "name":"tra_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"label", + "name":"tra_surf", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"label", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"Element_1_5_2" + }, + { + "type":"label", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"label", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "nb_cols":4, + "id":"Element_1_4_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_hauteur", + "label":"Hauteur", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "nb_cols":6, + "id":"Element_2_7_1" + }, + { + "type":"label", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "nb_cols":6, + "id":"Element_2_7_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "nb_cols":6, + "id":"Element_2_8_1" + }, + { + "type":"label", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "nb_cols":6, + "id":"Element_2_8_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1" + }, + { + "type":"label", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2" + }, + { + "type":"label", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_1" + }, + { + "type":"label", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1" + }, + { + "type":"label", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme", + "nb_cols":4, + "id":"Element_3_11_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3" + }, + { + "type":"label", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1" + }, + { + "type":"label", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3" + }, + { + "type":"label", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1" + }, + { + "type":"label", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_4_16_2" + }, + { + "type":"label", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "nb_cols":4, + "id":"Element_4_16_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "nb_cols":4, + "id":"Element_6_19_1" + }, + { + "type":"label", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2" + }, + { + "type":"label", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2" + }, + { + "type":"label", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "nb_cols":4, + "id":"Element_6_22_1" + }, + { + "type":"label", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2" + }, + { + "type":"label", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"tra_commentaire", + "label":"Commentaires", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"tra_commentaire_17_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Suivi", + "nb_cols":12, + "id":"Element_6_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"Element_0_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"Element_0_3_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"Element_0_3_2" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"Element_0_3_3" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm()" + } + ] + } + ] + } + ], + "initEvent": "initAncControlTraitementForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "display_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_bon_mat", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "tra_dist_hab", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_tuy_perf", + "tra_vm_sab_qual", + "tra_vm_sab_ep", + "tra_vm_geomembrane", + "tra_commentaire" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_traitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_traitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_from", + "disabled": true + }, + { + "type":"select", + "name":"tra_type", + "label":"Type de traitement", + "required":true, + "nb_cols":4, + "id":"Element_0_1_2", + "id_from":"Element_0_1_2_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_nb", + "label":"Nombre de tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_3_1", + "id_from":"Element_1_3_1_from", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_long", + "label":"Longueur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"number", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"number", + "name":"tra_larg", + "label":"Largeur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"number", + "name":"tra_surf", + "label":"Surface (en m²)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"number", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_2" + }, + { + "type":"number", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"select", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_4_3", + "id_from":"Element_1_4_3_from", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"tra_hauteur", + "label":"Hauteur", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_1", + "id_from":"Element_2_7_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_2", + "id_from":"Element_2_7_2_from", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_1", + "id_from":"Element_2_8_1_from", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_2", + "id_from":"Element_2_8_2_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_1_from" + }, + { + "type":"select", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_2_from" + }, + { + "type":"select", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_0", + "datasource":{ + "datasource_id":"datasource_41", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_0_from" + }, + { + "type":"select", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_1_from" + }, + { + "type":"select", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme", + "nb_cols":8, + "id":"Element_3_11_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_2_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_3_from" + }, + { + "type":"select", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_1_from" + }, + { + "type":"select", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_3_from" + }, + { + "type":"select", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_16_1_from" + }, + { + "type":"select", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "required":false, + "nb_cols":4, + "id":"Element_4_16_2", + "id_from":"Element_4_16_2_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "required":false, + "nb_cols":4, + "id":"Element_4_16_3", + "id_from":"Element_4_16_3_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "required":false, + "nb_cols":4, + "id":"Element_6_19_1", + "id_from":"Element_6_19_1_from", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_2_from" + }, + { + "type":"select", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_2_from" + }, + { + "type":"select", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_20_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "required":false, + "nb_cols":4, + "id":"Element_6_22_1", + "id_from":"Element_6_22_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_7_22_2_from" + }, + { + "type":"select", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_8_22_3_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"tra_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"tra_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + } + ] + } + ] + } + ], + "initEvent": "initAncControlTraitementForm()", + "event":"sendSimpleForm()", + "afterEvent": "closeModalSectionForm(true)", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "insert_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_bon_mat", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "tra_dist_hab", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_tuy_perf", + "tra_vm_sab_qual", + "tra_vm_sab_ep", + "tra_vm_geomembrane", + "tra_commentaire" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_traitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_traitement", + "label":"ID", + "nb_cols":3, + "id":"Element_6_1_2" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":3, + "id":"Element_6_1_2", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_6_1_2_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant de contrôle", + "nb_cols":3, + "id":"id_controle", + "required":true, + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_from", + "disabled": true + }, + { + "type":"select", + "name":"tra_type", + "label":"Type de traitement", + "required":true, + "nb_cols":3, + "id":"Element_0_1_2", + "id_from":"Element_0_1_2_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_nb", + "label":"Nombre de tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_3_1", + "id_from":"Element_1_3_1_from", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_long", + "label":"Longueur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"number", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"number", + "name":"tra_larg", + "label":"Largeur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"number", + "name":"tra_surf", + "label":"Surface (en m²)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"number", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_2" + }, + { + "type":"number", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"select", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_4_3", + "id_from":"Element_1_4_3_from", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"tra_hauteur", + "label":"Hauteur", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_1", + "id_from":"Element_2_7_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_2", + "id_from":"Element_2_7_2_from", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_1", + "id_from":"Element_2_8_1_from", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_2", + "id_from":"Element_2_8_2_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_1_from" + }, + { + "type":"select", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_2_from" + }, + { + "type":"select", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_0", + "datasource":{ + "datasource_id":"datasource_41", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_0_from" + }, + { + "type":"select", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_1_from" + }, + { + "type":"select", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme", + "nb_cols":8, + "id":"Element_3_11_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_2_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_3_from" + }, + { + "type":"select", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_1_from" + }, + { + "type":"select", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_3_from" + }, + { + "type":"select", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_16_1_from" + }, + { + "type":"select", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "required":false, + "nb_cols":4, + "id":"Element_4_16_2", + "id_from":"Element_4_16_2_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "required":false, + "nb_cols":4, + "id":"Element_4_16_3", + "id_from":"Element_4_16_3_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "required":false, + "nb_cols":4, + "id":"Element_6_19_1", + "id_from":"Element_6_19_1_from", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_2_from" + }, + { + "type":"select", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_2_from" + }, + { + "type":"select", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_20_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "required":false, + "nb_cols":4, + "id":"Element_6_22_1", + "id_from":"Element_6_22_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_7_22_2_from" + }, + { + "type":"select", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_8_22_3_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"tra_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"tra_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Suivi", + "nb_cols":12, + "id":"Element_6_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"Element_0_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"Element_0_3_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"Element_0_3_2" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"Element_0_3_3" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm(true)" + } + ] + } + ] + } + ], + "initEvent": "initAncControlTraitementForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "update_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_bon_mat", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "tra_dist_hab", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_tuy_perf", + "tra_vm_sab_qual", + "tra_vm_sab_ep", + "tra_vm_geomembrane", + "tra_commentaire" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_nb", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_nb"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_hab", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_hab"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_lim_parc", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_lim_parc"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_veget", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_veget"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_puit", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_puit"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_ht_terre_veget", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_ht_terre_veget"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_affl", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_affl"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_equi", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_equi"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_mat", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_mat"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_mat", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_mat"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_racine", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste":"tra_vm_racine"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_humidite", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_humidite"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_imper", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_imper"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geogrille", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geogrille"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_grav_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_grav_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_grav_ep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_grav_ep"}, + "database":"", + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geo_text", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geo_text"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_ht_terre_veget", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_ht_terre_veget"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_tuy_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_tuy_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_bon_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_bon_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_sab_ep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_sab_ep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_sab_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_sab_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + }, + "datasource_27":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_27" + }, + "datasource_28":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_equi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_equi"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_28" + }, + "datasource_29":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_29" + }, + "datasource_30":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_30" + }, + "datasource_31":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_31" + }, + "datasource_32":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_32" + }, + "datasource_33":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_epand", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_epand"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_33" + }, + "datasource_34":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_34" + }, + "datasource_35":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_35" + }, + "datasource_36":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_36" + }, + "datasource_37":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_37" + }, + "datasource_38":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_38" + }, + "datasource_39":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_40":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_largeur", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_largeur"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_40" + }, + "datasource_41":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geomembrane", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geomembrane"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_41" + } + } +} diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_ventilation.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_ventilation.json new file mode 100755 index 0000000000000000000000000000000000000000..8491de0059cc2a70844b5b8c17cf703dd082c7cd --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_controle_controle_ventilation.json @@ -0,0 +1,690 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_ventilation-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"vt_primaire", + "label":"Présence d'une ventilation primaire", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_primaire_1_1" + }, + { + "type":"label", + "name":"vt_secondaire", + "label":"Présence d'une ventilation secondaire", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_secondaire_2_1" + }, + { + "type":"label", + "name":"emplacement_vt_secondaire", + "label":"Emplacement envisagé pour la canalisation de ventilation secondaire", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"emplacement_vt_secondaire_3_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Ventilation primaire", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"vt_prim_loc", + "label":"Localisation", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_prim_loc_3_1" + }, + { + "type":"label", + "name":"vt_prim_ht", + "label":"Hauteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_prim_ht_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"vt_prim_diam", + "label":"Diamètre", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_prim_diam_5_1" + }, + { + "type":"label", + "name":"vt_prim_type_extract", + "label":"Type d'extracteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_prim_type_extract_6_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Ventilation secondaire", + "nb_cols":12, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"vt_second_loc", + "label":"Localisation", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_second_loc_7_1" + }, + { + "type":"label", + "name":"vt_second_ht", + "label":"Hauteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_second_ht_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"vt_second_diam", + "label":"Diamètre", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_second_diam_9_1" + }, + { + "type":"label", + "name":"vt_second_type_extract", + "label":"Type d'extracteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_second_type_extract_10_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"vt_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"vt_commentaire_46_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlVentilationForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "vt_primaire", + "vt_secondaire", + "vt_prim_loc", + "vt_prim_ht", + "vt_prim_diam", + "vt_prim_type_extract", + "vt_second_loc", + "vt_second_ht", + "vt_second_diam", + "vt_second_type_extract", + "display_button", + "Element_0", + "Element_1", + "vt_commentaire", + "emplacement_vt_secondaire" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_ventilation-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_ventilation-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0","elements":[ + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_ventilation-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"vt_primaire", + "label":"Présence d'une ventilation primaire", + "required":false, + "nb_cols":6, + "id":"vt_primaire_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_secondaire", + "label":"Présence d'une ventilation secondaire", + "required":false, + "nb_cols":6, + "id":"vt_secondaire_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"text", + "name":"emplacement_vt_secondaire", + "label":"Emplacement envisagé pour la canalisation de ventilation secondaire", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"emplacement_vt_secondaire_3_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Ventilation primaire", + "nb_cols":12, + "id":"Element_1_2_1" + } + ] + }, + { + "fields":[ + { + "type":"editable_select", + "name":"vt_prim_loc", + "label":"Localisation", + "required":false, + "nb_cols":6, + "id":"vt_prim_loc_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_prim_ht", + "label":"Hauteur", + "required":false, + "nb_cols":6, + "id":"vt_prim_ht_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"vt_prim_diam", + "label":"Diamètre", + "required":false, + "nb_cols":6, + "id":"vt_prim_diam_5_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_prim_type_extract", + "label":"Type d'extracteur", + "required":false, + "nb_cols":6, + "id":"vt_prim_type_extract_6_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_prim_type_materiau", + "label":"Type de matériau", + "required":false, + "nb_cols":6, + "id":"vt_prim_type_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Ventilation secondaire", + "nb_cols":12, + "id":"Element_2_5_1" + } + ] + }, + { + "fields":[ + { + "type":"editable_select", + "name":"vt_second_loc", + "label":"Localisation", + "required":false, + "nb_cols":6, + "id":"vt_second_loc_7_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_second_ht", + "label":"Hauteur", + "required":false, + "nb_cols":6, + "id":"vt_second_ht_8_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"vt_second_diam", + "label":"Diamètre", + "required":false, + "nb_cols":6, + "id":"vt_second_diam_9_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_second_type_extract", + "label":"Type d'extracteur", + "required":false, + "nb_cols":6, + "id":"vt_second_type_extract_10_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_second_type_materiau", + "label":"Type de matériau", + "required":false, + "nb_cols":6, + "id":"vt_second_type_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"vt_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"vt_commentaire_46_1", + "nb_rows":10, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlVentilationForm()", + "event":"sendSimpleForm()" + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_primaire", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_primaire"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_secondaire", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_secondaire"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_prim_loc", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_prim_loc"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_prim_ht", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_prim_ht"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_prim_diam", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_prim_diam"}, + "schema":"s_anc","table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_prim_type_extract", + "description":"","parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_prim_type_extract"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_second_loc", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_second_loc"}, + "schema":"s_anc", + "table":"param_liste" + } + ,"ressource_id":"vitis/genericquerys" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_second_ht", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_second_ht"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_second_diam", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_second_diam"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_second_type_extract", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_second_type_extract"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_prim_type_materiau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_prim_type_materiau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_second_type_materiau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_second_type_materiau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_evacuation_eaux.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_evacuation_eaux.json new file mode 100755 index 0000000000000000000000000000000000000000..0b8e089b7e4016a0c3f84367abbc81ab565aca51 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_evacuation_eaux.json @@ -0,0 +1,2465 @@ +{ + "display":{ + "name":"anc_saisie_anc_evacuation_eaux_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_DISPLAY", + "input_size":"xxs", + "initEvent": "initAncEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_eva", + "label":"Identifiant de l'evacuation", + "nb_cols":3, + "id":"id_eva_1_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"Installation", + "nb_cols":3, + "id":"num_dossier_43_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Identifiant du contrôle", + "nb_cols":3, + "id":"id_controle_2_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_type", + "label":"Type d'évacuation", + "nb_cols":3, + "id":"evac_type_3_1" + }, + { + "type":"label", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"label", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_lin_total", + "label":"Total", + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"label", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"label", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1" + }, + { + "type":"label", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1" + }, + { + "type":"label", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1" + }, + { + "type":"label", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1" + }, + { + "type":"label", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis??", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1" + }, + { + "type":"label", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1" + }, + { + "type":"label", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente?", + "nb_cols":4, + "id":"evac_is_inf_perm_17_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"label", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1" + }, + { + "type":"label", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1" + }, + { + "type":"label", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1" + }, + { + "type":"label", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_rp_type_eff_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "nb_cols":4, + "id":"evac_hs_type_25_1" + }, + { + "type":"label", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1" + }, + { + "type":"label", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1" + }, + { + "type":"label", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_hs_type_eff_29_1" + }, + { + "type":"label", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_anc_eva", + "id_anc_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "num_dossier", + "display_button", + "id_installation", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_is_reb_bcl", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_evacuation_eaux_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":false, + "nb_cols":4, + "id":"Element_1_1_2", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_1_1_2_from" + }, + { + "type":"select", + "name":"evac_type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"Element_2_1_3", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_2_1_3_from" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_installation", + "id_controle", + "evac_type" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_evacuation_eaux_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_INSERT", + "input_size":"xxs", + "initEvent": "initAncEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_42_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_42_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant du contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_type", + "label":"Type d'évacuation", + "required":false, + "nb_cols":4, + "id":"evac_type_3_1", + "id_from":"evac_type_3_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"number", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_is_lin_total", + "label":"Total", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"number", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"number", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39330" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39331" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39341" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39342" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39352" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39353" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39360" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39361" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis?", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39376" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39377" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39393" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente", + "required":true, + "nb_cols":4, + "id":"evac_is_inf_perm_17_1", + "id_from":"evac_is_inf_perm_17_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "required":true, + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"radio", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39411" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39412" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39423" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39424" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39434" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39435" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1", + "id_from":"evac_rp_tamp_22_1_from", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35393" + } + ] + } + }, + { + "type":"select", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_eff_23_1", + "id_from":"evac_rp_type_eff_23_1_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39453" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39454" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_25_1", + "id_from":"evac_hs_type_25_1_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "required":false, + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1", + "id_from":"evac_hs_gestionnaire_26_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39476" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39477" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39487" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39488" + } + ] + } + }, + { + "type":"select", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_eff_29_1", + "id_from":"evac_hs_type_eff_29_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39495" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39496" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"evac_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"evac_commentaires_32_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "id_installation", + "insert_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_is_reb_bcl", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_evacuation_eaux_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_UPDATE", + "input_size":"xxs", + "initEvent": "initAncEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_eva", + "label":"Identifiant de l'evacuation", + "nb_cols":12, + "id":"id_eva_1_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"Element_3_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_3_2_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant du contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_type", + "label":"Type d'évacuation", + "required":false, + "nb_cols":4, + "id":"evac_type_3_1", + "id_from":"evac_type_3_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"number", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_is_lin_total", + "label":"Total", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"number", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"number", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35271" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35272" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35282" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35283" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35293" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35294" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35305" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35306" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35316" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35317" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis?", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35328" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35329" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35352" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35353" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente", + "required":true, + "nb_cols":4, + "id":"evac_is_inf_perm_17_1", + "id_from":"evac_is_inf_perm_17_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"radio", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35379" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35380" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35393" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1", + "id_from":"evac_rp_tamp_22_1_from", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35393" + } + ] + } + }, + { + "type":"select", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_eff_23_1", + "id_from":"evac_rp_type_eff_23_1_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35419" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35420" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_25_1", + "id_from":"evac_hs_type_25_1_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "required":false, + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1", + "id_from":"evac_hs_gestionnaire_26_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35438" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35439" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39487" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39488" + } + ] + } + }, + { + "type":"select", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_eff_29_1", + "id_from":"evac_hs_type_eff_29_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39495" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39496" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"evac_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"evac_commentaires_32_1", + "size":5 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Suivi", + "nb_cols":12, + "id":"Element_4_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + }, + { + "fields":[ + + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_eva", + "id_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "id_installation", + "num_dossier", + "update_button", + "id_installation", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_is_reb_bcl", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_type", + "description":"", + "parameters":{ + "database":"", + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_is_nb", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_is_nb"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_type_eff", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_type_eff"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_gestionnaire", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_gestionnaire"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_type_eff", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_type_eff"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_tamp", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_tamp"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_is_inf_perm", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_is_inf_perm"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_is_type_effl", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_is_type_effl"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + } + } +} diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_filieres_agree.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_filieres_agree.json new file mode 100755 index 0000000000000000000000000000000000000000..f2dfb823d4b5edb7d171622e83c11afc47559134 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_filieres_agree.json @@ -0,0 +1,5451 @@ +{ + "display":{ + "name":"anc_saisie_anc_filieres_agree-form", + "title":"ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_fag", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_fag_1_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"Installation", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"num_dossier_89_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Contrôle", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_controle_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_type", + "label":"Type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_type_3_1" + }, + { + "type":"label", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1" + }, + { + "type":"label", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_denom", + "label":"Dénomination de la filière", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1" + }, + { + "type":"label", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"label", + "name":"fag_cap_eh", + "label":"Capacité EH", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"label", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"label", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"label", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_guide_15_1" + }, + { + "type":"label", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_livret_16_1" + }, + { + "type":"label", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_contr_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1" + }, + { + "type":"label", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_plan_20_1" + }, + { + "type":"label", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1" + }, + { + "type":"label", + "name":"fag_rep", + "label":"Dalle de répartition?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1" + }, + { + "type":"label", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1" + }, + { + "type":"label", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1" + }, + { + "type":"label", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1" + }, + { + "type":"label", + "name":"fag_pres_alar", + "label":"Présence d'un regard de collecte permettant les prelevements", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1" + }, + { + "type":"label", + "name":"fag_pres_reg", + "label":"Présence d'une alarme visuelle?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1" + }, + { + "type":"label", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1" + }, + { + "type":"label", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1" + }, + { + "type":"label", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"label", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reac_bull_37_1" + }, + { + "type":"label", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_dec_39_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_broy_38_1" + }, + { + "type":"label", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fag_type_eau_40_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"label", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1" + }, + { + "type":"label", + "name":"fag_reg_affl", + "label":"Afleure t-il au niveau du sol", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1" + }, + { + "type":"label", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1" + }, + { + "type":"label", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1" + }, + { + "type":"label", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"label", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1" + }, + { + "type":"label", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1" + }, + { + "type":"label", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"label", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"label", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1" + }, + { + "type":"label", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Contrôle de l'état", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1" + }, + { + "type":"label", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1" + }, + { + "type":"label", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1" + }, + { + "type":"label", + "name":"fag_acces", + "label":"Accessibilité", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1" + }, + { + "type":"label", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1" + }, + { + "type":"label", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"label", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1" + }, + { + "type":"label", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"label", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1" + }, + { + "type":"label", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1" + }, + { + "type":"label", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_32_4", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1" + }, + { + "type":"label", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1" + }, + { + "type":"label", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_9", + "label":"Suivi", + "nb_cols":12, + "id":"Element_9_40_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_81_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_82_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_79_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_80_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"plan_f_87_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncFilieresAgreeesForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_fag", + "id_controle", + "fag_type", + "fag_integerer", + "fag_agree", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_att_conf", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_dist", + "fag_surpr_elec", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "num_dossier", + "display_button", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_6", + "Element_7", + "Element_8", + "Element_9", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_filieres_agree-form", + "title":"ANC_SAISIE_ANC_FILIERES_AGREE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":false, + "nb_cols":4, + "id":"Element_1_1_2", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_1_1_2_from" + }, + { + "type":"select", + "name":"fag_type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"Element_2_1_3", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_2_1_3_from" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_installation", + "id_controle", + "fag_type" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_filieres_agree-form", + "title":"ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":6, + "id":"id_installation_88_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_88_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":6, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_type", + "label":"Type", + "required":true, + "nb_cols":4, + "id":"fag_type_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_3_1_from" + }, + { + "type":"select", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_integerer_5_1_from" + }, + { + "type":"select", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_agree_4_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_denom", + "label":"Dénomination de la filière", + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1", + "datasource":{ + "datasource_id":"datasource_63", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_denom_7_1_from" + }, + { + "type":"select", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1", + "datasource":{ + "datasource_id":"datasource_62", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"fag_fab_8_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"text", + "name":"fag_cap_eh", + "label":"Capacité EH", + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"text", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"text", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"select", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1", + "datasource":{ + "datasource_id":"datasource_61", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_cuv_14_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "required":false, + "nb_cols":6, + "id":"fag_guide_15_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_guide_15_1_from" + }, + { + "type":"select", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "required":false, + "nb_cols":6, + "id":"fag_livret_16_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_livret_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "required":false, + "nb_cols":6, + "id":"fag_contr_17_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_contr_17_1_from" + }, + { + "type":"text", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_19_1_from" + }, + { + "type":"select", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "nb_cols":4, + "id":"fag_plan_20_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_plan_20_1_from" + }, + { + "type":"select", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_tamp_21_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ancrage_22_1_from" + }, + { + "type":"select", + "name":"fag_rep", + "label":"Dalle de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_rep_23_1_from" + }, + { + "type":"select", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_respect_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ventil_25_1_from" + }, + { + "type":"select", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1", + "datasource":{ + "datasource_id":"datasource_55", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_typ_26_1_from" + }, + { + "type":"select", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_filt_27_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mise_eau_28_1_from" + }, + { + "type":"select", + "name":"fag_pres_reg", + "label":"Présence d'un regard de collecte permettant les prelevements", + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_reg_30_1_from" + }, + { + "type":"select", + "name":"fag_pres_alar", + "label":"Présence d'une alarme visuelle?", + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_alar_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_att_conf_31_1_from" + }, + { + "type":"select", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_32_1_from" + }, + { + "type":"text", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_elec_35_1_from" + }, + { + "type":"text", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"select", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_aer_36_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "required":false, + "nb_cols":6, + "id":"fag_reac_bull_37_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reac_bull_37_1_from" + }, + { + "type":"select", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "required":false, + "nb_cols":6, + "id":"fag_dec_39_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dec_39_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "required":false, + "nb_cols":6, + "id":"fag_broy_38_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_broy_38_1_from" + }, + { + "type":"select", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "required":false, + "nb_cols":6, + "id":"fag_type_eau_40_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_eau_40_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"select", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_mat_42_1_from" + }, + { + "type":"select", + "name":"fag_reg_affl", + "label":"Affleure t-il au niveau du sol", + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_affl_43_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_hz_44_1_from" + }, + { + "type":"select", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_van_45_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_nb_46_1_from" + }, + { + "type":"select", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1", + "datasource":{ + "datasource_id":"datasource_35", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_long_47_1_from" + }, + { + "type":"select", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1", + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_larg_48_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"select", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1", + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_sep_50_1_from" + }, + { + "type":"select", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_pla_51_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_drain_52_1_from" + }, + { + "type":"select", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_resp_53_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"select", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "datasource":{ + "datasource_id":"datasource_42", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"text", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1", + "datasource":{ + "datasource_id":"datasource_43", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_drain_57_1_from" + }, + { + "type":"select", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1", + "datasource":{ + "datasource_id":"datasource_44", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_resp_58_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Controle de l'etat", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1", + "datasource":{ + "datasource_id":"datasource_45", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_qual_59_1_from" + }, + { + "type":"select", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1", + "datasource":{ + "datasource_id":"datasource_46", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_epa_60_1_from" + }, + { + "type":"select", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1", + "datasource":{ + "datasource_id":"datasource_47", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_veg_61_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1", + "datasource":{ + "datasource_id":"datasource_48", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_pro_62_1_from" + }, + { + "type":"select", + "name":"fag_acces", + "label":"Accessibilité", + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1", + "datasource":{ + "datasource_id":"datasource_49", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_acces_63_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1", + "datasource":{ + "datasource_id":"datasource_50", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_deg_64_1_from" + }, + { + "type":"select", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1", + "datasource":{ + "datasource_id":"datasource_51", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_od_65_1_from" + }, + { + "type":"select", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1", + "datasource":{ + "datasource_id":"datasource_52", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_dy_66_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"select", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1", + "datasource":{ + "datasource_id":"datasource_53", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_jus_68_1_from" + }, + { + "type":"select", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1", + "id_from":"fag_en_entr_69_1_from", + "datasource":{ + "datasource_id":"datasource_64", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + } + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"select", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1", + "datasource":{ + "datasource_id":"datasource_56", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_dest_71_1_from" + }, + { + "type":"text", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1", + "datasource":{ + "datasource_id":"datasource_54", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_contr_73_1_from" + }, + { + "type":"text", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_37_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1", + "datasource":{ + "datasource_id":"datasource_57", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_arb_75_1_from" + }, + { + "type":"select", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1", + "datasource":{ + "datasource_id":"datasource_58", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_parc_76_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1", + "datasource":{ + "datasource_id":"datasource_59", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_hab_77_1_from" + }, + { + "type":"select", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1", + "datasource":{ + "datasource_id":"datasource_60", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_cap_78_1_from" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"plan de recolement", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"plan_f_87_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncFilieresAgreeesForm()", + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "fag_type", + "fag_integerer", + "fag_agree", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_dist", + "fag_surpr_elec", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "id_installation", + "insert_button", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_6", + "Element_7", + "Element_8", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_filieres_agree-form", + "title":"ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_fag", + "label":"ID", + "nb_cols":4, + "id":"Element_11_1_1" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_88_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_88_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_type", + "label":"Type", + "required":true, + "nb_cols":4, + "id":"fag_type_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_3_1_from" + }, + { + "type":"select", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_integerer_5_1_from" + }, + { + "type":"select", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_agree_4_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_denom", + "label":"Dénomination de la filière", + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1", + "datasource":{ + "datasource_id":"datasource_63", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_denom_7_1_from" + }, + { + "type":"select", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1", + "datasource":{ + "datasource_id":"datasource_62", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"fag_fab_8_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"text", + "name":"fag_cap_eh", + "label":"Capacité EH", + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"text", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"text", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"select", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1", + "datasource":{ + "datasource_id":"datasource_61", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_cuv_14_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "required":false, + "nb_cols":6, + "id":"fag_guide_15_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_guide_15_1_from" + }, + { + "type":"select", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "required":false, + "nb_cols":6, + "id":"fag_livret_16_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_livret_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "required":false, + "nb_cols":6, + "id":"fag_contr_17_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_contr_17_1_from" + }, + { + "type":"text", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_19_1_from" + }, + { + "type":"select", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "nb_cols":4, + "id":"fag_plan_20_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_plan_20_1_from" + }, + { + "type":"select", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_tamp_21_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ancrage_22_1_from" + }, + { + "type":"select", + "name":"fag_rep", + "label":"Dalle de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_rep_23_1_from" + }, + { + "type":"select", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_respect_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ventil_25_1_from" + }, + { + "type":"select", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1", + "datasource":{ + "datasource_id":"datasource_55", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_typ_26_1_from" + }, + { + "type":"select", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_filt_27_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mise_eau_28_1_from" + }, + { + "type":"select", + "name":"fag_pres_reg", + "label":"Présence d'un regard de collecte permettant les prelevements", + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_reg_30_1_from" + }, + { + "type":"select", + "name":"fag_pres_alar", + "label":"Présence d'une alarme visuelle?", + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_alar_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_att_conf_31_1_from" + }, + { + "type":"select", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_32_1_from" + }, + { + "type":"text", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_elec_35_1_from" + }, + { + "type":"text", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"select", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_aer_36_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "required":false, + "nb_cols":6, + "id":"fag_reac_bull_37_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reac_bull_37_1_from" + }, + { + "type":"select", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "required":false, + "nb_cols":6, + "id":"fag_dec_39_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dec_39_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "required":false, + "nb_cols":6, + "id":"fag_broy_38_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_broy_38_1_from" + }, + { + "type":"select", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "required":false, + "nb_cols":6, + "id":"fag_type_eau_40_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_eau_40_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"select", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_mat_42_1_from" + }, + { + "type":"select", + "name":"fag_reg_affl", + "label":"Affleure t-il au niveau du sol", + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_affl_43_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_hz_44_1_from" + }, + { + "type":"select", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_van_45_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_nb_46_1_from" + }, + { + "type":"select", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1", + "datasource":{ + "datasource_id":"datasource_35", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_long_47_1_from" + }, + { + "type":"select", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1", + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_larg_48_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"select", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1", + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_sep_50_1_from" + }, + { + "type":"select", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_pla_51_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_drain_52_1_from" + }, + { + "type":"select", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_resp_53_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"select", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "datasource":{ + "datasource_id":"datasource_42", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"text", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1", + "datasource":{ + "datasource_id":"datasource_43", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_drain_57_1_from" + }, + { + "type":"select", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1", + "datasource":{ + "datasource_id":"datasource_44", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_resp_58_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Controle de l'etat", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1", + "datasource":{ + "datasource_id":"datasource_45", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_qual_59_1_from" + }, + { + "type":"select", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1", + "datasource":{ + "datasource_id":"datasource_46", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_epa_60_1_from" + }, + { + "type":"select", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1", + "datasource":{ + "datasource_id":"datasource_47", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_veg_61_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1", + "datasource":{ + "datasource_id":"datasource_48", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_pro_62_1_from" + }, + { + "type":"select", + "name":"fag_acces", + "label":"Accessibilité", + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1", + "datasource":{ + "datasource_id":"datasource_49", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_acces_63_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1", + "datasource":{ + "datasource_id":"datasource_50", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1", + "datasource":{ + "datasource_id":"datasource_51", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1", + "datasource":{ + "datasource_id":"datasource_52", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"select", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1", + "datasource":{ + "datasource_id":"datasource_53", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1", + "id_from":"fag_en_entr_69_1_from", + "datasource":{ + "datasource_id":"datasource_64", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + } + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"select", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1", + "datasource":{ + "datasource_id":"datasource_56", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_dest_71_1_from" + }, + { + "type":"text", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1", + "datasource":{ + "datasource_id":"datasource_54", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"text", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_37_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1", + "datasource":{ + "datasource_id":"datasource_57", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_arb_75_1_from" + }, + { + "type":"select", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1", + "datasource":{ + "datasource_id":"datasource_58", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_parc_76_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1", + "datasource":{ + "datasource_id":"datasource_59", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_hab_77_1_from" + }, + { + "type":"select", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1", + "datasource":{ + "datasource_id":"datasource_60", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_cap_78_1_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_9", + "label":"Suivi", + "nb_cols":12, + "id":"Element_9_40_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_81_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_82_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_79_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_80_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncFilieresAgreeesForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_installation", + "id_controle", + "fag_type", + "fag_agree", + "fag_integerer", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_elec", + "fag_surpr_dist", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "Element_1", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "Element_2", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "Element_3", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "Element_4", + "Element_5", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "Element_6", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "Element_7", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "Element_8", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "Element_9", + "create", + "create_date", + "maj", + "maj_date", + "update_button", + "id_fag", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_agree", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_agree"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_integerer", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_integerer"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type_fil", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type_fil"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_guide", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_guide"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_livret", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_livret"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_contr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_contr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_plan", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_plan"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_tamp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_tamp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_ancrage", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_ancrage"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_rep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_rep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_respect", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_respect"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_ventil", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_ventil"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mil_filt", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mil_filt"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mise_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mise_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_reg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_reg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_alar", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_alar"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_att_conf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_att_conf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_elec", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_elec"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_dist", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_dist"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_aer", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_aer"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reac_bull", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reac_bull"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + }, + "datasource_27":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_broy", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_broy"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_27" + }, + "datasource_28":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dec", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dec"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_28" + }, + "datasource_29":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_29" + }, + "datasource_30":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_30" + }, + "datasource_31":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_31" + }, + "datasource_32":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_32" + }, + "datasource_33":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_van", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_van"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_33" + }, + "datasource_34":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_nb", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_nb"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_34" + }, + "datasource_35":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_long", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_long"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_35" + }, + "datasource_36":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_larg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_larg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_36" + }, + "datasource_37":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_sep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_sep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_37" + }, + "datasource_38":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_pla", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_pla"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_38" + }, + "datasource_39":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_drain", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_drain"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_39" + }, + "datasource_40":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_resp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_resp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_40" + }, + "datasource_41":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_long", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_long"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_41" + }, + "datasource_42":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_larg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_larg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_42" + }, + "datasource_43":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_drain", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_drain"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_43" + }, + "datasource_44":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_resp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_resp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_44" + }, + "datasource_45":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_45" + }, + "datasource_46":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_epa", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_epa"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_46" + }, + "datasource_47":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_veg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_veg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_47" + }, + "datasource_48":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_pro", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_pro"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_48" + }, + "datasource_49":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_acces", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_acces"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_49" + }, + "datasource_50":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_deg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_deg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_50" + }, + "datasource_51":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_od", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_od"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_51" + }, + "datasource_52":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_dy", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_dy"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_52" + }, + "datasource_53":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_jus", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_jus"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_53" + }, + "datasource_54":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_contr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_contr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_54" + }, + "datasource_55":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mil_typ", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mil_typ"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_55" + }, + "datasource_56":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_dest", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_dest"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_56" + }, + "datasource_57":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_arb", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_arb"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_57" + }, + "datasource_58":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_parc", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_parc"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_58" + }, + "datasource_59":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_hab", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_hab"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_59" + }, + "datasource_60":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_cap", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_cap"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_60" + }, + "datasource_61":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_cuv", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_cuv"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_61" + }, + "datasource_62":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fab", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_entreprise", + "filter": {"constructeur": true} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_63":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_denom", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_denom"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_63" + }, + "datasource_64":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_entr", + "description":"", + "parameters":{ + "filter":{"vidangeur": true}, + "schema":"s_anc", + "table":"param_entreprise" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_64" + } + } +} diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_installation.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_installation.json new file mode 100755 index 0000000000000000000000000000000000000000..9fb7f5ed2d7d323698590236ea6c5d94100e70e6 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_installation.json @@ -0,0 +1,2371 @@ +{ + "display":{ + "name":"anc_saisie_anc_installation-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_installation", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_installation_1_1" + }, + { + "type":"label", + "name":"commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"commune_36_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"N° dossier", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"num_dossier_35_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Parcelle", + "nb_cols":12, + "id":"Element_7_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"section", + "label":"Section", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"section_37_1" + }, + { + "type":"label", + "name":"parcelle", + "label":"Parcelle", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"parcelle_38_1" + }, + { + "type":"label", + "name":"id_parc", + "label":"Id parcelle", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"id_parc_3_1" + }, + { + "type":"label", + "name":"parc_sup", + "label":"Superficie", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"parc_sup_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"parc_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"parc_adresse_6_1" + }, + { + "type":"label", + "name":"code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"code_postal_7_1" + }, + { + "type":"label", + "name":"parc_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"parc_commune_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"parc_parcelle_associees", + "label":"Parcelles associées", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"parc_parcelle_associees_5_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Propriétaire", + "nb_cols":12, + "id":"Element_8_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"prop_titre", + "label":"Titre", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"prop_titre_9_1" + }, + { + "type":"label", + "name":"prop_nom_prenom", + "label":"Nom Prénom", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"prop_nom_prenom_10_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"prop_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"prop_adresse_11_1" + }, + { + "type":"label", + "name":"prop_code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"prop_code_postal_12_1" + }, + { + "type":"label", + "name":"prop_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"prop_commune_13_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"prop_tel", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"prop_tel_14_1" + }, + { + "type":"label", + "name":"prop_mail", + "label":"Mail", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"prop_mail_15_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_9", + "label":"Bâtiments", + "nb_cols":12, + "id":"Element_9_10_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"bati_type", + "label":"Type", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"bati_type_16_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"bati_ca_nb_pp", + "label":"Nombre de personnes", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_pp_17_1" + }, + { + "type":"label", + "name":"bati_ca_nb_eh", + "label":"Nombre équivalent habitants", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_eh_18_1" + }, + { + "type":"label", + "name":"bati_ca_nb_chambres", + "label":"Nombre de chambres", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_chambres_19_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"bati_nb_a_control", + "label":"Nombre de bâti à contrôler", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_nb_a_control_22_1" + }, + { + "type":"label", + "name":"bati_date_mutation", + "label":"Date de mutation", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_date_mutation_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Contraintes", + "nb_cols":12, + "id":"Element_10_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"cont_zone_enjeu", + "label":"Zone à enjeux", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"cont_zone_enjeu_25_1" + }, + { + "type":"label", + "name":"cont_zone_sage", + "label":"Zone SAGE", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"cont_zone_sage_26_1" + }, + { + "type":"label", + "name":"cont_zone_autre", + "label":"Autres renseignements (z. humides, z littorale…)", + "disabled":false, + "required":false, + "nb_cols":5, + "id":"cont_zone_autre_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"cont_zone_urba", + "label":"Zone PLU", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"cont_zone_urba_28_1" + }, + { + "type":"label", + "name":"cont_zone_anc", + "label":"Zonage assainissement", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"cont_zone_anc_29_1" + }, + { + "type":"label", + "name":"cont_alim_eau_potable", + "label":"Mode d'alimentation eau potable", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"cont_alim_eau_potable_30_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_12", + "label":"Puits / Captage", + "nb_cols":12, + "id":"Element_12_24_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"cont_puits_usage", + "label":"Usage", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"cont_puits_usage_31_1" + }, + { + "type":"label", + "name":"cont_puits_declaration", + "label":"Déclaré en mairie", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"cont_puits_declaration_32_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"cont_puits_situation", + "label":"Situation par rapport au traitement", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"cont_puits_situation_33_1" + }, + { + "type":"label", + "name":"cont_puits_terrain_mitoyen", + "label":"Existe-t-il un puit sur un terrain mitoyen ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"cont_puits_terrain_mitoyen_34_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_11", + "label":"Contrôle", + "nb_cols":12, + "id":"Element_11_20_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "pattern":"[-+]?(\\d*[.])?\\d+", + "name":"nb_controle", + "label":"Nombre de contrôles", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"nb_controle_39_1" + }, + { + "type":"label", + "name":"cl_avis", + "label":"Conformité du dernier contrôle", + "nb_cols":4, + "id":"Element_13_22_1" + }, + { + "type":"label", + "name":"next_control", + "label":"Date du prochain contrôle", + "nb_cols":4, + "id":"Element_14_22_2" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_installation", + "id_parc", + "parc_sup", + "parc_parcelle_associees", + "parc_adresse", + "code_postal", + "parc_commune", + "prop_titre", + "prop_nom_prenom", + "prop_adresse", + "prop_code_postal", + "prop_commune", + "prop_tel", + "prop_mail", + "bati_type", + "bati_ca_nb_pp", + "bati_ca_nb_eh", + "bati_ca_nb_chambres", + "bati_nb_a_control", + "bati_date_mutation", + "cont_zone_enjeu", + "cont_zone_sage", + "cont_zone_autre", + "cont_zone_urba", + "cont_zone_anc", + "cont_alim_eau_potable", + "cont_puits_usage", + "cont_puits_declaration", + "cont_puits_situation", + "cont_puits_terrain_mitoyen", + "num_dossier", + "commune", + "section", + "parcelle", + "nb_controle", + "display_button", + "Element_7", + "Element_8", + "Element_9", + "Element_10", + "Element_11", + "Element_12", + "cl_avis", + "next_control" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_installation-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"integer", + "name":"id_installation", + "label":"ID", + "nb_cols":6, + "id":"Element_0_1_1" + }, { + "type":"text", + "name":"num_dossier", + "label":"nº installation", + "nb_cols":6, + "id":"Element_0_1_1111" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":4, + "id":"Element_0_1_2", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"Element_0_1_2_from" + }, + { + "type":"select", + "name":"section", + "label":"Section", + "required":false, + "nb_cols":4, + "id":"Element_0_2_2", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"section", + "order_by":"section", + "id_key":"section", + "attributs":"section|section", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_0_2_2_from" + }, + { + "type":"select", + "name":"id_parc", + "label":"Parcelle", + "required":false, + "nb_cols":4, + "id":"Element_0_2_3", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"parcelle", + "order_by":"parcelle", + "id_key":"id_par", + "attributs":"parcelle|id_par", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + }, + { + "name":"section", + "filter_attr":"section", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_0_2_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"parc_commune", + "label":"Commune de la parcelle", + "required":false, + "nb_cols":6, + "id":"Element_0_3_2", + "id_from":"Element_0_3_2_from" + }, + { + "type":"text", + "name":"parc_adresse", + "label":"Adresse", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_0_3_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_titre", + "label":"Titre du propriétaire", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_0_4_1" + }, + { + "type":"text", + "name":"prop_nom_prenom", + "label":"Nom et prénom du propriétaire", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_0_4_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_adresse", + "label":"Adresse du propriétaire", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_0_5_1" + }, + { + "type":"text", + "name":"prop_code_postal", + "label":"Code postal", + "required":false, + "pattern":"", + "nb_cols":2, + "id":"Element_1_5_2" + }, + { + "type":"text", + "name":"prop_commune", + "label":"Commune", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_2_5_3" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_tel", + "label":"Téléphone", + "required":false, + "pattern":"", + "nb_cols":6, + "pattern":"^0[0-9]{9}$", + "id":"Element_5_6_1" + }, + { + "type":"text", + "name":"prop_mail", + "label":"Email", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_4_8_2" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_installation", + "num_dossier", + "id_com", + "section", + "id_parc", + "parc_adresse", + "parc_commune", + "prop_titre", + "prop_nom_prenom", + "prop_adresse", + "prop_code_postal", + "prop_commune", + "prop_mail", + "prop_tel" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_installation-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_TITLE_INSERT", + "input_size":"xxs", + "initEvent": "initAncInstallationForm()", + "nb_cols":11, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":true, + "nb_cols":5, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"id_com_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Parcelle", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"section", + "label":"Section", + "required":true, + "nb_cols":3, + "id":"section_37_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"section", + "order_by":"section", + "id_key":"section", + "attributs":"section|section", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"section_37_1_from" + }, + { + "type":"select", + "name":"id_parc", + "label":"Parcelle", + "required":true, + "nb_cols":3, + "id":"id_parc_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"parcelle", + "order_by":"parcelle", + "id_key":"id_par", + "attributs":"id_par|parcelle", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + }, + { + "name":"section", + "filter_attr":"section", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_parc_3_1_from" + }, + { + "type":"label", + "name":"parcelle", + "label":"Id Parcelle", + "nb_cols":3, + "id":"parcelle_38_1" + }, + { + "type":"text", + "name":"parc_sup", + "label":"Superficie", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"parc_sup_4_1", + "max_length": 50 + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"parc_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"parc_adresse_6_1" + }, + { + "type":"text", + "name":"code_postal", + "label":"Code Postal", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"code_postal_7_1" + }, + { + "type":"text", + "name":"parc_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"parc_commune_8_1" + } + ] + }, + { + "fields":[ + { + "type":"double_select", + "name":"parc_parcelle_associees", + "label":"Parcelles associées", + "required":false, + "nb_cols":12, + "id":"parc_parcelle_associees_5_1", + "name_to":"parc_parcelle_associees", + "name_from":"parc_parcelle_associees_from", + "size":5, + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "id_key":"id_par", + "label_key":"id_par", + "attributs":"id_par|parcelle", + "order_by":"id_par", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + }, + { + "name":"section", + "filter_attr":"section", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "label_from":"Parcelles disponibles", + "label_to":"Parcelles Associées", + "id_from":"parc_parcelle_associees_5_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Propriétaire", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_titre", + "label":"Titre", + "disabled":false, + "required":false, + "nb_cols":3, + "max_length": 50, + "id":"prop_titre_9_1" + }, + { + "type":"text", + "name":"prop_nom_prenom", + "label":"Nom Prénom", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"prop_nom_prenom_10_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"prop_adresse_11_1" + }, + { + "type":"text", + "name":"prop_code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"prop_code_postal_12_1" + }, + { + "type":"text", + "name":"prop_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"prop_commune_13_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_tel", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 10, + "pattern":"^0[0-9]{9}$", + "id":"prop_tel_14_1" + }, + { + "type":"email", + "name":"prop_mail", + "label":"Mail", + "required":false, + "nb_cols":6, + "id":"prop_mail_15_1", + "max_length": 50, + "pattern":"^(([a-zA-Z]|[0-9])|([-]|[_]|[.]))+[@](([a-zA-Z0-9])|([-])){2,63}[.](([a-zA-Z0-9]){2,63})+$" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Bâtiments", + "nb_cols":12, + "id":"Element_2_10_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"bati_type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"bati_type_16_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"bati_type_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"bati_ca_nb_pp", + "label":"Nombre de Personnes", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_pp_17_1" + }, + { + "type":"integer", + "name":"bati_ca_nb_eh", + "label":"Nombre équivalent habitants", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_eh_18_1" + }, + { + "type":"integer", + "name":"bati_ca_nb_chambres", + "label":"Nombre de chambres", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_chambres_19_1" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"bati_nb_a_control", + "label":"Nombre de bâti à contrôler", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_nb_a_control_22_1" + }, + { + "type":"date", + "name":"bati_date_mutation", + "label":"Date de mutation", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_date_mutation_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Contraintes", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_zone_enjeu", + "label":"Zone à enjeux", + "required":false, + "nb_cols":3, + "id":"cont_zone_enjeu_25_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_zone_enjeu_25_1_from" + }, + { + "type":"select", + "name":"cont_zone_sage", + "label":"Zone SAGE", + "nb_cols":3, + "id":"cont_zone_sage_26_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "id_from":"cont_zone_sage_26_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"text", + "name":"cont_zone_autre", + "label":"Autres renseignements (z. humides, z littorale…)", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"cont_zone_autre_27_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"cont_zone_urba", + "label":"Zone PLU", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"cont_zone_urba_28_1" + }, + { + "type":"text", + "name":"cont_zone_anc", + "label":"Zonage assainissement", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"cont_zone_anc_29_1" + }, + { + "type":"select", + "name":"cont_alim_eau_potable", + "label":"Mode dalimentation eau potable", + "required":false, + "nb_cols":4, + "id":"cont_alim_eau_potable_30_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_alim_eau_potable_30_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Puits / Captage", + "nb_cols":12, + "id":"Element_4_18_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_puits_usage", + "label":"Usage", + "required":false, + "nb_cols":6, + "id":"cont_puits_usage_31_1", + "id_from":"cont_puits_usage_31_1_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"cont_puits_declaration", + "label":"Déclaré en mairie", + "nb_cols":6, + "id":"cont_puits_declaration_32_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_puits_situation", + "label":"Situation par rapport au traitement", + "required":false, + "nb_cols":6, + "id":"cont_puits_situation_33_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_puits_situation_33_1_from" + }, + { + "type":"select", + "name":"cont_puits_terrain_mitoyen", + "label":"Existe-t-il un puit sur un terrain mitoyen", + "nb_cols":6, + "id":"cont_puits_terrain_mitoyen_34_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:8984" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:8985" + } + ] + }, + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Contrôles", + "nb_cols":12, + "id":"Element_5_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"nb_controle", + "label":"Nombre de Contrôles réalisés", + "nb_cols":4, + "id":"nb_controle_39_1" + }, + { + "type":"label", + "name":"cl_avis", + "label":"Conformité du dernier contrôle", + "nb_cols":4, + "id":"Element_6_22_2" + }, + { + "type":"label", + "name":"next_control", + "label":"Date du prochain contrôle", + "nb_cols":4, + "id":"Element_7_22_3" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "beforeEvent":"beforeSendingAncInstallationForm()", + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_com", + "id_parc", + "parc_sup", + "parc_parcelle_associees", + "parc_adresse", + "code_postal", + "parc_commune", + "prop_titre", + "prop_nom_prenom", + "prop_adresse", + "prop_code_postal", + "commune", + "prop_tel", + "prop_mail", + "bati_type", + "bati_ca_nb_pp", + "bati_ca_nb_eh", + "bati_ca_nb_chambres", + "bati_nb_a_control", + "bati_date_mutation", + "cont_zone_enjeu", + "cont_zone_sage", + "cont_zone_autre", + "cont_zone_urba", + "cont_zone_anc", + "cont_alim_eau_potable", + "cont_puits_usage", + "cont_puits_declaration", + "cont_puits_situation", + "cont_puits_terrain_mitoyen", + "section", + "parcelle", + "nb_controle", + "insert_button", + "id_installation", + "prop_code_postal", + "prop_commune", + "prop_mail", + "prop_tel", + "cl_avis", + "next_control", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_installation-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_TITLE", + "input_size":"xxs", + "initEvent": "initAncInstallationForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_installation", + "label":"ID", + "nb_cols":2, + "id":"id_installation_1_1" + }, + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":4, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"id_com_2_1_from" + }, + { + "type":"label", + "name":"num_dossier", + "label":"N° Dossier", + "nb_cols":4, + "id":"num_dossier_35_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_14", + "label":"Parcelle", + "nb_cols":12, + "id":"Element_14_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"section", + "label":"Section", + "required":false, + "nb_cols":3, + "id":"section_37_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"section", + "order_by":"section", + "id_key":"section", + "attributs":"section|section", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"section_37_1_from" + }, + { + "type":"select", + "name":"id_parc", + "label":"Parcelle", + "required":false, + "nb_cols":3, + "id":"parcelle_38_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"parcelle", + "order_by":"parcelle", + "id_key":"id_par", + "attributs":"id_par|parcelle", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + }, + { + "name":"section", + "filter_attr":"section", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"parcelle_38_1_from" + }, + { + "type":"label", + "name":"parcelle", + "label":"Id Parcelle", + "nb_cols":3, + "id":"id_parc_3_1" + }, + { + "type":"text", + "name":"parc_sup", + "label":"Superficie", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"parc_sup_4_1", + "max_length": 50 + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"parc_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"parc_adresse_6_1" + }, + { + "type":"text", + "name":"code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"code_postal_7_1" + }, + { + "type":"text", + "name":"parc_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"parc_commune_8_1" + } + ] + }, + { + "fields":[ + { + "type":"double_select", + "name":"parc_parcelle_associees", + "label":"Parcelles associées", + "required":false, + "nb_cols":12, + "id":"parc_parcelle_associees_5_1", + "name_to":"parc_parcelle_associees", + "name_from":"parc_parcelle_associees_from", + "id_from":"parc_parcelle_associees_5_1_from", + "size":5, + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "id_key":"id_par", + "label_key":"id_par", + "attributs":"id_par|parcelle", + "order_by":"id_par", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + }, + { + "name":"section", + "filter_attr":"section", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "label_from":"Parcelles disponibles", + "label_to":"Parcelles associées" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_15", + "label":"Propriétaire", + "nb_cols":12, + "id":"Element_15_6_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_titre", + "label":"Titre", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"prop_titre_9_1" + }, + { + "type":"text", + "name":"prop_nom_prenom", + "label":"Nom Prénom", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"prop_nom_prenom_10_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"prop_adresse_11_1" + }, + { + "type":"text", + "name":"prop_code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"prop_code_postal_12_1" + }, + { + "type":"text", + "name":"prop_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"prop_commune_13_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_tel", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 10, + "pattern":"^0[0-9]{9}$", + "id":"prop_tel_14_1" + }, + { + "type":"email", + "name":"prop_mail", + "label":"Email", + "required":false, + "nb_cols":6, + "id":"prop_mail_15_1", + "max_length": 50, + "pattern":"^(([a-zA-Z]|[0-9])|([-]|[_]|[.]))+[@](([a-zA-Z0-9])|([-])){2,63}[.](([a-zA-Z0-9]){2,63})+$" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_16", + "label":"Bâtiments", + "nb_cols":12, + "id":"Element_16_10_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"bati_type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"bati_type_16_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"bati_type_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"bati_ca_nb_pp", + "label":"Nombre de personnes", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_pp_17_1" + }, + { + "type":"integer", + "name":"bati_ca_nb_eh", + "label":"Nombre équivalent habitant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_eh_18_1" + }, + { + "type":"integer", + "name":"bati_ca_nb_chambres", + "label":"Nombre de chambres", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_chambres_19_1" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"bati_nb_a_control", + "label":"Nombre de bâti à contrôler", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_nb_a_control_22_1" + }, + { + "type":"date", + "name":"bati_date_mutation", + "label":"Date de mutation", + "nb_cols":4, + "id":"bati_date_mutation_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_17", + "label":"Contraintes", + "nb_cols":12, + "id":"Element_17_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_zone_enjeu", + "label":"Zone à enjeux", + "required":false, + "nb_cols":4, + "id":"cont_zone_enjeu_25_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_zone_enjeu_25_1_from" + }, + { + "type":"select", + "name":"cont_zone_sage", + "label":"Zones SAGE", + "nb_cols":3, + "id":"cont_zone_sage_26_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:9433" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:9434" + } + ] + }, + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"text", + "name":"cont_zone_autre", + "label":"Autres renseignements (z. humides, z littorale…)", + "disabled":false, + "required":false, + "nb_cols":5, + "max_length": 50, + "id":"cont_zone_autre_27_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"cont_zone_urba", + "label":"Zones PLU", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"cont_zone_urba_28_1" + }, + { + "type":"text", + "name":"cont_zone_anc", + "label":"Zonage assainissement", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"cont_zone_anc_29_1" + }, + { + "type":"select", + "name":"cont_alim_eau_potable", + "label":"Mode d'alimentation eau potable", + "required":false, + "nb_cols":4, + "id":"cont_alim_eau_potable_30_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_alim_eau_potable_30_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_18", + "label":"Puits / Captage", + "nb_cols":12, + "id":"Element_18_18_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_puits_usage", + "label":"Usage", + "nb_cols":6, + "id":"cont_puits_usage_31_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_puits_usage_31_1_from" + }, + { + "type":"select", + "name":"cont_puits_declaration", + "label":"Déclaré en mairie", + "nb_cols":6, + "id":"cont_puits_declaration_32_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_puits_situation", + "label":"Situation par rapport au traitement", + "required":false, + "nb_cols":6, + "id":"cont_puits_situation_33_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_puits_situation_33_1_from" + }, + { + "type":"select", + "name":"cont_puits_terrain_mitoyen", + "label":"Existe-t-il un puit sur un terrain mitoyen ?", + "nb_cols":6, + "id":"cont_puits_terrain_mitoyen_34_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:9455" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:9456" + } + ] + }, + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_19", + "label":"Contrôles", + "nb_cols":12, + "id":"Element_19_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"nb_controle", + "label":"Nombre de contrôles", + "nb_cols":4, + "id":"nb_controle_39_1" + }, + { + "type":"label", + "name":"cl_avis", + "label":"Conformité du dernier contrôle", + "nb_cols":4, + "id":"Element_20_22_2" + }, + { + "type":"label", + "name":"next_control", + "label":"Date de prochain contrôle", + "nb_cols":4, + "id":"Element_21_22_3" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "beforeEvent":"beforeSendingAncInstallationForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_installation", + "id_com", + "id_parc", + "parc_sup", + "parc_parcelle_associees", + "parc_adresse", + "code_postal", + "parc_commune", + "prop_titre", + "prop_nom_prenom", + "prop_adresse", + "prop_code_postal", + "prop_commune", + "prop_tel", + "prop_mail", + "bati_type", + "bati_ca_nb_pp", + "bati_ca_nb_eh", + "bati_ca_nb_chambres", + "bati_nb_a_control", + "bati_date_mutation", + "cont_zone_enjeu", + "cont_zone_sage", + "cont_zone_autre", + "cont_zone_urba", + "cont_zone_anc", + "cont_alim_eau_potable", + "cont_puits_usage", + "cont_puits_declaration", + "cont_puits_situation", + "cont_puits_terrain_mitoyen", + "num_dossier", + "section", + "parcelle", + "nb_controle", + "update_button", + "Element_14", + "Element_15", + "Element_16", + "Element_17", + "Element_18", + "Element_19", + "cl_avis", + "next_control" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"communes", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_commune" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"sections", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_section" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"parcelles", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_vmap_parcelle_all_geom" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"bati_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "installation", "nom_liste": "bati_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_zone_enjeu", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "installation", "nom_liste": "cont_zone_enjeu"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_puits_usage", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "installation", "nom_liste": "cont_puits_usage"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_alim_eau_potable", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "installation", "nom_liste": "cont_alim_eau_potable"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_puits_situation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "installation", "nom_liste": "cont_puits_situation"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_zone_sage", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "installation", "nom_liste": "cont_zone_sage"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_puits_declaration", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "installation", "nom_liste": "cont_puits_declaration"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_puits_terrain_mitoyen", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "installation", "nom_liste": "cont_puits_terrain_mitoyen"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + } + } +} diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_installation_installation_documents.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_installation_installation_documents.json new file mode 100755 index 0000000000000000000000000000000000000000..efafcecbe7683260c8566433dbf2d502989ef5cc --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_installation_installation_documents.json @@ -0,0 +1,143 @@ +{ + "display":{ + "name":"anc_saisie_anc_installation_installation_documents-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"image_wsdata", + "name":"photo_f", + "label":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_PHOTO_F", + "disabled":false, + "required":false, + "nb_cols":6, + "displayOnly": true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"document_f", + "label":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_DOCUMENT_F", + "disabled":false, + "required":false, + "nb_cols":6, + "displayOnly": true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ] + }, + "search":{ + "name":"anc_saisie_anc_installation_installation_documents-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_installation_installation_documents-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()" + }, + "update":{ + "name":"anc_saisie_anc_installation_installation_documents-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"image_wsdata", + "name":"photo_f", + "label":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_PHOTO_F", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"photos_f_1_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"document_f", + "label":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_DOCUMENT_F", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"document_f_1_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()" + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_installation_installation_suivi.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_installation_installation_suivi.json new file mode 100755 index 0000000000000000000000000000000000000000..76476b275a6405f3ee3e1e5b78fd88a04150ef50 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_installation_installation_suivi.json @@ -0,0 +1,414 @@ +{ + "display":{ + "name":"anc_saisie_anc_installation_installation_suivi-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_4_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de Création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_2_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_3_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"archivage", + "label":"Archivage", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"archivage_6_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"observations", + "label":"Observations", + "nb_cols":12, + "id":"observations_1_1" + } + ] + }, + { + "fields":[ + { + "type":"map_osm", + "name":"geom", + "label":"Emplacement", + "required":false, + "nb_cols":12, + "id":"geom_7_1", + "style":{ + "height":"350px" + }, + "map_options":{ + "proj":"EPSG:2154", + "type":"OSM", + "output_format": "ewkt", + "center":{ + "extent":[ + 211050.84969634877, + 6832085.477172857, + 279507.64704437123, + 6866071.1212463435 + ], + "coord":[ + 245279.24837036, + 6849078.2992096 + ], + "scale":366422 + }, + "controls":{ + "MP":true, + "ZO":true, + "SL":true, + "CP":true + }, + "layers":[ + + ], + "interactions":{ + "multi_geometry":false, + "full_screen":true, + "RA":false, + "RO":false, + "ED":false, + "DP":false, + "DL":false, + "DPol":false, + "SE":true + }, + "draw_color":"rgba(54,184,255,0.6)", + "contour_color":"rgba(0,0,0,0.4)", + "contour_size":2, + "circle_radius":6, + "features":[ + + ], + "coord_accuracy":8 + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "observations", + "maj", + "maj_date", + "create", + "create_date", + "archivage", + "geom", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_installation_installation_suivi-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_installation_installation_suivi-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_installation_installation_suivi-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_4_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_2_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_3_1" + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"archivage", + "label":"Archivage", + "nb_cols":12, + "id":"archivage_6_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:18271" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:18272" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"observations", + "label":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_OBSERVATIONS", + "nb_cols":12, + "id":"observations_1_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"map_osm", + "name":"geom", + "label":"Emplacement", + "required":false, + "nb_cols":12, + "id":"anc_saisie_anc_installation_suivi_map", + "style":{ + "height":"350px" + }, + "map_options":{ + "proj":"EPSG:2154", + "type":"OSM", + "output_format": "ewkt", + "center":{ + "extent":[ + 210662.44233551028, + 6828978.218286132, + 277954.0176010132, + 6862963.862359619 + ], + "coord":[ + 244308.22996826173, + 6845971.040322876 + ], + "scale":366430 + }, + "controls":{ + "MP":true, + "ZO":true, + "SL":true, + "CP":true + }, + "layers":[ + + ], + "interactions":{ + "multi_geometry":false, + "full_screen":true, + "RA":false, + "RO":true, + "ED":true, + "DP":true, + "DL":false, + "DPol":false, + "SE":true + }, + "draw_color":"rgba(54,184,255,0.6)", + "contour_color":"rgba(0,0,0,0.4)", + "contour_size":2, + "circle_radius":6, + "features":[ + + ], + "coord_accuracy":8 + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "initEvent": "initAncInstallationSuiviForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "observations", + "maj", + "maj_date", + "create", + "create_date", + "archivage", + "geom", + "update_button" + ] + } + ] + } + }, + "datasources":{ + + } +} diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_pretraitement.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_pretraitement.json new file mode 100755 index 0000000000000000000000000000000000000000..8af4f2ef14626c3546a1889d7ba245356a2e6b70 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_pretraitement.json @@ -0,0 +1,2332 @@ +{ + "display":{ + "name":"anc_saisie_anc_pretraitement-form", + "title":"ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_DISPLAY", + "input_size":"xxs", + "initEvent": "initAncPretraitementForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_pretraitement", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_pretraitement_1_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Contrôle", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_controle_2_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"N° dossier", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"num_dossier_43_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Description", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_type", + "label":"Type de prétraitement", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_type_3_1" + }, + { + "type":"label", + "name":"ptr_volume", + "label":"Volume (en litres)", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1" + }, + { + "type":"label", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1" + }, + { + "type":"label", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1" + }, + { + "type":"label", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1" + }, + { + "type":"label", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1" + }, + { + "type":"label", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1" + }, + { + "type":"label", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1" + }, + { + "type":"label", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose en terrain hydrometrique ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1" + }, + { + "type":"label", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_renfor", + "label":"Si remblais important, ouvrage renforcé?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_renfor_21_1" + }, + { + "type":"label", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1" + }, + { + "type":"label", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Entretien", + "nb_cols":12, + "id":"Element_2_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1" + }, + { + "type":"label", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Vidange", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"label", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1" + }, + { + "type":"label", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"label", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1" + }, + { + "type":"label", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_commentaire_17_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Suivi", + "nb_cols":12, + "id":"Element_4_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_pretraitement", + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_pose", + "ptr_adapte", + "ptr_conforme_projet", + "ptr_type_eau", + "ptr_reglementaire", + "ptr_destination", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_dalle", + "ptr_im_renfor", + "ptr_im_puit", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "maj", + "maj_date", + "create", + "create_date", + "id_installation", + "display_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "ptr_renforce", + "ptr_verif_mise_en_eau" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_pretraitement-form", + "title":"ANC_SAISIE_ANC_PRETRAITEMENT_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "id_from":"Element_0_1_1_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + } + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":false, + "nb_cols":4, + "id":"Element_6_1_1", + "id_from":"Element_6_1_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + } + }, + { + "type":"select", + "name":"ptr_type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"Element_0_1_2", + "id_from":"Element_0_1_2_from", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_installation", + "ptr_type", + "id_controle" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_pretraitement-form", + "title":"ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_INSERT", + "input_size":"xxs", + "initEvent": "initAncPretraitementForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":6, + "id":"num_dossier_43_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"num_dossier_43_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":6, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Description", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_type", + "label":"Type de prétraitement", + "required":true, + "nb_cols":3, + "id":"ptr_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_3_1_from" + }, + { + "type":"editable_select", + "name":"ptr_volume", + "label":"Volume (en litres)", + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_volume_4_1_from" + }, + { + "type":"select", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_marque_5_1_from" + }, + { + "type":"select", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_materiau_6_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_pose_7_1_from" + }, + { + "type":"select", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_adapte_8_1_from" + }, + { + "type":"select", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé", + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_conforme_projet_9_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_renforce_11_1_from" + }, + { + "type":"select", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_verif_mise_en_eau_12_1_from" + }, + { + "type":"select", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_eau_13_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_distance_18_1_from" + }, + { + "type":"select", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose en terrain hydrometrique ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_hydrom_19_1_from" + }, + { + "type":"select", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_dalle_20_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_renfor", + "label":"Si remblais important, ouvrage renforcé?", + "required":false, + "nb_cols":4, + "id":"ptr_im_renfor_21_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_renfor_21_1_from" + }, + { + "type":"select", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_puit_22_1_from" + }, + { + "type":"select", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_fixation_23_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_acces_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Entretien", + "nb_cols":12, + "id":"Element_2_17_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_degrad_25_1_from" + }, + { + "type":"select", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_real_26_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Vidange", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"select", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_justi_28_1_from" + }, + { + "type":"select", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + }, + "id_from":"ptr_vi_entr_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"select", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_dest_31_1_from" + }, + { + "type":"integer", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"ptr_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_pose", + "ptr_adapte", + "ptr_conforme_projet", + "ptr_type_eau", + "ptr_reglementaire", + "ptr_destination", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_dalle", + "ptr_im_renfor", + "ptr_im_puit", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "id_installation", + "insert_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "ptr_renforce", + "ptr_verif_mise_en_eau" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_pretraitement-form", + "title":"ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_UPDATE", + "input_size":"xxs", + "initEvent": "initAncPretraitementForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_pretraitement", + "label":"ID", + "nb_cols":4, + "id":"id_pretraitement_1_1" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_42_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_42_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Description", + "nb_cols":12, + "id":"Element_4_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_type", + "label":"Type de prétraitement", + "required":true, + "nb_cols":3, + "id":"ptr_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_3_1_from" + }, + { + "type":"editable_select", + "name":"ptr_volume", + "label":"Volume (en litres)", + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_volume_4_1_from" + }, + { + "type":"select", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_marque_5_1_from" + }, + { + "type":"select", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_materiau_6_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_pose_7_1_from" + }, + { + "type":"select", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_adapte_8_1_from" + }, + { + "type":"select", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé", + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_conforme_projet_9_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_renforce_11_1_from" + }, + { + "type":"select", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_verif_mise_en_eau_12_1_from" + }, + { + "type":"select", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_eau_13_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Implantation", + "nb_cols":12, + "id":"Element_5_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_distance_18_1_from" + }, + { + "type":"select", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose en terrain hydrometrique ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_hydrom_19_1_from" + }, + { + "type":"select", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_dalle_20_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_renfor", + "label":"Si remblais important, ouvrage renforcé?", + "required":false, + "nb_cols":4, + "id":"ptr_im_renfor_21_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_renfor_21_1_from" + }, + { + "type":"select", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_puit_22_1_from" + }, + { + "type":"select", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_fixation_23_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_acces_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Entretien", + "nb_cols":12, + "id":"Element_6_13_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_degrad_25_1_from" + }, + { + "type":"select", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_real_26_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Vidange", + "nb_cols":12, + "id":"Element_0_15_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"select", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_justi_28_1_from" + }, + { + "type":"select", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + }, + "id_from":"ptr_vi_entr_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"select", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_dest_31_1_from" + }, + { + "type":"integer", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"ptr_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Suivi", + "nb_cols":12, + "id":"Element_1_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_pretraitement", + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_pose", + "ptr_adapte", + "ptr_conforme_projet", + "ptr_type_eau", + "ptr_reglementaire", + "ptr_destination", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_dalle", + "ptr_im_renfor", + "ptr_im_puit", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "maj", + "maj_date", + "create", + "create_date", + "id_installation", + "update_button", + "Element_4", + "Element_5", + "Element_6", + "Element_0", + "Element_1", + "Element_2", + "ptr_renforce", + "ptr_verif_mise_en_eau" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_volume", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_volume"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_materiau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_materiau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_pose", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_pose"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_adapte", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_adapte"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_conforme_projet", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_conforme_projet"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_dalle_repartition", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_dalle_repartition"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_renforce", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_renforce"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_verif_mise_en_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_verif_mise_en_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_type_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_type_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_reglementaire", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_reglementaire"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_distance", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_distance"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_hydrom", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_hydrom"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_dalle", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_dalle"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_renfor", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_renfor"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_puit", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_puit"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_fixation", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_fixation"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_acces", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_acces"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_et_degrad", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_et_degrad"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_et_real", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_et_real"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_justi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_vi_justi"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_entr", + "description":"", + "parameters":{ + "filter":{"vidangeur": true}, + "schema":"s_anc", + "table":"param_entreprise" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_justi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_vi_dest"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_marque", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_marque"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + } + } +} \ No newline at end of file diff --git a/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_traitement.json b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_traitement.json new file mode 100755 index 0000000000000000000000000000000000000000..ca350ea373b0755fcf51918f2e54ef586a8e1a28 --- /dev/null +++ b/src/module_anc/module/forms/anc_saisie/anc_saisie_anc_traitement.json @@ -0,0 +1,3816 @@ +{ + "display":{ + "name":"anc_saisie_anc_traitement-form", + "title":"ANC_SAISIE_ANC_TRAITEMENT_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_anc_traitement", + "label":"Identifiant", + "nb_cols":4, + "id":"Element_6_1_2" + }, + { + "type":"label", + "name":"id_anc_controle", + "label":"Identifiant de contrôle", + "nb_cols":4, + "id":"Element_0_1_1" + }, + { + "type":"label", + "name":"tra_type", + "label":"Type de traitement", + "nb_cols":4, + "id":"Element_0_1_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_nb", + "label":"Nombre de tranchées", + "nb_cols":4, + "id":"Element_1_3_1" + }, + { + "type":"label", + "name":"tra_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"label", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"label", + "name":"tra_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"label", + "name":"tra_surf", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"label", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "nb_cols":4, + "id":"Element_1_4_3" + }, + { + "type":"label", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"label", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"Element_1_5_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_hauteur", + "label":"Hauteur", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "nb_cols":6, + "id":"Element_2_7_1" + }, + { + "type":"label", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "nb_cols":6, + "id":"Element_2_7_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "nb_cols":6, + "id":"Element_2_8_1" + }, + { + "type":"label", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "nb_cols":6, + "id":"Element_2_8_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1" + }, + { + "type":"label", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2" + }, + { + "type":"label", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_1" + }, + { + "type":"label", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1" + }, + { + "type":"label", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme aux filières d'assainissement non collectif", + "nb_cols":8, + "id":"Element_3_11_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3" + }, + { + "type":"label", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1" + }, + { + "type":"label", + "name":"tra_vm_ht_terre_veget", + "label":"Hauteur de terre vegetale de 20 cm au-dessus des drains", + "nb_cols":4, + "id":"Element_3_12_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1" + }, + { + "type":"label", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3" + }, + { + "type":"label", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1" + }, + { + "type":"label", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_4_16_2" + }, + { + "type":"label", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "nb_cols":4, + "id":"Element_4_16_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "nb_cols":4, + "id":"Element_6_19_1" + }, + { + "type":"label", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2" + }, + { + "type":"label", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2" + }, + { + "type":"label", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "nb_cols":4, + "id":"Element_6_22_1" + }, + { + "type":"label", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2" + }, + { + "type":"label", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"tra_commentaire", + "label":"Commentaires", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"tra_commentaire_17_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Suivi", + "nb_cols":12, + "id":"Element_6_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"Element_0_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"Element_0_3_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"Element_0_3_2" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"Element_0_3_3" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "display_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_hab", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_ht_terre_veget", + "tra_vm_tuy_perf", + "tra_vm_bon_mat", + "tra_vm_sab_ep", + "tra_vm_sab_qual", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "Element_0", + "Element_6", + "Element_7", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "tra_vm_geomembrane", + "tra_commentaire" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_traitement-form", + "title":"ANC_SAISIE_ANC_TRAITEMENT_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant de contrôle", + "nb_cols":4, + "id":"Element_0_1_2", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_0_1_2_from" + }, + { + "type":"select", + "name":"tra_type", + "label":"Type de traitement", + "required":false, + "nb_cols":4, + "id":"Element_0_1_3", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_0_1_3_from" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_installation", + "id_controle", + "tra_type" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_traitement-form", + "title":"ANC_SAISIE_ANC_TRAITEMENT_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + }, + { + "type":"select", + "name":"tra_type", + "label":"Type de traitement", + "required":true, + "nb_cols":4, + "id":"Element_0_1_2", + "id_from":"Element_0_1_2_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_nb", + "label":"Nombre de tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_3_1", + "id_from":"Element_1_3_1_from", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_long", + "label":"Longueur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"number", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"number", + "name":"tra_larg", + "label":"Largeur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"number", + "name":"tra_surf", + "label":"Surface (en m²)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"number", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_4_3", + "id_from":"Element_1_4_3_from", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"number", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"tra_hauteur", + "label":"Hauteur", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_1", + "id_from":"Element_2_7_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_2", + "id_from":"Element_2_7_2_from", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_1", + "id_from":"Element_2_8_1_from", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_2", + "id_from":"Element_2_8_2_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_1_from" + }, + { + "type":"select", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_2_from" + }, + { + "type":"select", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_0", + "datasource":{ + "datasource_id":"datasource_41", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_0_from" + }, + { + "type":"select", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_1_from" + }, + { + "type":"select", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme aux filières d'assainissement non collectif", + "nb_cols":8, + "id":"Element_3_11_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_2_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_3_from" + }, + { + "type":"select", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_1_from" + }, + { + "type":"select", + "name":"tra_vm_ht_terre_veget", + "label":"Hauteur de terre vegetale de 20 cm au-dessus des drains", + "nb_cols":4, + "id":"Element_3_12_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "id_from":"Element_3_12_2_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_1_from" + }, + { + "type":"select", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_3_from" + }, + { + "type":"select", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_16_1_from" + }, + { + "type":"select", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "required":false, + "nb_cols":4, + "id":"Element_4_16_2", + "id_from":"Element_4_16_2_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "required":false, + "nb_cols":4, + "id":"Element_4_16_3", + "id_from":"Element_4_16_3_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "required":false, + "nb_cols":4, + "id":"Element_6_19_1", + "id_from":"Element_6_19_1_from", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_2_from" + }, + { + "type":"select", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_2_from" + }, + { + "type":"select", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_20_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "required":false, + "nb_cols":4, + "id":"Element_6_22_1", + "id_from":"Element_6_22_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_7_22_2_from" + }, + { + "type":"select", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_8_22_3_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"tra_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"tra_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncTraitementForm()", + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "insert_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_hab", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_ht_terre_veget", + "tra_vm_tuy_perf", + "tra_vm_bon_mat", + "tra_vm_sab_ep", + "tra_vm_sab_qual", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "Element_0", + "Element_7", + "tra_vm_geomembrane", + "tra_commentaire" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_traitement-form", + "title":"ANC_SAISIE_ANC_TRAITEMENT_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_traitement", + "label":"ID", + "nb_cols":3, + "id":"Element_6_1_2" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":3, + "id":"Element_6_1_2", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_6_1_2_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant de contrôle", + "nb_cols":3, + "id":"Element_0_1_1", + "required":true, + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"tra_type", + "label":"Type de traitement", + "required":true, + "nb_cols":3, + "id":"Element_0_1_2", + "id_from":"Element_0_1_2_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_nb", + "label":"Nombre de tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_3_1", + "id_from":"Element_1_3_1_from", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_long", + "label":"Longueur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"number", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"number", + "name":"tra_larg", + "label":"Largeur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"number", + "name":"tra_surf", + "label":"Surface (en m²)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"number", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_4_3", + "id_from":"Element_1_4_3_from", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"number", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"tra_hauteur", + "label":"Hauteur", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_1", + "id_from":"Element_2_7_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_2", + "id_from":"Element_2_7_2_from", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_1", + "id_from":"Element_2_8_1_from", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_2", + "id_from":"Element_2_8_2_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_1_from" + }, + { + "type":"select", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_2_from" + }, + { + "type":"select", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_0", + "datasource":{ + "datasource_id":"datasource_41", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_0_from" + }, + { + "type":"select", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_1_from" + }, + { + "type":"select", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme aux filières d'assainissement non collectif", + "nb_cols":8, + "id":"Element_3_11_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_2_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_3_from" + }, + { + "type":"select", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_1_from" + }, + { + "type":"select", + "name":"tra_vm_ht_terre_veget", + "label":"Hauteur de terre vegetale de 20 cm au-dessus des drains", + "nb_cols":4, + "id":"Element_3_12_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "id_from":"Element_3_12_2_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_1_from" + }, + { + "type":"select", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_3_from" + }, + { + "type":"select", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_16_1_from" + }, + { + "type":"select", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "required":false, + "nb_cols":4, + "id":"Element_4_16_2", + "id_from":"Element_4_16_2_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "required":false, + "nb_cols":4, + "id":"Element_4_16_3", + "id_from":"Element_4_16_3_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "required":false, + "nb_cols":4, + "id":"Element_6_19_1", + "id_from":"Element_6_19_1_from", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_2_from" + }, + { + "type":"select", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_2_from" + }, + { + "type":"select", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_20_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "required":false, + "nb_cols":4, + "id":"Element_6_22_1", + "id_from":"Element_6_22_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_7_22_2_from" + }, + { + "type":"select", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_8_22_3_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"tra_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"tra_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Suivi", + "nb_cols":12, + "id":"Element_6_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"Element_0_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"Element_0_3_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"Element_0_3_2" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"Element_0_3_3" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncTraitementForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "update_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_hab", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_ht_terre_veget", + "tra_vm_tuy_perf", + "tra_vm_bon_mat", + "tra_vm_sab_ep", + "tra_vm_sab_qual", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "Element_0", + "Element_6", + "Element_7", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "tra_vm_geomembrane", + "tra_commentaire" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_nb", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_nb"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_hab", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_hab"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_lim_parc", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_lim_parc"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_veget", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_veget"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_puit", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_puit"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_ht_terre_veget", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_ht_terre_veget"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_affl", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_affl"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_equi", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_equi"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_mat", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_mat"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_mat", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_mat"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_racine", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_racine"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_humidite", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_humidite"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_imper", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_imper"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geogrille", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geogrille"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_grav_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_grav_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_grav_ep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_grav_ep"}, + "database":"", + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geo_text", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geo_text"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_ht_terre_veget", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_ht_terre_veget"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_tuy_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_tuy_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_bon_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_bon_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_sab_ep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_sab_ep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_sab_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_sab_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + }, + "datasource_27":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_27" + }, + "datasource_28":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_equi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_equi"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_28" + }, + "datasource_29":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_29" + }, + "datasource_30":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_30" + }, + "datasource_31":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_31" + }, + "datasource_32":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_32" + }, + "datasource_33":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_epand", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_epand"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_33" + }, + "datasource_34":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_34" + }, + "datasource_35":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_35" + }, + "datasource_36":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_36" + }, + "datasource_37":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_37" + }, + "datasource_38":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_38" + }, + "datasource_39":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_40":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_largeur", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_largeur"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_40" + }, + "datasource_41":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geomembrane", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geomembrane"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_41" + } + } +} diff --git a/src/module_anc/module/javascript/anc_saisie_map.js b/src/module_anc/module/javascript/anc_saisie_map.js new file mode 100755 index 0000000000000000000000000000000000000000..a18ebf68d47222b27c702f5db6b7b92dfd39e0f0 --- /dev/null +++ b/src/module_anc/module/javascript/anc_saisie_map.js @@ -0,0 +1,396 @@ +/* global vitisApp, goog, angular, bootbox, oVFB */ + +'use strict'; +goog.provide('vmap.anc.anc_saisie_map'); +vitisApp.on('appMainDrtvLoaded', function () { + + var $q = angular.element(vitisApp.appMainDrtv).injector().get(['$q']); + var $log = angular.element(vitisApp.appMainDrtv).injector().get(['$log']); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(['envSrvc']); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(['propertiesSrvc']); + + /** + * Initialise la carte du menu installation > suivi + */ + angular.element(vitisApp.appMainDrtv).scope()['initAncInstallationSuiviFormMap'] = function () { + $log.info("initAncInstallationSuiviFormMap"); + + var this_ = this; + var scope = this; + + // Remplace si besoin l'identifiant et le type de carte à utiliser + var sMapId = this['getAncFormMapId']('installation'); + this['setFormMapTreeByMapId'](sMapId); + + // Résultat de la propertie anc.installation.zoom_on_parcelle + var bZoomOnParcelle = this['getAncZoomOnParcellePropertie'](propertiesSrvc, 'installation'); + + // Récupère l'identifiant de la parcelle correspondante + var sIdPar = this['getAncInstallSuiviIdPar'](scope); + + // Récupère la géométrie de l'installation + var sGeom = this['ancMapGetFormGeom'](scope, 'installation'); + + if (!goog.isDefAndNotNull(sGeom)) { + // Zoom la carte sur la parcelle + if (goog.isDefAndNotNull(sIdPar) && bZoomOnParcelle === true) { + this['ancMapZoomOnParcelle'](sIdPar, 'installation'); + } + } + } + + /** + * Initialise la carte du menu controle > schema + */ + angular.element(vitisApp.appMainDrtv).scope()['initAncControleSchemaFormMap'] = function () { + $log.info("initAncInstallationSuiviFormMap"); + + var this_ = this; + var scope = angular.element("form[name='" + envSrvc["oFormDefinition"][envSrvc["sFormDefinitionName"]]["name"]).scope(); + + // Remplace si besoin l'identifiant et le type de carte à utiliser + var sMapId = this['getAncFormMapId']('controle'); + this['setFormMapTreeByMapId'](sMapId); + + // Résultat de la propertie anc.installation.zoom_on_parcelle + var bZoomOnParcelle = this['getAncZoomOnParcellePropertie'](propertiesSrvc, 'controle'); + + // Récupère la géométrie de l'installation + var sGeom = this['ancMapGetFormGeom'](scope, 'controle'); + + // Récupère l'identifiant de la parcelle correspondante + var sIdPar = this['getAncControleSchemaIdPar'](scope).then(function(sIdPar){ + + // Zoom la carte sur la parcelle + if (!goog.isDefAndNotNull(sGeom)) { + if (goog.isDefAndNotNull(sIdPar) && bZoomOnParcelle === true) { + this_['ancMapZoomOnParcelle'](sIdPar, 'controle'); + } + } + }); + } + + /** + * Remplace la carte OSM si une carte est fournie sur properties.anc.installation..map_id + * @param {string} sMapId map id + */ + angular.element(vitisApp.appMainDrtv).scope()['setFormMapTreeByMapId'] = function (sMapId) { + $log.info("initAncInstallationSuiviFormMapTree"); + + var formScope = angular.element("form[name='" + envSrvc["oFormDefinition"][envSrvc["sFormDefinitionName"]]["name"]).scope(); + + var oForm; + if (goog.isDefAndNotNull(formScope)) { + if (goog.isDefAndNotNull(formScope['oFormDefinition'])) { + if (goog.isDefAndNotNull(formScope['oFormDefinition'][envSrvc["sFormDefinitionName"]])) { + oForm = formScope['oFormDefinition'][envSrvc["sFormDefinitionName"]]; + } + } + } + if (goog.isDefAndNotNull(oForm) && goog.isDefAndNotNull(sMapId)) { + if (goog.isArray(oForm['rows'])) { + for (var i = 0; i < oForm['rows'].length; i++) { + if (goog.isArray(oForm['rows'][i]['fields'])) { + for (var ii = 0; ii < oForm['rows'][i]['fields'].length; ii++) { + if (goog.isObject(oForm['rows'][i]['fields'][ii]['map_options'])) { + if(oForm['rows'][i]['fields'][ii]['type'] === 'map_osm'){ + oForm['rows'][i]['fields'][ii]['type'] = 'map_vmap'; + } + oForm['rows'][i]['fields'][ii]['map_options']['type'] = 'vmap'; + oForm['rows'][i]['fields'][ii]['map_options']['map_id'] = sMapId; + } + } + } + } + } + } + } + + /** + * Récupère l'identifiant de la cate fourni sur properties.anc.installation.map_id + * + * @return {string|undefined} map_id + */ + angular.element(vitisApp.appMainDrtv).scope()['getAncFormMapId'] = function (sObject) { + + var sMapId; + if (goog.isDefAndNotNull(propertiesSrvc)) { + if (goog.isDefAndNotNull(propertiesSrvc["anc"])) { + if (goog.isDefAndNotNull(propertiesSrvc["anc"][sObject])) { + if (goog.isDefAndNotNull(propertiesSrvc["anc"][sObject]["map_id"])) { + if (propertiesSrvc["anc"][sObject]["map_id"] !== false) { + sMapId = propertiesSrvc["anc"][sObject]["map_id"]; + } + } + } + } + } + return sMapId; + } + + /** + * Get propertie anc.installation.zoom_on_parcelle + * + * @param {object} oProperties Properties + * @return {boolean} anc.installation.zoom_on_parcelle value + */ + angular.element(vitisApp.appMainDrtv).scope()['getAncZoomOnParcellePropertie'] = function(oProperties, sObject){ + $log.info('getAncZoomOnParcellePropertie'); + + var bZoomOnParcelle = false; + if (goog.isDefAndNotNull(oProperties)) { + if (goog.isDefAndNotNull(oProperties["anc"])) { + if (goog.isDefAndNotNull(oProperties["anc"][sObject])) { + if (goog.isDefAndNotNull(oProperties["anc"][sObject]["zoom_on_parcelle"])) { + if (oProperties["anc"][sObject]["zoom_on_parcelle"] === true) { + bZoomOnParcelle = true; + } + } + } + } + } + return bZoomOnParcelle; + } + + /** + * Récupère l'id_par correspondant à l'installation + * + * @param {object} scope description + * @return {string|undefined} id_par de la parcelle correspondante + */ + angular.element(vitisApp.appMainDrtv).scope()['getAncInstallSuiviIdPar'] = function(scope){ + $log.info('getAncInstallSuiviIdPar'); + + var sParcelle; + if (goog.isDefAndNotNull(scope['oFormValues'])) { + if (goog.isDefAndNotNull(scope['sFormDefinitionName'])) { + if (goog.isDefAndNotNull(scope['oFormValues'][scope['sFormDefinitionName']])) { + if (goog.isDefAndNotNull(scope['oFormValues'][scope['sFormDefinitionName']]['id_parc'])) { + sParcelle = scope['oFormValues'][scope['sFormDefinitionName']]['id_parc']; + } + } + } + } + + return sParcelle; + } + + /** + * Récupère l'id_par correspondant à l'installation dans une promesse + * + * @param {object} scope description + * @return {promise} + */ + angular.element(vitisApp.appMainDrtv).scope()['getAncControleSchemaIdPar'] = function(scope){ + $log.info('getAncControleSchemaIdPar'); + + var deferred = $q.defer(); + + var sInstall = this['getAncControleSchemaIdInstall'](scope); + + // Requête Ajax pour récupérer la définition complète de l'install + if (!goog.isDefAndNotNull(sInstall) || sInstall == '') { + console.error('id_installation non valide'); + deferred.reject(); + } else { + // Récupère la liste des rapports disponibles + ajaxRequest({ + 'method': 'GET', + 'url': propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + '/anc/installations/' + sInstall, + 'headers': { + 'Accept': 'application/x-vm-json' + }, + 'success': function (response) { + if (!goog.isDefAndNotNull(response['data'])) { + console.error('response.data undefined: ', response); + deferred.reject(); + return 0; + } + if (!goog.isDefAndNotNull(response['data']['data'])) { + console.error('Aucune installation disponible pour ' + sInstall); + deferred.reject(); + return 0; + } + if (!goog.isDefAndNotNull(response['data']['data'][0])) { + console.error('Aucune installation disponible pour ' + sInstall); + deferred.reject(); + return 0; + } + if (!goog.isDefAndNotNull(response['data']['data'][0]['id_parc'])) { + console.error('Aucune parcelle disponible pour ' + sInstall); + deferred.reject(); + return 0; + } + var sParcelle = response['data']['data'][0]['id_parc']; + deferred.resolve(sParcelle); + } + }); + } + + return deferred.promise; + } + + /** + * Récupère l'id_install correspondant au contrôle + * + * @param {object} scope description + * @return {string|undefined} id_install de la parcelle correspondante + */ + angular.element(vitisApp.appMainDrtv).scope()['getAncControleSchemaIdInstall'] = function(scope){ + $log.info('getAncControleSchemaIdInstall'); + + var sInstall; + if (goog.isDefAndNotNull(scope['oFormValues'])) { + if (goog.isDefAndNotNull(scope['sFormDefinitionName'])) { + if (goog.isDefAndNotNull(scope['oFormValues'][scope['sFormDefinitionName']])) { + if (goog.isDefAndNotNull(scope['oFormValues'][scope['sFormDefinitionName']]['id_installation'])) { + sInstall = scope['oFormValues'][scope['sFormDefinitionName']]['id_installation']; + } + } + } + } + + return sInstall; + } + + /** + * Récupère la geom correspondant à l'installation + * + * @param {object} scope description + * @return {string|undefined} + */ + angular.element(vitisApp.appMainDrtv).scope()['ancMapGetFormGeom'] = function(scope, sObject){ + $log.info('ancMapGetFormGeom'); + + var sGeom, sField; + + if (sObject === 'installation') { + sField = 'geom'; + } + if (sObject === 'controle') { + sField = 'composants'; + } + + if (goog.isDefAndNotNull(sField)) { + if (goog.isDefAndNotNull(scope['oFormValues'])) { + if (goog.isDefAndNotNull(scope['sFormDefinitionName'])) { + if (goog.isDefAndNotNull(scope['oFormValues'][scope['sFormDefinitionName']])) { + if (goog.isDefAndNotNull(scope['oFormValues'][scope['sFormDefinitionName']][sField])) { + sGeom = scope['oFormValues'][scope['sFormDefinitionName']][sField]; + } + } + } + } + } + + return sGeom; + } + + /** + * Requeête Ajax pour récupérer la définition de la parcelle + * + * @param {string} sIdPar id_par de la parcelle + * @return {promise} + */ + angular.element(vitisApp.appMainDrtv).scope()['ancMapGetParcelleDef'] = function(sIdPar){ + $log.info('ancMapGetParcelleDef'); + + var deferred = $q.defer(); + + if (!goog.isDefAndNotNull(sIdPar) || sIdPar == '') { + console.error('id_par non valide'); + deferred.reject(); + } else { + + // Récupère la liste des rapports disponibles + ajaxRequest({ + 'method': 'GET', + 'url': propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + '/cadastreV2/parcelles/' + sIdPar, + 'headers': { + 'Accept': 'application/x-vm-json' + }, + 'success': function (response) { + if (!goog.isDefAndNotNull(response['data'])) { + console.error('response.data undefined: ', response); + deferred.reject(); + return 0; + } + if (!goog.isDefAndNotNull(response['data']['data'])) { + console.error('Aucune parcelle disponible pour ' + sIdPar); + deferred.reject(); + return 0; + } + if (!goog.isDefAndNotNull(response['data']['data'][0])) { + console.error('Aucune parcelle disponible pour ' + sIdPar); + deferred.reject(); + return 0; + } + if (!goog.isDefAndNotNull(response['data']['data'][0]['id_par'])) { + console.error('Aucune parcelle disponible pour ' + sIdPar); + deferred.reject(); + return 0; + } + var oParcelle = response['data']['data'][0]; + deferred.resolve(oParcelle); + } + }); + } + + return deferred.promise; + } + + /** + * Met à jour l'étendue de la carte sur des features + * + * @param {object} oMap carte + * @param {array} aFeatures features + */ + angular.element(vitisApp.appMainDrtv).scope()['ancMapUpdateOlMapExtent'] = function(oMap, aFeatures){ + $log.info('ancMapUpdateOlMapExtent'); + + if (goog.isDefAndNotNull(aFeatures[0])) { + var featureExtent = aFeatures[0].getGeometry().getExtent(); + oMap.MapObject.getView().fit(featureExtent); + if (aFeatures[0].getGeometry().getType() === 'Point') { + oMap.MapObject.getView().setZoom(15); + } + } + } + + /** + * Zoom la carte sur la parcelle correspondante + * + * @param {string} sIdPar id_par de la parcelle + * @return {promise} + */ + angular.element(vitisApp.appMainDrtv).scope()['ancMapZoomOnParcelle'] = function(sIdPar, sObject){ + $log.info('ancMapZoomOnParcelle : ' + sIdPar); + + var this_ = this; + var sMapElemId; + + if (sObject === 'installation') { + sMapElemId = 'anc_saisie_anc_installation_suivi_map'; + } else if (sObject === 'controle') { + sMapElemId = 'anc_saisie_anc_controle_schema_map'; + } + + if (goog.isDefAndNotNull(sIdPar) || sIdPar == '') { + this['ancMapGetParcelleDef'](sIdPar).then(function(oParcelle){ + setTimeout(function () { + var oMap = angular.element($('#' + sMapElemId)).scope()['oMap']; + var sGeom = oParcelle['geom']; + if (!goog.isDefAndNotNull(sGeom) || sGeom == '') { + console.error('parcelle ' + sIdPar + ' non valide'); + return null; + } + var aFeatures = oMap.getFeaturesByString(oParcelle['geom'], 'ewkt'); + this_['ancMapUpdateOlMapExtent'](oMap, aFeatures); + }, 2000); + }); + } else { + console.error('parcelle ' + sIdPar + ' non valide'); + } + } +}); diff --git a/src/module_anc/module/javascript/script_module.js b/src/module_anc/module/javascript/script_module.js new file mode 100755 index 0000000000000000000000000000000000000000..ce1ead57daef1310d952fb2eecf9f532f62301b4 --- /dev/null +++ b/src/module_anc/module/javascript/script_module.js @@ -0,0 +1,1530 @@ +/* global vitisApp, goog, angular, bootbox, oVFB */ + +'use strict'; +goog.provide('vmap.anc.script_module'); +goog.require('vmap.anc.anc_saisie_map'); +vitisApp.on('appMainDrtvLoaded', function () { + + /** + * initAncControlForm function. + * Traitements avant l'affichage du formulaire de la section "Dossier" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + // + $log.info("initAncControlForm"); + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = ["controle_type", "num_dossier", envSrvc["sMode"] + "_button"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + if (envSrvc["sMode"] == "search") { + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["controle_ss_type", "des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_classe_cbf", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "CONCEPTION": ["dep_date_depot", "dep_dossier_complet", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "REALISATION": ["des_date_control", "des_interval_control", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"] + }; + $rootScope["displayFormFields"](aFormFieldsToConcat); + } else { + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["id_controle", "id_installation", "controle_ss_type", "des_date_control", "des_interval_control", "des_pers_control", "des_agent_control", "des_refus_visite", "des_date_installation", "des_date_recommande", "des_numero_recommande", "des_reamenage_terrain", "des_reamenage_immeuble", "des_real_trvx", "des_anc_ss_accord", "des_collecte_ep", "des_sep_ep_eu", "des_eu_nb_sortie", "des_eu_tes_regards", "des_eu_pente_ecoul", "des_eu_regars_acces", "des_eu_alteration", "des_eu_ecoulement", "des_eu_depot_regard", "des_commentaire", "Element_0", "Element_4", "Element_5", "Element_7", "Element_8"], + "CONCEPTION": ["id_controle", "id_installation", "dep_date_depot", "des_date_control", "dep_liste_piece", "dep_dossier_complet", "dep_date_envoi_incomplet", "des_nature_projet", "des_concepteur", "car_surface_dispo_m2", "car_permea", "car_valeur_permea", "car_hydromorphie", "car_prof_app", "car_nappe_fond", "car_terrain_innondable", "car_roche_sol", "car_dist_hab", "car_dist_lim_par", "car_dist_veget", "car_dist_puit", "des_collecte_ep", "des_sep_ep_eu", "Element_0", "Element_2", "Element_3", "Element_5"], + "REALISATION": ["id_controle", "id_installation", "des_date_control", "des_interval_control", "des_pers_control", "des_agent_control", "des_date_installation", "des_collecte_ep", "des_sep_ep_eu", "des_eu_nb_sortie", "des_eu_tes_regards", "des_eu_pente_ecoul", "Element_0", "Element_5", "Element_8", "des_installateur", "element_7", "des_commentaire"] + }; + if (envSrvc["sMode"] == "insert") { + // Sélection auto. de l'installation de travail. + var oModeFilter = envSrvc["oSelectedObject"]["aModeFilter"]; + if (typeof (oModeFilter) == "object") + envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["id_installation"]["selectedOption"]["value"] = oModeFilter["operators"][0]["value"]; + // + $rootScope["displayFormFields"](aFormFieldsToConcat); + } else { + if (envSrvc["sMode"] == "update") { + var sControleType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]; + if (goog.isDefAndNotNull(envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]["selectedOption"])) { + if (goog.isDefAndNotNull(envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]["selectedOption"]["value"])) { + sControleType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]["selectedOption"]["value"]; + } + } + aFormFieldsToDisplay = oFormFieldsToDisplay[sControleType]; + } else { + aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + } + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + } + // Affiche et cache les champs de form. suivant le type de contrôle. + var oControleType = formSrvc["getFormElementDefinition"]("controle_type", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oControleType["id"]).addEventListener("change", function () { + if (typeof (oFormFieldsToDisplay[this.value]) != "undefined") + aFormFieldsToDisplay = oFormFieldsToDisplay[this.value]; + aFormFieldsToDisplay = aFormFieldsToDisplay.concat(aFormFieldsToConcat); + $rootScope["displayFormFields"](aFormFieldsToDisplay); + }); + // Conversion des dates au format Fr si elles ni sont pas déjà . + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["des_date_control"]) && !moment(oFormValues["des_date_control"], ['L'], true).isValid()) + oFormValues["des_date_control"] = moment(oFormValues["des_date_control"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["des_date_installation"]) && !moment(oFormValues["des_date_installation"], ['L'], true).isValid()) + oFormValues["des_date_installation"] = moment(oFormValues["des_date_installation"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["des_date_recommande"]) && !moment(oFormValues["des_date_recommande"], ['L'], true).isValid()) + oFormValues["des_date_recommande"] = moment(oFormValues["des_date_recommande"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["dep_date_depot"]) && !moment(oFormValues["dep_date_depot"], ['L'], true).isValid()) + oFormValues["dep_date_depot"] = moment(oFormValues["dep_date_depot"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["dep_date_envoi_incomplet"]) && !moment(oFormValues["dep_date_envoi_incomplet"], ['L'], true).isValid()) + oFormValues["dep_date_envoi_incomplet"] = moment(oFormValues["dep_date_envoi_incomplet"]).format('L'); + }); + }; + + /** + * displayFormFields function. + * Affiche la liste des champs de formulaire passée en paramètre et cache les autres. + * @param {array} aFormFieldsToDisplay Tableau de champs de formulaire à afficher. + **/ + angular.element(vitisApp.appMainDrtv).scope()["displayFormFields"] = function (aFormFieldsToDisplay) { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var externFunctionSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["externFunctionSrvc"]); + // + $log.info("displayFormFields"); + // + var aFormFields = formSrvc["getAllFormElementDefinition"](envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + var i; + if (Array.isArray(aFormFields)) { + for (i = 0; i < aFormFields.length; i++) { + if (aFormFieldsToDisplay.indexOf(aFormFields[i]["name"]) == -1) + aFormFields[i]["visible"] = false; + else + aFormFields[i]["visible"] = true; + } + // Rafraîchit le formulaire. + var formScope = angular.element("form[name='" + envSrvc["oFormDefinition"][envSrvc["sFormDefinitionName"]]["name"]).scope(); + formScope.$broadcast('$$rebind::refresh'); + formScope.$applyAsync(); + // + externFunctionSrvc["resizeWin"](); + } + }; + + /** + * initAncInstallationForm function. + * Traitements avant l'affichage du formulaire de la section "Habitation" de l'onglet "Installation". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncInstallationForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncInstallationForm"); + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + // Affiche l'id de la parcelle sélectionnée dans le label 'Id Parcelle'. + if (envSrvc["sMode"] != "insert") + oFormValues["parcelle"] = oFormValues["id_parc"]; + // Attends la fin du chargement de tous les champs du formulaire. + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // + // Charge les données de la commune sélectionnée + var oIdParc = formSrvc["getFormElementDefinition"]("id_parc", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + var formScope = angular.element("form[name='" + envSrvc["oFormDefinition"][envSrvc["sFormDefinitionName"]]["name"]).scope(); + document.getElementById(oIdParc["id"]).addEventListener("change", function () { + var sIdParc = this.value; + // Charge les données de la parcelle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/cadastreV2/fichedescriptiveparcelle/" + sIdParc, + "scope": $rootScope, + "success": function (response) { + if (response["data"]["status"] != 0) { + // Label de l'id de la parcelle. + oFormValues["parcelle"] = sIdParc; + // Trim() des données de la parcelle. + var oParcelle = response["data"]["data"]; + var aKeys = Object.keys(oParcelle); + for (var i = 0; i < aKeys.length; i++) { + if (typeof (oParcelle[aKeys[i]]) == "string") + oParcelle[aKeys[i]] = oParcelle[aKeys[i]].trim(); + } + oFormValues["parc_sup"] = oParcelle["sup_fiscale"]; + oFormValues["parc_adresse"] = oParcelle["DVOILIB"]; + //oFormValues["code_postal"] = oParcelle["ID_COM"]; + if (goog.isDefAndNotNull(oParcelle["commune"]) && oParcelle["commune"] != "") + oFormValues["parc_commune"] = oParcelle["commune"]; + else + oFormValues["parc_commune"] = oFormValues["id_com"]["selectedOption"]["label"]; + + // Charge le code postal de la commune. + if (goog.isDefAndNotNull(propertiesSrvc["anc"]["code_postal"])) { + var sCodePostalSchema = propertiesSrvc["anc"]["code_postal"]["schema"]; + var sCodePostalTable = propertiesSrvc["anc"]["code_postal"]["table"]; + var sCodePostalColumn = propertiesSrvc["anc"]["code_postal"]["column"]; + if ((goog.isDefAndNotNull(sCodePostalSchema) && sCodePostalSchema != "") && (goog.isDefAndNotNull(sCodePostalTable) && sCodePostalTable != "") && (goog.isDefAndNotNull(sCodePostalColumn) && sCodePostalColumn != "")) { + var oUrlParams = { + "schema": sCodePostalSchema, + "table": sCodePostalTable, + "filter": { + "relation": "AND", + "operators": [{ + "column": "id_com", + "compare_operator": "=", + "value": oFormValues["id_com"]["selectedOption"]["value"] + }] + }, + "attributs": sCodePostalColumn + }; + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/vitis/genericquerys/" + sCodePostalTable, + "params": oUrlParams, + "scope": $rootScope, + "success": function (response) { + if (response["data"]["status"] != 0) + oFormValues["code_postal"] = envSrvc["extractWebServiceData"]("genericquerys", response["data"])[0][sCodePostalColumn]; + } + }); + } + } + + // Charge les données du propriétaire de la parcelle. + var oUrlParams = { + "schema": "s_majic", + "table": "v_vmap_parcelle_proprietaire", + "filter": { + "relation": "AND", + "operators": [{ + "column": "id_par", + "compare_operator": "=", + "value": sIdParc + }] + }, + "attributs": "prop_titre|prop_nom_prenom|prop_adresse|prop_code_postal|prop_commune" + }; + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/vitis/genericquerys/v_vmap_parcelle_proprietaire", + "params": oUrlParams, + "scope": $rootScope, + "success": function (response) { + if (response["data"]["status"] != 0) { + var oProprioParcelle = envSrvc["extractWebServiceData"]("genericquerys", response["data"])[0]; + if (typeof (oProprioParcelle) == "object") { + // Trim() des données du propriétaire de la parcelle. + var aKeys = Object.keys(oProprioParcelle); + for (var i = 0; i < aKeys.length; i++) { + if (typeof (oProprioParcelle[aKeys[i]]) == "string") + oProprioParcelle[aKeys[i]] = oProprioParcelle[aKeys[i]].trim(); + } + oFormValues["prop_titre"] = oProprioParcelle["dqualp"]; + oFormValues["prop_nom_prenom"] = oProprioParcelle["ddenom"]; + oFormValues["prop_adresse"] = oProprioParcelle["dlign4"]; + oFormValues["prop_code_postal"] = oProprioParcelle["dlign6"].substr(0, oProprioParcelle["dlign6"].indexOf(" ")); + oFormValues["prop_commune"] = oProprioParcelle["dlign6"].substr(oProprioParcelle["dlign6"].indexOf(" ")); + + /* + // Charge les données du bâtiment de la parcelle. + var oUrlParams = { + "schema": "s_majic", + "table": "v_vmap_parcelle_proprietaire_bati", + "filter": { + "relation": "AND", + "operators": [{ + "column": "id_par", + "compare_operator": "=", + "value": sIdParc + }] + }, + }; + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/vitis/genericquerys/v_vmap_parcelle_proprietaire_bati", + "params": oUrlParams, + "scope": $rootScope, + "success": function(response) { + if (response["data"]["status"] != 0) { + } + var oBatiParcelle = envSrvc["extractWebServiceData"]("genericquerys", response["data"])[0]; + console.log(oBatiParcelle); + } + }); + */ + /* + // Charge les données du bâtiment de la parcelle. + oWebServiceBase = Restangular["one"](propertiesSrvc["services_alias"] + "/vitis", "genericquerys"); + var oUrlParams = { + "schema": "s_majic", + "table": "v_vmap_parcelle_proprietaire_bati", + "filter": { + "relation": "AND", + "operators": [{ + "column": "id_par", + "compare_operator": "=", + "value": sIdParc + }] + }, + }; + oWebServiceBase["customGET"]("v_vmap_parcelle_proprietaire_bati", oUrlParams).then(function (data) { + if (response["data"]["status"] != 0) { + var oBatiParcelle = envSrvc["extractWebServiceData"]("genericquerys", response["data"])[0]; + + oFormValues["bati_date_mutation"] = oBatiParcelle[""]; + + //oFormValues["cont_zone_autre"] = oParcelle[""]; + //oFormValues["cont_zone_urba"] = oParcelle[""]; + //oFormValues["cont_zone_anc"] = oParcelle[""]; + } else { + // + var oOptions = { + "className": "modal-danger" + }; + // Message d'erreur ? + if (response["data"]["errorMessage"] != null) + oOptions["message"] = response["data"]["errorMessage"]; + $rootScope["modalWindow"]("alert", "REQUEST_ERROR", oOptions); + } + }); + */ + } + } else { + // + var oOptions = { + "className": "modal-danger" + }; + // Message d'erreur ? + if (response["data"]["errorMessage"] != null) + oOptions["message"] = response["data"]["errorMessage"]; + $rootScope["modalWindow"]("alert", "REQUEST_ERROR", oOptions); + } + } + }); + } else { + // + var oOptions = { + "className": "modal-danger" + }; + // Message d'erreur ? + if (response["data"]["errorMessage"] != null) + oOptions["message"] = response["data"]["errorMessage"]; + $rootScope["modalWindow"]("alert", "REQUEST_ERROR", oOptions); + } + } + }); + + // + + //formScope.$broadcast('$$rebind::refresh'); + // + formScope.$apply(); + }); + }); + }; + + /** + * initAncInstallationSuiviForm function. + * Traitements avant l'affichage du formulaire de la section "Suivi" de l'onglet "Installation". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncInstallationSuiviForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + + $log.info("initAncInstallationSuiviForm"); + + // Initialise la carte + this['initAncInstallationSuiviFormMap'](); + + // Attend la fin du chargement de tous les champs du formulaire. + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (!moment(oFormValues["create_date"], ['L'], true).isValid()) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"]) && !moment(oFormValues["maj_date"], ['L'], true).isValid()) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + var formScope = angular.element("form[name='" + envSrvc["oFormDefinition"][envSrvc["sFormDefinitionName"]]["name"]).scope(); + formScope.$apply(); + }); + }; + + /** + * initAncPretraitementForm function. + * Traitements avant l'affichage du formulaire de la section "Dossier" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncPretraitementForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncPretraitementForm"); + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_pretraitement", "id_installation", "id_controle"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + if (envSrvc["sMode"] == "search") { + //oFormFieldsToDisplay = { + // "BON FONCTIONNEMENT": ["controle_ss_type", "des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_classe_cbf", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + // "CONCEPTION": ["dep_date_depot", "dep_dossier_complet", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + // "REALISATION": ["des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"] + //}; + //$rootScope["displayFormFields"](aFormFieldsToConcat); + } else { + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["tra_dist_hab", "ptr_im_puit", "ptr_adapte", "ptr_type_eau", "ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_cloison", "ptr_commentaire", "ptr_im_distance", "ptr_im_acces", "ptr_et_degrad", "ptr_et_real", "ptr_vi_date", "ptr_vi_justi", "ptr_vi_entr", "ptr_vi_bord", "ptr_vi_dest", "ptr_vi_perc", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_3", "Element_4"], + "CONCEPTION": ["ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_commentaire", "ptr_im_distance", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_4"], + "REALISATION": ["ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_commentaire", "ptr_im_distance", "ptr_im_hydrom", "maj", "maj_date", "create", "create_date", "Element_0", "Element_4", "ptr_pose", "ptr_adapte", "ptr_conforme_projet", "ptr_renforce", "ptr_verif_mise_en_eau", "ptr_type_eau", "ptr_im_dalle", "ptr_im_puit", "tra_dist_hab"] + }; + if (envSrvc["sMode"] == "insert") + $rootScope["displayFormFields"](aFormFieldsToConcat); + else { + aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + } + + // Affiche et cache les champs de form. suivant le type de contrôle. + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + }); + // Conversion des dates. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"]) && !moment(oFormValues["create_date"], ['L'], true).isValid()) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"]) && !moment(oFormValues["maj_date"], ['L'], true).isValid()) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["ptr_vi_date"]) && !moment(oFormValues["ptr_vi_date"], ['L'], true).isValid()) + oFormValues["ptr_vi_date"] = moment(oFormValues["ptr_vi_date"]).format('L'); + }; + + /** + * loadAncPretraitementsControl function. + * Chargement de la section "Prétraitement" de l'onglet "Contrôle". + */ + angular.element(vitisApp.appMainDrtv).scope()["loadAncPretraitementsControl"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $translate = angular.element(vitisApp.appMainDrtv).injector().get(["$translate"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("loadAncPretraitementsControl"); + // Sauve certaines données de la liste. + var sSortedBy = envSrvc["oSelectedObject"]["sorted_by"]; + var sSortedDir = envSrvc["oSelectedObject"]["sorted_dir"]; + var sEditColumn = envSrvc["oSelectedObject"]["edit_column"]; + var sShowColumn = envSrvc["oSelectedObject"]["show_column"]; + // "sIdField" pour les boutons du mode "update" et "display". + envSrvc["oSelectedObject"]["sIdField"] = "id_controle"; + // Colonne et sens de tri. + envSrvc["oSelectedObject"]["sorted_by"] = "id_pretraitement"; + envSrvc["oSelectedObject"]["sorted_dir"] = "ASC"; + envSrvc["oSelectedObject"]["edit_column"] = "editModalSectionForm"; + envSrvc["oSelectedObject"]["show_column"] = "showModalSectionForm"; + // Affiche la liste des prétraitements du contrôle. + $translate(["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT"]).then(function (oTranslations) { + // Paramètres de la liste + boutons. + var oGridOptions = { + "appHeader": true, + "appHeaderSearchForm": false, + "appGridTitle": oTranslations["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT"], + "appShowActions": true, + "appIdField": "id_pretraitement" + }; + // + $rootScope["loadSectionList"](oGridOptions); + }); + // Attends que les boutons du "header" soient ajoutés. + var clearListener = $rootScope.$on('workspaceListHeaderActionsAdded', function (event, oGridOptions) { + // Supprime le "listener". + clearListener(); + // Restaure les données originales de la liste. + envSrvc["oSelectedObject"]["sorted_by"] = sSortedBy; + envSrvc["oSelectedObject"]["sorted_dir"] = sSortedDir; + envSrvc["oSelectedObject"]["edit_column"] = sEditColumn; + envSrvc["oSelectedObject"]["show_column"] = sShowColumn; + // Boutons d'ajout et de suppression d'un traitement. + for (var i = 0; i < oGridOptions["appActions"].length; i++) { + if (oGridOptions["appActions"][i]["name"].indexOf("_add") != -1) + oGridOptions["appActions"][i]["event"] = "addModalSectionForm()"; + else if (oGridOptions["appActions"][i]["name"].indexOf("_delete") != -1) + oGridOptions["appActions"][i]["event"] = "DeleteSelection({'sIdField':'id_pretraitement'})"; + } + }); + }; + + /** + * initAncControlDryToiletsForm function. + * Traitements avant l'affichage du formulaire de la section "Dossier" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlDryToiletsForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncControlDryToiletsForm"); + // Attends la fin de l'affichage du formulaire. + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button"]; + var oFormFieldsToDisplay; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["ts_type_effluent", "ts_capacite_bac", "ts_nb_bac", "ts_coher_taille_util", "ts_aire_etanche", "ts_aire_abri", "ts_ventilation", "ts_cuve_etanche", "ts_val_comp", "ts_ruissel_ep", "ts_absence_nuisance", "ts_respect_regles", "ts_commentaires"], + "CONCEPTION": ["ts_type_effluent", "ts_capacite_bac", "ts_nb_bac", "ts_val_comp", "ts_commentaires"], + "REALISATION": ["ts_conforme", "ts_type_effluent", "ts_capacite_bac", "ts_nb_bac", "ts_aire_etanche", "ts_aire_abri", "ts_ventilation", "ts_cuve_etanche", "ts_val_comp", "ts_commentaires"] + }; + var aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + }); + }; + + /** + * initAncControlVentilationForm function. + * Traitements avant l'affichage du formulaire de la section "Ventilation" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlVentilationForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncControlVentilationForm"); + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button"]; + var oFormFieldsToDisplay; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["vt_primaire", "vt_secondaire", "vt_prim_loc", "vt_prim_ht", "vt_prim_type_extract", "vt_second_loc", "vt_second_ht", "vt_prim_diam", "vt_second_diam", "vt_second_type_extract", "vt_prim_type_materiau", "vt_second_type_materiau", "Element_0", "Element_1", "Element_2", "vt_commentaire"], + "CONCEPTION": ["vt_primaire", "emplacement_vt_secondaire"], + "REALISATION": ["vt_primaire", "vt_secondaire", "vt_prim_loc", "vt_prim_ht", "vt_prim_type_extract", "vt_second_loc", "vt_second_ht", "vt_prim_diam", "vt_second_diam", "vt_second_type_extract", "vt_prim_type_materiau", "vt_second_type_materiau", "Element_0", "Element_1", "Element_2", "vt_commentaire"] + }; + var aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + }); + }; + + /** + * loadAncTraitementsControl function. + * Chargement de la section "Prétraitement" de l'onglet "Contrôle". + */ + angular.element(vitisApp.appMainDrtv).scope()["loadAncTraitementsControl"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $translate = angular.element(vitisApp.appMainDrtv).injector().get(["$translate"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("loadAncTraitementsControl"); + // Sauve certaines données de la liste. + var sSortedBy = envSrvc["oSelectedObject"]["sorted_by"]; + var sSortedDir = envSrvc["oSelectedObject"]["sorted_dir"]; + var sEditColumn = envSrvc["oSelectedObject"]["edit_column"]; + var sShowColumn = envSrvc["oSelectedObject"]["show_column"]; + // Colonne et sens de tri. + envSrvc["oSelectedObject"]["sorted_by"] = "id_traitement"; + envSrvc["oSelectedObject"]["sorted_dir"] = "ASC"; + envSrvc["oSelectedObject"]["edit_column"] = "editModalSectionForm"; + envSrvc["oSelectedObject"]["show_column"] = "showModalSectionForm"; + // "sIdField" pour les boutons du mode "update" et "display". + envSrvc["oSelectedObject"]["sIdField"] = "id_controle"; + // Affiche la liste des prétraitements du contrôle. + $translate(["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT"]).then(function (oTranslations) { + // Paramètres de la liste + boutons. + var oGridOptions = { + "appHeader": true, + "appHeaderSearchForm": false, + "appGridTitle": oTranslations["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT"], + "appShowActions": true, + "appIdField": "id_traitement" + }; + // + $rootScope["loadSectionList"](oGridOptions); + }); + // Attends que les boutons du "header" soient ajoutés. + var clearListener = $rootScope.$on('workspaceListHeaderActionsAdded', function (event, oGridOptions) { + // Supprime le "listener". + clearListener(); + // Restaure les données originales de la liste. + envSrvc["oSelectedObject"]["sorted_by"] = sSortedBy; + envSrvc["oSelectedObject"]["sorted_dir"] = sSortedDir; + envSrvc["oSelectedObject"]["edit_column"] = sEditColumn; + envSrvc["oSelectedObject"]["show_column"] = sShowColumn; + // Boutons d'ajout et de suppression d'un traitement. + for (var i = 0; i < oGridOptions["appActions"].length; i++) { + if (oGridOptions["appActions"][i]["name"].indexOf("_add") != -1) + oGridOptions["appActions"][i]["event"] = "addModalSectionForm()"; + else if (oGridOptions["appActions"][i]["name"].indexOf("_delete") != -1) + oGridOptions["appActions"][i]["event"] = "DeleteSelection({'sIdField':'id_traitement'})"; + } + }); + }; + + /** + * initAncTraitementForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Traitement". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncTraitementForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncTraitementForm"); + // Attends la fin de l'affichage du formulaire. + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_traitement", "id_controle", "tra_type", "id_installation"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + var sControleType; + if (envSrvc["sMode"] == "search") { + /* + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["controle_ss_type", "des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_classe_cbf", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "CONCEPTION": ["dep_date_depot", "dep_dossier_complet", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "REALISATION": ["des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"] + }; + $rootScope["displayFormFields"](aFormFieldsToConcat); + */ + } else { + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["tra_dist_hab", "tra_dist_lim_parc", "tra_dist_veget", "tra_dist_puit", "tra_regrep_mat", "tra_regrep_affl", "tra_regrep_equi", "tra_regbl_mat", "tra_regbl_affl", "tra_regcol_mat", "tra_regcol_affl", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_3", "Element_4", "Element_5", "Element_6", "tra_commentaire"], + "CONCEPTION": ["maj", "maj_date", "create", "create_date", "Element_0", "Element_6", "tra_commentaire"], + "REALISATION": ["tra_dist_lim_parc", "tra_dist_veget", "tra_dist_puit", "tra_vm_grav_qual", "tra_vm_grav_ep", "tra_vm_geo_text", "tra_vm_bon_mat", "tra_regrep_mat", "tra_regrep_affl", "tra_regrep_equi", "tra_regrep_perf", "tra_regbl_mat", "tra_regbl_affl", "tra_regbl_hz", "tra_regbl_epand", "tra_regbl_perf", "tra_regcol_mat", "tra_regcol_affl", "tra_regcol_hz", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_3", "Element_4", "Element_5", "Element_6", "tra_dist_hab", "tra_vm_racine", "tra_vm_humidite", "tra_vm_imper", "tra_vm_geogrille", "tra_vm_tuy_perf", "tra_vm_sab_qual", "tra_vm_sab_ep", "tra_vm_geomembrane", "tra_commentaire"] + }; + // + var setTypeTraitement = function (event) { + + var sTraType; + if (typeof (event) != "undefined") + sTraType = event.target.value; + else + sTraType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["tra_type"]["selectedOption"]["value"]; + + if (goog.isObject(sTraType)) { + if (goog.isDefAndNotNull(sTraType['selectedOption'])) { + if (goog.isDefAndNotNull(sTraType['selectedOption']['value'])) { + sTraType = angular.copy(sTraType['selectedOption']['value']); + } + } + } + + if (typeof (sControleType) != "undefined" && sControleType != "") { + if (sTraType == "TRANCHÉES D'EPANDAGE") + $rootScope["displayFormFields"](oFormFieldsToDisplay[sControleType].concat(["tra_nb", "tra_longueur", "tra_tot_lin", "tra_profond", "tra_largeur"]).concat(aFormFieldsToConcat)); + else + $rootScope["displayFormFields"](oFormFieldsToDisplay[sControleType].concat(["tra_long", "tra_larg", "tra_surf", "tra_profondeur"]).concat(aFormFieldsToConcat)); + } + } + // + // + var oTypeTraitement = formSrvc["getFormElementDefinition"]("tra_type", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") + $rootScope["displayFormFields"](aFormFieldsToConcat); + else { + if (typeof (envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]) == "string") + sControleType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]; + else + sControleType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]["selectedOption"]["value"]; + setTypeTraitement(); + } + } + // Affiche et cache les champs de form. suivant le type de contrôle. + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + sControleType = oControl["controle_type"]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + // Affichage de certains champs suivant le type de contrôle. + document.getElementById(oTypeTraitement["id"]).addEventListener("change", setTypeTraitement) + }); + // Conversion des dates. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"]) && !moment(oFormValues["create_date"], ['L'], true).isValid()) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"]) && !moment(oFormValues["maj_date"], ['L'], true).isValid()) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * initAncFilieresAgreeesForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Traitement". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncFilieresAgreeesForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncFilieresAgreeesForm"); + // + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_fag", "id_controle", "id_installation"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + if (envSrvc["sMode"] == "search") { + /* + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["controle_ss_type", "des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_classe_cbf", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "CONCEPTION": ["dep_date_depot", "dep_dossier_complet", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "REALISATION": ["des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"] + }; + $rootScope["displayFormFields"](aFormFieldsToConcat); + */ + } else { + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "fag_et_deg", "fag_et_od", "fag_et_dy", "fag_en_date", "fag_en_jus", "fag_en_entr", "fag_en_bord", "fag_en_dest", "fag_en_perc", "fag_en_contr", "fag_en_mainteger", "fag_dist_arb", "fag_dist_parc", "fag_dist_hab", "fag_dist_cap", "maj", "maj_date", "create", "create_date", "Element_6", "Element_7", "Element_8", "fag_num", "fag_num_filt", "fag_mat_cuv", "fag_guide", "fag_contr", "fag_soc", "Element_0", "fag_pres", "fag_tamp", "fag_ventil", "fag_mil_typ", "fag_mil_filt", "fag_pres_reg", "fag_pres_alar", "fag_commentaires"], + "CONCEPTION": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "maj", "maj_date", "create", "create_date"], + "REALISATION": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "fag_surpr", "fag_surpr_ref", "fag_surpr_dist", "fag_surpr_elec", "fag_surpr_aer", "fag_reac_bull", "fag_broy", "fag_dec", "fag_type_eau", "fag_reg_mar", "fag_reg_mat", "fag_reg_affl", "fag_reg_hz", "fag_reg_van", "fag_fvl_nb", "fag_fvl_long", "fag_fvl_larg", "fag_fvl_prof", "fag_fvl_sep", "fag_fvl_pla", "fag_fvl_drain", "fag_fvl_resp", "fag_fhz_long", "fag_fhz_larg", "fag_fhz_prof", "fag_fhz_drain", "fag_fhz_resp", "fag_mat_qual", "fag_mat_epa", "fag_pres_veg", "fag_pres_pro", "maj", "maj_date", "create", "create_date", "Element_1", "Element_2", "Element_3", "Element_5", "fag_num", "fag_num_filt", "fag_mat_cuv", "fag_guide", "fag_contr", "fag_soc", "fag_soc", "fag_livret", "Element_0", "fag_pres", "fag_plan", "fag_tamp", "fag_ancrage", "fag_ventil", "fag_mil_typ", "fag_mil_filt", "fag_mise_eau", "fag_pres_alar", "fag_pres_reg", "fag_pres", "fag_plan", "fag_tamp", "fag_rep", "fag_respect", "fag_att_conf", "Element_10", "fag_commentaires"] + }; + if (envSrvc["sMode"] == "insert") + $rootScope["displayFormFields"](aFormFieldsToConcat); + else { + aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + } + + // Affiche et cache les champs de form. suivant le type de contrôle. + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + // Conversion des dates. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + var sFagEnDate = oFormValues["fag_en_date"]; + if (goog.isDefAndNotNull(sFagEnDate) && sFagEnDate != "" && !moment(sFagEnDate, ['L'], true).isValid()) + oFormValues["fag_en_date"] = moment(sFagEnDate).format("L") + if (goog.isDefAndNotNull(oFormValues["create_date"]) && !moment(oFormValues["create_date"], ['L'], true).isValid()) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"]) && !moment(oFormValues["maj_date"], ['L'], true).isValid()) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }); + }; + + /** + * loadAncFilieresAgreeesControl function. + * Chargement de la section "Filières aggréées" de l'onglet "Contrôle". + */ + angular.element(vitisApp.appMainDrtv).scope()["loadAncFilieresAgreeesControl"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $translate = angular.element(vitisApp.appMainDrtv).injector().get(["$translate"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("loadAncFilieresAgreeesControl"); + // Sauve certaines données de la liste. + var sSortedBy = envSrvc["oSelectedObject"]["sorted_by"]; + var sSortedDir = envSrvc["oSelectedObject"]["sorted_dir"]; + var sEditColumn = envSrvc["oSelectedObject"]["edit_column"]; + var sShowColumn = envSrvc["oSelectedObject"]["show_column"]; + // "sIdField" pour les boutons du mode "update" et "display". + envSrvc["oSelectedObject"]["sIdField"] = "id_controle"; + // Colonne et sens de tri. + envSrvc["oSelectedObject"]["sorted_by"] = "id_fag"; + envSrvc["oSelectedObject"]["sorted_dir"] = "ASC"; + envSrvc["oSelectedObject"]["edit_column"] = "editModalSectionForm"; + envSrvc["oSelectedObject"]["show_column"] = "showModalSectionForm"; + // Affiche la liste des prétraitements du contrôle. + $translate(["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT"]).then(function (oTranslations) { + // Paramètres de la liste + boutons. + var oGridOptions = { + "appHeader": true, + "appHeaderSearchForm": false, + "appGridTitle": oTranslations["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT"], + "appShowActions": true, + "appIdField": "id_fag" + }; + // + $rootScope["loadSectionList"](oGridOptions); + }); + // Attends que les boutons du "header" soient ajoutés. + var clearListener = $rootScope.$on('workspaceListHeaderActionsAdded', function (event, oGridOptions) { + // Supprime le "listener". + clearListener(); + // Restaure les données originales de la liste. + envSrvc["oSelectedObject"]["sorted_by"] = sSortedBy; + envSrvc["oSelectedObject"]["sorted_dir"] = sSortedDir; + envSrvc["oSelectedObject"]["edit_column"] = sEditColumn; + envSrvc["oSelectedObject"]["show_column"] = sShowColumn; + // Boutons d'ajout et de suppression d'un traitement. + for (var i = 0; i < oGridOptions["appActions"].length; i++) { + if (oGridOptions["appActions"][i]["name"].indexOf("_add") != -1) + oGridOptions["appActions"][i]["event"] = "addModalSectionForm()"; + else if (oGridOptions["appActions"][i]["name"].indexOf("_delete") != -1) + oGridOptions["appActions"][i]["event"] = "DeleteSelection({'sIdField':'id_fag'})"; + } + }); + }; + + /** + * initAncControlDispositifsAnnexesForm function. + * Traitements avant l'affichage du formulaire de la section "Dispositifs Annexes" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlDispositifsAnnexesForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncControlDispositifsAnnexesForm"); + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "Element_1", "Element_2"]; + var oFormFieldsToDisplay; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["da_chasse_acces", "da_chasse_pr_nat_eau", "da_chasse_dysfonctionnement", "da_chasse_degradation", "da_chasse_entretien", "da_pr_loc_pompe", "da_pr_acces", "da_pr_clapet", "da_pr_etanche", "da_pr_dysfonctionnement", "da_pr_degradation", "da_pr_entretien", "da_commentaires", "da_pr_ventilatio"], + "CONCEPTION": ["da_chasse_auto", "da_chasse_pr_nat_eau", "da_pr_loc_pompe", "da_pr_nb_pompe", "da_pr_nat_eau", "da_commentaires"], + "REALISATION": ["da_chasse_pr_nat_eau", "da_chasse_ok", "da_pr_loc_pompe", "da_pr_ok", "da_pr_clapet", "da_pr_etanche", "da_pr_branchement", "da_pr_ventilatio", "da_pr_alarme", "da_commentaires"] + }; + var aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + }); + }; + + /** + * initAncControlConclusionForm function. + * Traitements avant l'affichage du formulaire de la section "Conclusion" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlConclusionForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + // + $log.info("initAncControlConclusionForm"); + var aClassesCbf = ["ABSENCE D'INSTALLATION", "NON CONFORME - DÉFAUT DE SÉCURITÉ SANITAIRE", "NON CONFORME - DÉFAUT DE STRUCTURE OU DE FERMETURE", "NON CONFORME - INSTALLATION IMPLANTÉE À MOINS DE 35M D'UN PUITS DÉCLARÉ ET UTILISÉ", "NON CONFORME - INSTALLATION INCOMPLÈTE", "NON CONFORME - INSTALLATION SIGNIFICATIVEMENT SOUS DIMENSIONNÉE", "NON CONFORME - INSTALLATION PRÉSENTANT DES DYSFONCTIONNEMENTS MAJEURS", "INSTALLATION NECESSITANT DES RECOMMANDATIONS DE TRAVAUX"]; + // Filtre pour le datasource du champ "Montant du contrôle" (année en cours et type de contrôle). + if (envSrvc["sMode"] == "update") { + var oClMontantDef = formSrvc["getFormElementDefinition"]("cl_montant", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + var oClMontantDatasource = envSrvc['oFormDefinition']['datasources'][oClMontantDef["datasource"]["datasource_id"]]; + var oFirstSectionFormValues = envSrvc["oFormValues"][envSrvc["oSelectedObject"]["name"] + "_" + envSrvc["oSectionForm"][envSrvc["oSelectedObject"]["name"]]["sections"][0]["name"] + "_" + envSrvc["sMode"] + "_form"]; + if (goog.isDefAndNotNull(oFirstSectionFormValues["des_date_control"])) { + var aMatchResult = oFirstSectionFormValues["des_date_control"].match(/[0-9]{4}/); + if (aMatchResult !== null) + oClMontantDatasource["parameters"]["filter"]["annee_validite"] = aMatchResult[0]; + } + oClMontantDatasource["parameters"]["filter"]["controle_type"] = oFirstSectionFormValues["controle_type"]["selectedOption"]["value"]; + } + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "Element_1", "Element_2"]; + var oFormFieldsToDisplay; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["cl_classe_cbf", "cl_commentaires", "cl_date_avis", "cl_auteur_avis", "cl_montant", "cl_facture", "cl_facture_le", "cl_constat", "cl_travaux"], + "CONCEPTION": ["cl_avis", "cl_commentaires", "cl_date_avis", "cl_auteur_avis", "cl_montant", "cl_facture", "cl_facture_le"], + "REALISATION": ["cl_commentaires", "cl_date_avis", "cl_auteur_avis", "cl_montant", "cl_facture", "cl_facture_le", "cl_classe_cbf"] + }; + var aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + // + //var oClClasseCbfWarning = formSrvc["getFormElementDefinition"]("cl_classe_cbf_warning", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"] == "BON FONCTIONNEMENT") { + var sClClasseCbf = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["cl_classe_cbf"]["selectedOption"]["value"]; + if (aClassesCbf.indexOf(sClClasseCbf) != -1) + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat).concat(["cl_classe_cbf_warning"])); + else + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + // Rafraîchit le formulaire. + /* + var formScope = angular.element("form[name='" + envSrvc["oFormDefinition"][envSrvc["sFormDefinitionName"]]["name"]).scope(); + formScope.$broadcast('$$rebind::refresh'); + formScope.$applyAsync(); + */ + + var oClClasseCbf = formSrvc["getFormElementDefinition"]("cl_classe_cbf", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oClClasseCbf["id"]).addEventListener("change", function () { + if (aClassesCbf.indexOf(this.value) != -1) + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat).concat(["cl_classe_cbf_warning"])); + else + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + }); + } + // Conversion des dates. + var sClDateAvis = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["cl_date_avis"]; + if (goog.isDefAndNotNull(sClDateAvis) && sClDateAvis != "" && !moment(sClDateAvis, ['L'], true).isValid()) + envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["cl_date_avis"] = moment(sClDateAvis).format("L") + var sClFactureLe = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["cl_facture_le"]; + if (goog.isDefAndNotNull(sClFactureLe) && sClFactureLe != "" && !moment(sClFactureLe, ['L'], true).isValid()) + envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["cl_facture_le"] = moment(sClFactureLe).format("L") + }); + }; + + /** + * initAncEvacuationEauxForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Evacuation des eaux". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncEvacuationEauxForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncEvacuationEauxForm"); + // + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_eva", "id_installation", "id_controle"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_is_reg_rep", "evac_is_reb_bcl", "evac_is_veg", "evac_is_acc_reg", "evac_is_type_effl", "evac_rp_grav", "evac_rp_tamp", "evac_rp_type_eff", "evac_rp_trap", "evac_hs_type", "evac_hs_gestionnaire", "evac_hs_gestionnaire_auth", "evac_commentaires", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_4", "evac_is_lin_total", "evac_rp_type", "evac_hs_intr", "evac_hs_type_eff", "evac_hs_ecoul"], + "CONCEPTION": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_rp_etude_hydrogeol", "evac_rp_rejet", "evac_hs_type", "evac_hs_gestionnaire", "evac_hs_gestionnaire_auth", "evac_commentaires", "maj", "maj_date", "create", "create_date", "photos_f", "fiche_f", "schema_f", "documents_f", "plan_f", "Element_0", "Element_1", "Element_2", "Element_3", "Element_4", "evac_is_inf_perm", "evac_hs_type_eff"], + "REALISATION": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_is_geotex", "evac_is_rac", "evac_is_hum", "evac_is_reg_rep", "evac_is_reb_bcl", "evac_is_veg", "evac_is_type_effl", "evac_rp_grav", "evac_rp_tamp", "evac_rp_type_eff", "evac_hs_type", "evac_commentaires", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_4", "evac_is_lin_total", "evac_rp_bons_grav", "evac_hs_intr", "evac_hs_type_eff", "evac_hs_ecoul"] + }; + if (envSrvc["sMode"] == "insert") + $rootScope["displayFormFields"](aFormFieldsToConcat); + else { + aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + + // Affiche et cache les champs de form. suivant le type de contrôle. + if (envSrvc["sMode"] != "display") { + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + } + }); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"]) && !moment(oFormValues["create_date"], ['L'], true).isValid()) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"]) && !moment(oFormValues["maj_date"], ['L'], true).isValid()) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * loadAncEvacuationEauxControl function. + * Chargement de la section "Prétraitement" de l'onglet "Contrôle". + */ + angular.element(vitisApp.appMainDrtv).scope()["loadAncEvacuationEauxControl"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $translate = angular.element(vitisApp.appMainDrtv).injector().get(["$translate"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("loadAncEvacuationEauxControl"); + // Sauve certaines données de la liste. + var sSortedBy = envSrvc["oSelectedObject"]["sorted_by"]; + var sSortedDir = envSrvc["oSelectedObject"]["sorted_dir"]; + var sEditColumn = envSrvc["oSelectedObject"]["edit_column"]; + var sShowColumn = envSrvc["oSelectedObject"]["show_column"]; + // "sIdField" pour les boutons du mode "update" et "display". + envSrvc["oSelectedObject"]["sIdField"] = "id_controle"; + // Colonne et sens de tri. + envSrvc["oSelectedObject"]["sorted_by"] = "id_eva"; + envSrvc["oSelectedObject"]["sorted_dir"] = "ASC"; + envSrvc["oSelectedObject"]["edit_column"] = "editModalSectionForm"; + envSrvc["oSelectedObject"]["show_column"] = "showModalSectionForm"; + // Affiche la liste des prétraitements du contrôle. + $translate(["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX"]).then(function (oTranslations) { + // Paramètres de la liste + boutons. + var oGridOptions = { + "appHeader": true, + "appHeaderSearchForm": false, + "appGridTitle": oTranslations["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX"], + "appShowActions": true, + "appIdField": "id_eva" + }; + // + $rootScope["loadSectionList"](oGridOptions); + }); + // Attends que les boutons du "header" soient ajoutés. + var clearListener = $rootScope.$on('workspaceListHeaderActionsAdded', function (event, oGridOptions) { + // Supprime le "listener". + clearListener(); + // Restaure les données originales de la liste. + envSrvc["oSelectedObject"]["sorted_by"] = sSortedBy; + envSrvc["oSelectedObject"]["sorted_dir"] = sSortedDir; + envSrvc["oSelectedObject"]["edit_column"] = sEditColumn; + envSrvc["oSelectedObject"]["show_column"] = sShowColumn; + // Boutons d'ajout et de suppression d'un traitement. + for (var i = 0; i < oGridOptions["appActions"].length; i++) { + if (oGridOptions["appActions"][i]["name"].indexOf("_add") != -1) + oGridOptions["appActions"][i]["event"] = "addModalSectionForm()"; + else if (oGridOptions["appActions"][i]["name"].indexOf("_delete") != -1) + oGridOptions["appActions"][i]["event"] = "DeleteSelection({'sIdField':'id_eva'})"; + } + }); + }; + + /** + * initAncControlPretraitementForm function. + * Traitements avant l'affichage du formulaire d'un prétraitement de la section "Prétraitement" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlPretraitementForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $timeout = angular.element(vitisApp.appMainDrtv).injector().get(["$timeout"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncControlPretraitementForm"); + var scope = this; + // Préremplissage de l'installation et du contrôle en mode "insert". + var oParentFormValues = envSrvc["oFormValues"][envSrvc["oSelectedObject"]["name"] + "_" + envSrvc["oSectionForm"][envSrvc["oSelectedObject"]["name"]]["sections"][0]["name"] + "_" + scope.$parent["sParentMode"] + "_form"]; + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") { + var oInstallation = formSrvc["getFormElementDefinition"]("id_installation", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + oInstallation["default_value"] = oParentFormValues["id_installation"]; + if (goog.isDefAndNotNull(oParentFormValues["id_installation"]["selectedOption"])) { + oInstallation["default_value"] = oParentFormValues["id_installation"]["selectedOption"]["value"]; + } + oControl["default_value"] = oParentFormValues["id_controle"]; + } + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_pretraitement", "id_installation", "id_controle"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["ptr_im_puit", "ptr_adapte", "ptr_type_eau", "ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_cloison", "ptr_commentaire", "ptr_im_distance", "ptr_im_acces", "ptr_et_degrad", "ptr_et_real", "ptr_vi_date", "ptr_vi_justi", "ptr_vi_entr", "ptr_vi_bord", "ptr_vi_dest", "ptr_vi_perc", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_3", "Element_4"], + "CONCEPTION": ["ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_commentaire", "ptr_im_distance", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_4"], + "REALISATION": ["ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_commentaire", "ptr_im_distance", "ptr_im_hydrom", "maj", "maj_date", "create", "create_date", "Element_0", "Element_4", "ptr_pose", "ptr_adapte", "ptr_conforme_projet", "ptr_renforce", "ptr_verif_mise_en_eau", "ptr_type_eau", "ptr_im_dalle", "ptr_im_puit"] + }; + if (typeof (oParentFormValues["controle_type"]) == "string") + var sControleType = oParentFormValues["controle_type"]; + else + var sControleType = oParentFormValues["controle_type"]["selectedOption"]["value"]; + aFormFieldsToDisplay = oFormFieldsToDisplay[sControleType]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + + // Affiche et cache les champs de form. suivant le type de contrôle. + if (envSrvc["sMode"] != "display") { + $timeout(function () { + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + }); + } + }); + // Conversion des dates. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"]) && !moment(oFormValues["create_date"], ['L'], true).isValid()) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"]) && !moment(oFormValues["maj_date"], ['L'], true).isValid()) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["ptr_vi_date"]) && !moment(oFormValues["ptr_vi_date"], ['L'], true).isValid()) + oFormValues["ptr_vi_date"] = moment(oFormValues["ptr_vi_date"]).format('L'); + }; + + /** + * initAncControlTraitementForm function. + * Traitements avant l'affichage du formulaire d'un traitement de la section "Traitement" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlTraitementForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $timeout = angular.element(vitisApp.appMainDrtv).injector().get(["$timeout"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncControlTraitementForm"); + var scope = this; + // Préremplissage de l'installation et dy contrôle en mode "insert". + var oParentFormValues = envSrvc["oFormValues"][envSrvc["oSelectedObject"]["name"] + "_" + envSrvc["oSectionForm"][envSrvc["oSelectedObject"]["name"]]["sections"][0]["name"] + "_" + scope.$parent["sParentMode"] + "_form"]; + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") { + var oInstallation = formSrvc["getFormElementDefinition"]("id_installation", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + oInstallation["default_value"] = oParentFormValues["id_installation"]; + if (goog.isDefAndNotNull(oParentFormValues["id_installation"]["selectedOption"])) { + oInstallation["default_value"] = oParentFormValues["id_installation"]["selectedOption"]["value"]; + } + oControl["default_value"] = oParentFormValues["id_controle"]; + } + // + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_traitement", "id_controle", "tra_type", "id_installation"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["tra_dist_hab", "tra_dist_lim_parc", "tra_dist_veget", "tra_dist_puit", "tra_regrep_mat", "tra_regrep_affl", "tra_regrep_equi", "tra_regbl_mat", "tra_regbl_affl", "tra_regcol_mat", "tra_regcol_affl", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_3", "Element_4", "Element_5", "Element_6","tra_commentaire"], + "CONCEPTION": ["maj", "maj_date", "create", "create_date", "Element_0", "Element_6","tra_commentaire"], + "REALISATION": ["tra_dist_lim_parc", "tra_dist_veget", "tra_dist_puit", "tra_vm_grav_qual", "tra_vm_grav_ep", "tra_vm_geo_text", "tra_vm_bon_mat", "tra_regrep_mat", "tra_regrep_affl", "tra_regrep_equi", "tra_regrep_perf", "tra_regbl_mat", "tra_regbl_affl", "tra_regbl_hz", "tra_regbl_epand", "tra_regbl_perf", "tra_regcol_mat", "tra_regcol_affl", "tra_regcol_hz", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_3", "Element_4", "Element_5", "Element_6", , "tra_vm_racine", "tra_vm_humidite", "tra_vm_imper", "tra_vm_geogrille", "tra_vm_tuy_perf", "tra_vm_sab_qual", "tra_vm_sab_ep", "tra_vm_geomembrane", "tra_commentaire", "tra_dist_hab"] + }; + // + var setTypeTraitement = function (event) { + + var sTraType; + if (typeof (event) != "undefined") + sTraType = event.target.value; + else + sTraType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["tra_type"]; + + if (goog.isObject(sTraType)) { + if (goog.isDefAndNotNull(sTraType['selectedOption'])) { + if (goog.isDefAndNotNull(sTraType['selectedOption']['value'])) { + sTraType = angular.copy(sTraType['selectedOption']['value']); + } + } + } + + if (typeof (sControleType) != "undefined" && sControleType != "") { + if (sTraType == "TRANCHÉES D'EPANDAGE") { + $rootScope["displayFormFields"](oFormFieldsToDisplay[sControleType].concat(["tra_nb", "tra_longueur", "tra_tot_lin", "tra_profond", "tra_largeur"]).concat(aFormFieldsToConcat)); + } else { + $rootScope["displayFormFields"](oFormFieldsToDisplay[sControleType].concat(["tra_long", "tra_larg", "tra_surf", "tra_profondeur"]).concat(aFormFieldsToConcat)); + } + } + } + // + if (typeof (oParentFormValues["controle_type"]) == "string") + var sControleType = oParentFormValues["controle_type"]; + else + var sControleType = oParentFormValues["controle_type"]["selectedOption"]["value"]; + aFormFieldsToDisplay = oFormFieldsToDisplay[sControleType]; + var oTypeTraitement = formSrvc["getFormElementDefinition"]("tra_type", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + else + setTypeTraitement(); + // Affiche et cache les champs de form. suivant le type de contrôle. + if (envSrvc["sMode"] != "display") { + document.getElementById(oTypeTraitement["id"]).removeEventListener("change", setTypeTraitement) + $timeout(function () { + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + sControleType = oControl["controle_type"]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + // Affichage de certains champs suivant le type de contrôle. + document.getElementById(oTypeTraitement["id"]).addEventListener("change", setTypeTraitement) + }); + } + }); + }; + + /** + * initAncControlFilieresAgreeesForm function. + * Traitements avant l'affichage du formulaire d'une filière agréée de la section "Filière agréées" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlFilieresAgreeesForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $timeout = angular.element(vitisApp.appMainDrtv).injector().get(["$timeout"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncControlFilieresAgreeesForm"); + var scope = this; + // Préremplissage de l'installation et dy contrôle en mode "insert". + var oParentFormValues = envSrvc["oFormValues"][envSrvc["oSelectedObject"]["name"] + "_" + envSrvc["oSectionForm"][envSrvc["oSelectedObject"]["name"]]["sections"][0]["name"] + "_" + scope.$parent["sParentMode"] + "_form"]; + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") { + var oInstallation = formSrvc["getFormElementDefinition"]("id_installation", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + oInstallation["default_value"] = oParentFormValues["id_installation"]; + if (goog.isDefAndNotNull(oParentFormValues["id_installation"]["selectedOption"])) { + oInstallation["default_value"] = oParentFormValues["id_installation"]["selectedOption"]["value"]; + } + oControl["default_value"] = oParentFormValues["id_controle"]; + } + // + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_fag", "id_controle", "id_installation"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "fag_et_deg", "fag_et_od", "fag_et_dy", "fag_en_date", "fag_en_jus", "fag_en_entr", "fag_en_bord", "fag_en_dest", "fag_en_perc", "fag_en_contr", "fag_en_mainteger", "fag_dist_arb", "fag_dist_parc", "fag_dist_hab", "fag_dist_cap", "maj", "maj_date", "create", "create_date", "Element_6", "Element_7", "Element_8", "fag_num", "fag_num_filt", "fag_mat_cuv", "fag_guide", "fag_contr", "fag_soc", "Element_0", "fag_pres", "fag_tamp", "fag_ventil", "fag_mil_typ", "fag_mil_filt", "fag_pres_reg", "fag_pres_alar", "fag_commentaires"], + "CONCEPTION": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "maj", "maj_date", "create", "create_date"], + "REALISATION": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "fag_surpr", "fag_surpr_ref", "fag_surpr_dist", "fag_surpr_elec", "fag_surpr_aer", "fag_reac_bull", "fag_broy", "fag_dec", "fag_type_eau", "fag_reg_mar", "fag_reg_mat", "fag_reg_affl", "fag_reg_hz", "fag_reg_van", "fag_fvl_nb", "fag_fvl_long", "fag_fvl_larg", "fag_fvl_prof", "fag_fvl_sep", "fag_fvl_pla", "fag_fvl_drain", "fag_fvl_resp", "fag_fhz_long", "fag_fhz_larg", "fag_fhz_prof", "fag_fhz_drain", "fag_fhz_resp", "fag_mat_qual", "fag_mat_epa", "fag_pres_veg", "fag_pres_pro", "maj", "maj_date", "create", "create_date", "Element_1", "Element_2", "Element_3", "Element_5", "fag_num", "fag_num_filt", "fag_mat_cuv", "fag_guide", "fag_contr", "fag_soc", "fag_soc", "fag_livret", "Element_0", "fag_pres", "fag_plan", "fag_tamp", "fag_ancrage", "fag_ventil", "fag_mil_typ", "fag_mil_filt", "fag_mise_eau", "fag_pres_alar", "fag_pres_reg", "fag_pres", "fag_plan", "fag_tamp", "fag_rep", "fag_respect", "fag_att_conf", "Element_10", "fag_commentaires"] + }; + if (typeof (oParentFormValues["controle_type"]) == "string") + var sControleType = oParentFormValues["controle_type"]; + else + var sControleType = oParentFormValues["controle_type"]["selectedOption"]["value"]; + aFormFieldsToDisplay = oFormFieldsToDisplay[sControleType]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + + // Affiche et cache les champs de form. suivant le type de contrôle. + if (envSrvc["sMode"] != "display") { + $timeout(function () { + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + }); + } + }); + // Conversion des dates. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + var sFagEnDate = oFormValues["fag_en_date"]; + if (goog.isDefAndNotNull(sFagEnDate) && sFagEnDate != "" && !moment(sFagEnDate, ['L'], true).isValid()) + oFormValues["fag_en_date"] = moment(sFagEnDate).format("L") + if (goog.isDefAndNotNull(oFormValues["create_date"]) && !moment(oFormValues["create_date"], ['L'], true).isValid()) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"]) && !moment(oFormValues["maj_date"], ['L'], true).isValid()) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * initAncControlEvacuationEauxForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Evacuation des eaux". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlEvacuationEauxForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $timeout = angular.element(vitisApp.appMainDrtv).injector().get(["$timeout"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncControlEvacuationEauxForm"); + var scope = this; + // Préremplissage de l'installation et dy contrôle en mode "insert". + var oParentFormValues = envSrvc["oFormValues"][envSrvc["oSelectedObject"]["name"] + "_" + envSrvc["oSectionForm"][envSrvc["oSelectedObject"]["name"]]["sections"][0]["name"] + "_" + scope.$parent["sParentMode"] + "_form"]; + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") { + var oInstallation = formSrvc["getFormElementDefinition"]("id_installation", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + oInstallation["default_value"] = oParentFormValues["id_installation"]; + if (goog.isDefAndNotNull(oParentFormValues["id_installation"]["selectedOption"])) { + oInstallation["default_value"] = oParentFormValues["id_installation"]["selectedOption"]["value"]; + } + oControl["default_value"] = oParentFormValues["id_controle"]; + } + // + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_eva", "id_installation", "id_controle"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_is_reg_rep", "evac_is_reb_bcl", "evac_is_veg", "evac_is_acc_reg", "evac_rp_grav", "evac_rp_tamp", "evac_rp_type_eff", "evac_rp_trap", "evac_hs_type", "evac_hs_gestionnaire", "evac_hs_gestionnaire_auth", "evac_commentaires", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_4", "evac_is_lin_total", "evac_rp_type", "evac_hs_intr", "evac_hs_type_eff", "evac_hs_ecoul", "evac_is_type_effl"], + "CONCEPTION": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_rp_etude_hydrogeol", "evac_rp_rejet", "evac_hs_type", "evac_hs_gestionnaire", "evac_hs_gestionnaire_auth", "evac_commentaires", "maj", "maj_date", "create", "create_date", "photos_f", "fiche_f", "schema_f", "documents_f", "plan_f", "Element_0", "Element_1", "Element_2", "Element_3", "Element_4", "evac_is_inf_perm", "evac_hs_type_eff"], + "REALISATION": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_is_geotex", "evac_is_rac", "evac_is_hum", "evac_is_reg_rep", "evac_is_reb_bcl", "evac_is_veg", "evac_rp_grav", "evac_rp_tamp", "evac_hs_type", "evac_commentaires", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_4", "evac_is_lin_total", "evac_rp_bons_grav", "evac_hs_intr", "evac_hs_type_eff", "evac_hs_ecoul", "evac_is_type_effl", "evac_rp_type_eff"] + }; + if (typeof (oParentFormValues["controle_type"]) == "string") + var sControleType = oParentFormValues["controle_type"]; + else + var sControleType = oParentFormValues["controle_type"]["selectedOption"]["value"]; + aFormFieldsToDisplay = oFormFieldsToDisplay[sControleType]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + + // Affiche et cache les champs de form. suivant le type de contrôle. + if (envSrvc["sMode"] != "display") { + $timeout(function () { + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + }); + } + }); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"]) && !moment(oFormValues["create_date"], ['L'], true).isValid()) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"]) && !moment(oFormValues["maj_date"], ['L'], true).isValid()) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * beforeSendingAncInstallationForm function. + * Traitements avant l'envoi du formulaire de la section "Habitation" de l'onglet "Installation". + **/ + angular.element(vitisApp.appMainDrtv).scope()["beforeSendingAncInstallationForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("beforeSendingAncInstallationForm"); + // Champs obligatoirement en majuscules. + var aElemNames = ["parc_commune", "prop_adresse", "prop_commune", "prop_nom_prenom", "prop_titre"]; + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + for (var i in aElemNames) { + if (typeof (oFormValues[aElemNames[i]]) == "string") + oFormValues[aElemNames[i]] = oFormValues[aElemNames[i]].toUpperCase(); + } + } + + /** + * initAncControleSuiviForm function. + * Traitements avant l'affichage du formulaire de la section "Suivi" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControleSuiviForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncControleSuiviForm"); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"]) && !moment(oFormValues["create_date"], ['L'], true).isValid()) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"]) && !moment(oFormValues["maj_date"], ['L'], true).isValid()) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * appAdminDescriptionColumn directive. + * Mise en forme de la colonne "description" dans la liste de l'onglet "Admin". + * @ngInject + */ + vitisApp.appAdminDescriptionColumnDrtv = function () { + return { + link: function (scope, element, attrs) { + // 1er affichage ou tri de la liste : maj de la mise en forme. + var clearObserver = attrs.$observe("appAdminDescriptionColumn", function (value) { + console.log(scope["row"]["entity"][scope["col"]["field"]]); + // Si le champ est vide : supprime l'icône. + if (scope["row"]["entity"][scope["col"]["field"]] == null || scope["row"]["entity"][scope["col"]["field"]] == "") + element[0].className = ""; + else { + // Classes css (ui-grid + spécifiques). + element[0].className = "ui-grid-cell-contents wk-params-icon"; + // Création du "tooltip". + $(element)["popover"]({ + "trigger": "hover", + "container": "body", + "html": true, + "title": function () { + return "#" + scope["row"]["entity"]["id_parametre_admin"]; + }, + // Placement du tooltip à gauche ou à droite suivant la position horizontale de l'élément. + "placement": function (oPopoverNode, oElementNode) { + return scope.$root["workspaceTooltipPlacement"](oElementNode); + }, + "content": function () { + return String(scope["row"]["entity"][scope["col"]["field"]]).replace(/,/g, '<br>'); + } + }); + } + }); + // Attends la suppression du scope. + scope.$on("$destroy", function () { + // Supprime le tooltip. + $(element)["popover"]("destroy"); + // Supprime l'observateur. + clearObserver(); + }); + } + }; + }; + vitisApp["compileProvider"].directive("appAdminDescriptionColumn", vitisApp.appAdminDescriptionColumnDrtv); + + /** + * appAdminSignatureColumn directive. + * Mise en forme de la colonne "description" dans la liste de l'onglet "Admin". + * @ngInject + */ + vitisApp.appAdminSignatureColumnDrtv = function () { + return { + link: function (scope, element, attrs) { + // 1er affichage ou tri de la liste : maj de la mise en forme. + var clearObserver = attrs.$observe("appAdminSignatureColumn", function (value) { + console.log(scope["row"]["entity"][scope["col"]["field"]]); + // Si le champ est vide : supprime l'icône. + if (scope["row"]["entity"][scope["col"]["field"]] == null || scope["row"]["entity"][scope["col"]["field"]] == "") + element[0].className = ""; + else { + // Classes css (ui-grid + spécifiques). + element[0].className = "ui-grid-cell-contents wk-params-icon"; + // Création du "tooltip". + $(element)["popover"]({ + "trigger": "hover", + "container": "body", + "html": true, + "title": function () { + return "#" + scope["row"]["entity"]["id_parametre_admin"]; + }, + // Placement du tooltip à gauche ou à droite suivant la position horizontale de l'élément. + "placement": function (oPopoverNode, oElementNode) { + return scope.$root["workspaceTooltipPlacement"](oElementNode); + }, + "content": function () { + return String(scope["row"]["entity"][scope["col"]["field"]]).replace(/,/g, '<br>'); + } + }); + } + }); + // Attends la suppression du scope. + scope.$on("$destroy", function () { + // Supprime le tooltip. + $(element)["popover"]("destroy"); + // Supprime l'observateur. + clearObserver(); + }); + } + }; + }; + vitisApp["compileProvider"].directive("appAdminSignatureColumn", vitisApp.appAdminSignatureColumnDrtv); + + /** + * initAncParametrageEntrepriseForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Entreprise". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncParametrageEntrepriseForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncParametrageEntrepriseForm"); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"]) && !moment(oFormValues["create_date"], ['L'], true).isValid()) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"]) && !moment(oFormValues["maj_date"], ['L'], true).isValid()) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * initAncParametrageAdministrateurForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Entreprise". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncParametrageAdministrateurForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncParametrageAdministrateurForm"); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["date_fin_validite"]) && !moment(oFormValues["date_fin_validite"], ['L'], true).isValid()) + oFormValues["date_fin_validite"] = moment(oFormValues["date_fin_validite"]).format('L'); + }; +}); diff --git a/src/module_anc/module/lang/lang-en.json b/src/module_anc/module/lang/lang-en.json new file mode 100755 index 0000000000000000000000000000000000000000..1487e6a0045603c213cd191d9f05ee99c01562a1 --- /dev/null +++ b/src/module_anc/module/lang/lang-en.json @@ -0,0 +1,442 @@ +{ + "TEXT_MODE_ANC_SAISIE" : "Saisie des assainissements non collectifs", + "TITLE_MODE_ANC_SAISIE" : "Saisie des ANC", + "TEXT_MODE_ANC_PARAMETRAGE" : "Paramétrage des assainissements non collectifs", + "TITLE_MODE_ANC_PARAMETRAGE" : "Paramétrage ANC", + "ANC_SAISIE_ANC_INSTALLATION_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_TITLE_INSERT" : "Installation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_COM" : "id_com", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_PARC" : "id_parc", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_SUP" : "parc_sup", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_PARCELLE_ASSOCIEES" : "parc_parcelle_associees", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_ADRESSE" : "parc_adresse", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CODE_POSTAL" : "code_postal", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_COMMUNE" : "parc_commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_TITRE" : "prop_titre", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_NOM_PRENOM" : "prop_nom_prenom", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_ADRESSE" : "prop_adresse", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_CODE_POSTAL" : "prop_code_postal", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_COMMUNE" : "prop_commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_TEL" : "prop_tel", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_MAIL" : "prop_mail", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_TYPE" : "bati_type", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_PP" : "bati_ca_nb_pp", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_EH" : "bati_ca_nb_eh", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_CHAMBRES" : "bati_ca_nb_chambres", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_NB_A_CONTROL" : "bati_nb_a_control", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_DATE_MUTATION" : "bati_date_mutation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_ENJEU" : "cont_zone_enjeu", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_SAGE" : "cont_zone_sage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_AUTRE" : "cont_zone_autre", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_URBA" : "cont_zone_urba", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_ANC" : "cont_zone_anc", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ALIM_EAU_POTABLE" : "cont_alim_eau_potable", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_USAGE" : "cont_puits_usage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_DECLARATION" : "cont_puits_declaration", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_SITUATION" : "cont_puits_situation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_TERRAIN_MITOYEN" : "cont_puits_terrain_mitoyen", + "ANC_SAISIE_ANC_INSTALLATION_FORM_OBSERVATIONS" : "Observations", + "ANC_SAISIE_ANC_INSTALLATION_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_INSTALLATION_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ARCHIVAGE" : "archivage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PHOTO_F" : "photo_f", + "ANC_SAISIE_ANC_INSTALLATION_FORM_DOCUMENT_F" : "document_f", + "ANC_SAISIE_ANC_INSTALLATION_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_INSTALLATION_FORM_COMMUNE" : "commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_SECTION" : "section", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARCELLE" : "parcelle", + "ANC_SAISIE_ANC_INSTALLATION_FORM_NB_CONTROLE" : "nb_controle", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_INSERT" : "Liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_UPDATE" : "Liste n°{{sId}}", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_DISPLAY" : "Liste n°{{sId}}", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_ID_PARAMETRE_LISTE" : "id_parametre_liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_NOM_TABLE" : "nom_table", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_NOM_LISTE" : "nom_liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_VALEURS" : "valeurs", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_ALIAS" : "alias", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_INSERT" : "Tarif", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_UPDATE" : "Tarif n°{{id_parametre_tarif}}", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_DISPLAY" : "Tarif n°{{sId}}", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ID_PARAMETRE_TARIF" : "ID", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ID_COM" : "Commune", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_CONTROLE_TYPE" : "Type de contrôle", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_MONTANT" : "Montant", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ANNEE_VALIDITE" : "Année de validité", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_DEVISE" : "Devise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE" : "", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_INSERT" : "Entreprise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_UPDATE" : "Entreprise n°{{id_parametre_entreprises}}", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_DISPLAY" : "Entreprise n°{{id_parametre_entreprises}}", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_ID_PARAMETRE_ENTREPRISES" : "id_parametre_entreprises", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_ID_COM" : "id_com", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_SIRET" : "siret", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_RAISON_SOCIALE" : "raison_sociale", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_NOM_ENTREPRISE" : "nom_entreprise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_NOM_CONTACT" : "nom_contact", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_TELEPHONE_FIXE" : "telephone_fixe", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_TELEPHONE_MOBILE" : "telephone_mobile", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_WEB" : "web", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAIL" : "mail", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CODE_POSTAL" : "code_postal", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_VOIE" : "voie", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_BUREAU_ETUDE" : "bureau_etude", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CONCEPTEUR" : "concepteur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CONSTRUCTEUR" : "constructeur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_INSTALLATEUR" : "installateur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_VIDANGEUR" : "vidangeur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_EN_ACTIVITE" : "en_activite", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_OBSERVATIONS" : "observations", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CREAT" : "creat", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CREAT_DATE" : "creat_date", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAJ" : "maj", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAJ_DATE" : "maj_date", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_OBSERVATIONS" : "Observations", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_ARCHIVAGE" : "archivage", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_PHOTO_F" : "Photos", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_DOCUMENT_F" : "Documents", + "ANC_SAISIE_ANC_CONTROLE_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_TITLE_INSERT" : "Control", + "ANC_SAISIE_ANC_CONTROLE_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_CONTROLE_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_CONTROLE_FORM_CONTROLE_TYPE" : "controle_type", + "ANC_SAISIE_ANC_CONTROLE_FORM_CONTROLE_SS_TYPE" : "controle_ss_type", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_CONTROL" : "des_date_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_PERS_CONTROL" : "des_pers_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_AGENT_CONTROL" : "des_agent_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REFUS_VISITE" : "des_refus_visite", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_INSTALLATION" : "des_date_installation", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_RECOMMANDE" : "des_date_recommande", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_NUMERO_RECOMMANDE" : "des_numero_recommande", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DATE_DEPOT" : "dep_date_depot", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_LISTE_PIECE" : "dep_liste_piece", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DOSSIER_COMPLET" : "dep_dossier_complet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DATE_ENVOI_INCOMPLET" : "dep_date_envoi_incomplet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_NATURE_PROJET" : "des_nature_projet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_CONCEPTEUR" : "des_concepteur", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_SURFACE_DISPO_M2" : "car_surface_dispo_m2", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_PERMEA" : "car_permea", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_VALEUR_PERMEA" : "car_valeur_permea", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_HYDROMORPHIE" : "car_hydromorphie", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_PROF_APP" : "car_prof_app", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_NAPPE_FOND" : "car_nappe_fond", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_TERRAIN_INNONDABLE" : "car_terrain_innondable", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_ROCHE_SOL" : "car_roche_sol", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_HAB" : "car_dist_hab", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_LIM_PAR" : "car_dist_lim_par", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_VEGET" : "car_dist_veget", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_PUIT" : "car_dist_puit", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAMENAGE_TERRAIN" : "des_reamenage_terrain", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAMENAGE_IMMEUBLE" : "des_reamenage_immeuble", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAL_TRVX" : "des_real_trvx", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_ANC_SS_ACCORD" : "des_anc_ss_accord", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_COLLECTE_EP" : "des_collecte_ep", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_SEP_EP_EU" : "des_sep_ep_eu", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_NB_SORTIE" : "des_eu_nb_sortie", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_TES_REGARDS" : "des_eu_tes_regards", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_PENTE_ECOUL" : "des_eu_pente_ecoul", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_REGARS_ACCES" : "des_eu_regars_acces", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_ALTERATION" : "des_eu_alteration", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_ECOULEMENT" : "des_eu_ecoulement", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_DEPOT_REGARD" : "des_eu_depot_regard", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_COMMENTAIRE" : "des_commentaire", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_INSERT" : "Admin", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_UPDATE" : "Admin n°{{id_parametre_admin}}", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_DISPLAY" : "Admin n°{{id_parametre_admin}}", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_ID_PARAMETRE_ADMIN" : "id_parametre_admin", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_ID_COM" : "id_com", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_TYPE" : "type", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_SOUS TYPE" : "sous type", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_NOM" : "nom", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_PRENOM" : "prenom", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_DESCRIPTION" : "description", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_CIVILITE" : "civilite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_DATE_FIN_VALIDITE" : "date_fin_validite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_QUALITE" : "qualite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_SIGNATURE" : "signature", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CONFORME" : "ts_conforme", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_TYPE_EFFLUENT" : "ts_type_effluent", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CAPACITE_BAC" : "ts_capacite_bac", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_NB_BAC" : "ts_nb_bac", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_COHER_TAILLE_UTIL" : "ts_coher_taille_util", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_AIRE_ETANCHE" : "ts_aire_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_AIRE_ABRI" : "ts_aire_abri", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_VENTILATION" : "ts_ventilation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CUVE_ETANCHE" : "ts_cuve_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_VAL_COMP" : "ts_val_comp", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_RUISSEL_EP" : "ts_ruissel_ep", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_ABSENCE_NUISANCE" : "ts_absence_nuisance", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_RESPECT_REGLES" : "ts_respect_regles", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_COMMENTAIRES" : "ts_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIMAIRE" : "vt_primaire", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECONDAIRE" : "vt_secondaire", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_LOC" : "vt_prim_loc", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_HT" : "vt_prim_ht", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_DIAM" : "vt_prim_diam", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_TYPE_EXTRACT" : "vt_prim_type_extract", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_LOC" : "vt_second_loc", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_HT" : "vt_second_ht", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_DIAM" : "vt_second_diam", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_TYPE_EXTRACT" : "vt_second_type_extract", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_ACCES" : "da_chasse_acces", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_AUTO" : "da_chasse_auto", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_PR_NAT_EAU" : "da_chasse_pr_nat_eau", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_OK" : "da_chasse_ok", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_DYSFONCTIONNEMENT" : "da_chasse_dysfonctionnement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_DEGRADATION" : "da_chasse_degradation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_ENTRETIEN" : "da_chasse_entretien", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_LOC_POMPE" : "da_pr_loc_pompe", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ACCES" : "da_pr_acces", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_NB_POMPE" : "da_pr_nb_pompe", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_NAT_EAU" : "da_pr_nat_eau", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_OK" : "da_pr_ok", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_CLAPET" : "da_pr_clapet", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ETANCHE" : "da_pr_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_BRANCHEMENT" : "da_pr_branchement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_DYSFONCTIONNEMENT" : "da_pr_dysfonctionnement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_DEGRADATION" : "da_pr_degradation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ENTRETIEN" : "da_pr_entretien", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_COMMENTAIRES" : "da_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_AVIS" : "cl_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_CLASSE_CBF" : "cl_classe_cbf", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_COMMENTAIRES" : "cl_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_DATE_AVIS" : "cl_date_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_AUTEUR_AVIS" : "cl_auteur_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_DATE_PROCHAIN_CONTROL" : "cl_date_prochain_control", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_MONTANT" : "cl_montant", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_FACTURE" : "cl_facture", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_FACTURE_LE" : "cl_facture_le", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CLOTURER" : "cloturer", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_RAPPORT_F" : "rapport_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE" : "", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_INSERT" : "Pretreatment", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_UPDATE" : "Prétraitement n°{{id_pretraitement}}", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_DISPLAY" : "Prétraitement n°{{id_pretraitement}}", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_PRETRAITEMENT" : "id_pretraitement", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_TYPE" : "ptr_type", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VOLUME" : "ptr_volume", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_MARQUE" : "ptr_marque", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_MATERIAU" : "ptr_materiau", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_RENFORCE" : "ptr_renforce", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VERIF_MISE_EN_EAU" : "ptr_verif_mise_en_eau", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_CLOISON" : "ptr_cloison", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_COMMENTAIRE" : "ptr_commentaire", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_DISTANCE" : "ptr_im_distance", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_HYDROM" : "ptr_im_hydrom", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_FIXATION" : "ptr_im_fixation", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_ACCES" : "ptr_im_acces", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_ET_DEGRAD" : "ptr_et_degrad", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_ET_REAL" : "ptr_et_real", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_DATE" : "ptr_vi_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_JUSTI" : "ptr_vi_justi", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_ENTR" : "ptr_vi_entr", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_BORD" : "ptr_vi_bord", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_DEST" : "ptr_vi_dest", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_PERC" : "ptr_vi_perc", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE" : "", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_INSERT" : "Water evacuation", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_UPDATE" : "Evacuation des eaux n°{{sId}}", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_DISPLAY" : "Evacuation des eaux n°{{sId}}", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_EVA" : "id_eva", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_TYPE" : "evac_type", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_LONG" : "evac_is_long", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_LARG" : "evac_is_larg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_SURFACE" : "evac_is_surface", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_PROFONDEUR" : "evac_is_profondeur", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_GEOTEX" : "evac_is_geotex", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_RAC" : "evac_is_rac", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_HUM" : "evac_is_hum", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_REG_REP" : "evac_is_reg_rep", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_REB_BCL" : "evac_is_reb_bcl", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_VEG" : "evac_is_veg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_TYPE_EFFL" : "evac_is_type_effl", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_ACC_REG" : "evac_is_acc_reg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_ETUDE_HYDROGEOL" : "evac_rp_etude_hydrogeol", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_REJET" : "evac_rp_rejet", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_GRAV" : "evac_rp_grav", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TAMP" : "evac_rp_tamp", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TYPE_EFF" : "evac_rp_type_eff", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TRAP" : "evac_rp_trap", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_TYPE" : "evac_hs_type", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_GESTIONNAIRE" : "evac_hs_gestionnaire", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_GESTIONNAIRE_AUTH" : "evac_hs_gestionnaire_auth", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_COMMENTAIRES" : "evac_commentaires", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE" : "", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_INSERT" : "Filière agréée", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_UPDATE" : "Filière agréée n°{{sId}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE" : "Liste des filières agréées du contrôle", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_FAG" : "id_fag", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TYPE" : "fag_type", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_AGREE" : "fag_agree", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_INTEGERER" : "fag_integerer", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DENOM" : "fag_denom", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FAB" : "fag_fab", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_NUM_AG" : "fag_num_ag", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_CAP_EH" : "fag_cap_eh", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_NB_CUV" : "fag_nb_cuv", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_GUIDE" : "fag_guide", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_LIVRET" : "fag_livret", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_CONTR" : "fag_contr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SOC" : "fag_soc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES" : "fag_pres", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PLAN" : "fag_plan", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TAMP" : "fag_tamp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ANCRAGE" : "fag_ancrage", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REP" : "fag_rep", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_RESPECT" : "fag_respect", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_VENTIL" : "fag_ventil", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MIL_TYP" : "fag_mil_typ", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MIL_FILT" : "fag_mil_filt", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MISE_EAU" : "fag_mise_eau", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_ALAR" : "fag_pres_alar", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_REG" : "fag_pres_reg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ATT_CONF" : "fag_att_conf", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR" : "fag_surpr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_REF" : "fag_surpr_ref", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_DIST" : "fag_surpr_dist", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_ELEC" : "fag_surpr_elec", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_AER" : "fag_surpr_aer", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REAC_BULL" : "fag_reac_bull", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_BROY" : "fag_broy", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DEC" : "fag_dec", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TYPE_EAU" : "fag_type_eau", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_MAR" : "fag_reg_mar", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_MAT" : "fag_reg_mat", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_AFFL" : "fag_reg_affl", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_HZ" : "fag_reg_hz", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_VAN" : "fag_reg_van", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_NB" : "fag_fvl_nb", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_LONG" : "fag_fvl_long", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_LARG" : "fag_fvl_larg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_PROF" : "fag_fvl_prof", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_SEP" : "fag_fvl_sep", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_PLA" : "fag_fvl_pla", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_DRAIN" : "fag_fvl_drain", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_RESP" : "fag_fvl_resp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_LONG" : "fag_fhz_long", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_LARG" : "fag_fhz_larg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_PROF" : "fag_fhz_prof", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_DRAIN" : "fag_fhz_drain", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_RESP" : "fag_fhz_resp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MAT_QUAL" : "fag_mat_qual", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MAT_EPA" : "fag_mat_epa", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_VEG" : "fag_pres_veg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_PRO" : "fag_pres_pro", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ACCES" : "fag_acces", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_DEG" : "fag_et_deg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_OD" : "fag_et_od", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_DY" : "fag_et_dy", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_DATE" : "fag_en_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_JUS" : "fag_en_jus", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_ENTR" : "fag_en_entr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_BORD" : "fag_en_bord", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_DEST" : "fag_en_dest", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_PERC" : "fag_en_perc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_CONTR" : "fag_en_contr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_MAINTEGER" : "fag_en_mainteger", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_ARB" : "fag_dist_arb", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_PARC" : "fag_dist_parc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_HAB" : "fag_dist_hab", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_CAP" : "fag_dist_cap", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_NUM_DOSSIER" : "num_dossier", + "SECTION_INSERT_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation", + "SECTION_INSERT_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Control", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_INSERT" : "Treatment", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_UPDATE" : "Treatement n°{{id_traitement}}", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_DISPLAY" : "Treatement n°{{id_traitement}}", + "SECTION_UPDATE_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation n°{{sId}}", + "SECTION_DISPLAY_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation n°{{sId}}", + "SECTION_UPDATE_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Contrôle n°{{sId}}", + "SECTION_DISPLAY_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Contrôle n°{{sId}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT" : "Liste des prétraitements du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_INSERT" : "Pretreatment", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_UPDATE" : "Pretreatment n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_DISPLAY" : "Pretreatment n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_RAPPORT_TITLE" : "Reports", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT" : "Liste des traitements du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_INSERT" : "Treatement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_UPDATE" : "Treatement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_DISPLAY" : "Treatement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_INSERT" : "Filière agréée", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_UPDATE" : "Filière agréée n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_DISPLAY" : "Filière agréée n°{{sId}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX" : "Liste des évacuations des eaux du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_INSERT" : "Evacuation des eaux", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_UPDATE" : "Evacuation des eaux n°{{id_eva}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_DISPLAY" : "Evacuation des eaux n°{{id_eva}}" +} diff --git a/src/module_anc/module/lang/lang-fr.json b/src/module_anc/module/lang/lang-fr.json new file mode 100755 index 0000000000000000000000000000000000000000..b2fd7288a32cc36971715c24ac4c18e04739dc44 --- /dev/null +++ b/src/module_anc/module/lang/lang-fr.json @@ -0,0 +1,443 @@ +{ + "TEXT_MODE_ANC_SAISIE" : "Saisie des assainissements non collectifs", + "TITLE_MODE_ANC_SAISIE" : "Saisie des ANC", + "TEXT_MODE_ANC_PARAMETRAGE" : "Paramétrage des assainissements non collectifs", + "TITLE_MODE_ANC_PARAMETRAGE" : "Paramétrage ANC", + "ANC_SAISIE_ANC_INSTALLATION_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_TITLE_INSERT" : "Installation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_COM" : "id_com", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_PARC" : "id_parc", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_SUP" : "parc_sup", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_PARCELLE_ASSOCIEES" : "parc_parcelle_associees", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_ADRESSE" : "parc_adresse", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CODE_POSTAL" : "code_postal", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_COMMUNE" : "parc_commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_TITRE" : "prop_titre", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_NOM_PRENOM" : "prop_nom_prenom", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_ADRESSE" : "prop_adresse", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_CODE_POSTAL" : "prop_code_postal", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_COMMUNE" : "prop_commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_TEL" : "prop_tel", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_MAIL" : "prop_mail", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_TYPE" : "bati_type", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_PP" : "bati_ca_nb_pp", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_EH" : "bati_ca_nb_eh", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_CHAMBRES" : "bati_ca_nb_chambres", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_NB_A_CONTROL" : "bati_nb_a_control", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_DATE_MUTATION" : "bati_date_mutation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_ENJEU" : "cont_zone_enjeu", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_SAGE" : "cont_zone_sage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_AUTRE" : "cont_zone_autre", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_URBA" : "cont_zone_urba", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_ANC" : "cont_zone_anc", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ALIM_EAU_POTABLE" : "cont_alim_eau_potable", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_USAGE" : "cont_puits_usage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_DECLARATION" : "cont_puits_declaration", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_SITUATION" : "cont_puits_situation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_TERRAIN_MITOYEN" : "cont_puits_terrain_mitoyen", + "ANC_SAISIE_ANC_INSTALLATION_FORM_OBSERVATIONS" : "Observations", + "ANC_SAISIE_ANC_INSTALLATION_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_INSTALLATION_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ARCHIVAGE" : "archivage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PHOTO_F" : "photo_f", + "ANC_SAISIE_ANC_INSTALLATION_FORM_DOCUMENT_F" : "document_f", + "ANC_SAISIE_ANC_INSTALLATION_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_INSTALLATION_FORM_COMMUNE" : "commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_SECTION" : "section", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARCELLE" : "parcelle", + "ANC_SAISIE_ANC_INSTALLATION_FORM_NB_CONTROLE" : "nb_controle", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_INSERT" : "Liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_UPDATE" : "Liste n°{{sId}}", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_DISPLAY" : "Liste n°{{sId}}", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_ID_PARAMETRE_LISTE" : "id_parametre_liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_NOM_TABLE" : "nom_table", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_NOM_LISTE" : "nom_liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_VALEURS" : "valeurs", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_ALIAS" : "alias", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_INSERT" : "Tarif", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_UPDATE" : "Tarif n°{{id_parametre_tarif}}", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_DISPLAY" : "Tarif n°{{id_parametre_tarif}}", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ID_PARAMETRE_TARIF" : "ID", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ID_COM" : "Commune", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_CONTROLE_TYPE" : "Type de contrôle", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_MONTANT" : "Montant", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ANNEE_VALIDITE" : "Année de validité", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_DEVISE" : "Devise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE" : "", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_INSERT" : "Entreprise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_UPDATE" : "Entreprise n°{{id_parametre_entreprises}}", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_DISPLAY" : "Entreprise n°{{id_parametre_entreprises}}", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_ID_PARAMETRE_ENTREPRISES" : "id_parametre_entreprises", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_ID_COM" : "id_com", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_SIRET" : "siret", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_RAISON_SOCIALE" : "raison_sociale", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_NOM_ENTREPRISE" : "nom_entreprise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_NOM_CONTACT" : "nom_contact", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_TELEPHONE_FIXE" : "telephone_fixe", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_TELEPHONE_MOBILE" : "telephone_mobile", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_WEB" : "web", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAIL" : "mail", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CODE_POSTAL" : "code_postal", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_VOIE" : "voie", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_BUREAU_ETUDE" : "bureau_etude", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CONCEPTEUR" : "concepteur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CONSTRUCTEUR" : "constructeur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_INSTALLATEUR" : "installateur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_VIDANGEUR" : "vidangeur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_EN_ACTIVITE" : "en_activite", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_OBSERVATIONS" : "observations", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CREAT" : "creat", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CREAT_DATE" : "creat_date", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAJ" : "maj", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAJ_DATE" : "maj_date", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_OBSERVATIONS" : "Observations", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_ARCHIVAGE" : "archivage", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_PHOTO_F" : "Photos", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_DOCUMENT_F" : "Documents", + "ANC_SAISIE_ANC_CONTROLE_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_TITLE_INSERT" : "Contrôle", + "ANC_SAISIE_ANC_CONTROLE_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_CONTROLE_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_CONTROLE_FORM_CONTROLE_TYPE" : "controle_type", + "ANC_SAISIE_ANC_CONTROLE_FORM_CONTROLE_SS_TYPE" : "controle_ss_type", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_CONTROL" : "des_date_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_PERS_CONTROL" : "des_pers_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_AGENT_CONTROL" : "des_agent_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REFUS_VISITE" : "des_refus_visite", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_INSTALLATION" : "des_date_installation", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_RECOMMANDE" : "des_date_recommande", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_NUMERO_RECOMMANDE" : "des_numero_recommande", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DATE_DEPOT" : "dep_date_depot", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_LISTE_PIECE" : "dep_liste_piece", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DOSSIER_COMPLET" : "dep_dossier_complet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DATE_ENVOI_INCOMPLET" : "dep_date_envoi_incomplet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_NATURE_PROJET" : "des_nature_projet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_CONCEPTEUR" : "des_concepteur", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_SURFACE_DISPO_M2" : "car_surface_dispo_m2", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_PERMEA" : "car_permea", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_VALEUR_PERMEA" : "car_valeur_permea", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_HYDROMORPHIE" : "car_hydromorphie", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_PROF_APP" : "car_prof_app", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_NAPPE_FOND" : "car_nappe_fond", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_TERRAIN_INNONDABLE" : "car_terrain_innondable", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_ROCHE_SOL" : "car_roche_sol", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_HAB" : "car_dist_hab", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_LIM_PAR" : "car_dist_lim_par", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_VEGET" : "car_dist_veget", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_PUIT" : "car_dist_puit", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAMENAGE_TERRAIN" : "des_reamenage_terrain", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAMENAGE_IMMEUBLE" : "des_reamenage_immeuble", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAL_TRVX" : "des_real_trvx", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_ANC_SS_ACCORD" : "des_anc_ss_accord", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_COLLECTE_EP" : "des_collecte_ep", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_SEP_EP_EU" : "des_sep_ep_eu", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_NB_SORTIE" : "des_eu_nb_sortie", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_TES_REGARDS" : "des_eu_tes_regards", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_PENTE_ECOUL" : "des_eu_pente_ecoul", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_REGARS_ACCES" : "des_eu_regars_acces", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_ALTERATION" : "des_eu_alteration", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_ECOULEMENT" : "des_eu_ecoulement", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_DEPOT_REGARD" : "des_eu_depot_regard", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_COMMENTAIRE" : "des_commentaire", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_INSERT" : "Admin", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_UPDATE" : "Admin n°{{id_parametre_admin}}", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_DISPLAY" : "Admin n°{{id_parametre_admin}}", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_ID_PARAMETRE_ADMIN" : "id_parametre_admin", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_ID_COM" : "id_com", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_TYPE" : "type", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_SOUS TYPE" : "sous type", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_NOM" : "nom", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_PRENOM" : "prenom", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_DESCRIPTION" : "description", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_CIVILITE" : "civilite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_DATE_FIN_VALIDITE" : "date_fin_validite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_QUALITE" : "qualite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_SIGNATURE" : "signature", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CONFORME" : "ts_conforme", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_TYPE_EFFLUENT" : "ts_type_effluent", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CAPACITE_BAC" : "ts_capacite_bac", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_NB_BAC" : "ts_nb_bac", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_COHER_TAILLE_UTIL" : "ts_coher_taille_util", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_AIRE_ETANCHE" : "ts_aire_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_AIRE_ABRI" : "ts_aire_abri", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_VENTILATION" : "ts_ventilation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CUVE_ETANCHE" : "ts_cuve_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_VAL_COMP" : "ts_val_comp", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_RUISSEL_EP" : "ts_ruissel_ep", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_ABSENCE_NUISANCE" : "ts_absence_nuisance", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_RESPECT_REGLES" : "ts_respect_regles", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_COMMENTAIRES" : "ts_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIMAIRE" : "vt_primaire", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECONDAIRE" : "vt_secondaire", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_LOC" : "vt_prim_loc", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_HT" : "vt_prim_ht", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_DIAM" : "vt_prim_diam", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_TYPE_EXTRACT" : "vt_prim_type_extract", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_LOC" : "vt_second_loc", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_HT" : "vt_second_ht", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_DIAM" : "vt_second_diam", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_TYPE_EXTRACT" : "vt_second_type_extract", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_ACCES" : "da_chasse_acces", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_AUTO" : "da_chasse_auto", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_PR_NAT_EAU" : "da_chasse_pr_nat_eau", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_OK" : "da_chasse_ok", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_DYSFONCTIONNEMENT" : "da_chasse_dysfonctionnement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_DEGRADATION" : "da_chasse_degradation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_ENTRETIEN" : "da_chasse_entretien", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_LOC_POMPE" : "da_pr_loc_pompe", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ACCES" : "da_pr_acces", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_NB_POMPE" : "da_pr_nb_pompe", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_NAT_EAU" : "da_pr_nat_eau", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_OK" : "da_pr_ok", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_CLAPET" : "da_pr_clapet", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ETANCHE" : "da_pr_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_BRANCHEMENT" : "da_pr_branchement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_DYSFONCTIONNEMENT" : "da_pr_dysfonctionnement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_DEGRADATION" : "da_pr_degradation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ENTRETIEN" : "da_pr_entretien", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_COMMENTAIRES" : "da_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_AVIS" : "cl_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_CLASSE_CBF" : "cl_classe_cbf", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_COMMENTAIRES" : "cl_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_DATE_AVIS" : "cl_date_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_AUTEUR_AVIS" : "cl_auteur_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_DATE_PROCHAIN_CONTROL" : "cl_date_prochain_control", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_MONTANT" : "cl_montant", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_FACTURE" : "cl_facture", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_FACTURE_LE" : "cl_facture_le", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CLOTURER" : "cloturer", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_RAPPORT_F" : "rapport_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE" : "", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_INSERT" : "Prétraitement", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_UPDATE" : "Prétraitement n°{{id_pretraitement}}", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_DISPLAY" : "Prétraitement n°{{id_pretraitement}}", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_PRETRAITEMENT" : "id_pretraitement", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_TYPE" : "ptr_type", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VOLUME" : "ptr_volume", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_MARQUE" : "ptr_marque", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_MATERIAU" : "ptr_materiau", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_RENFORCE" : "ptr_renforce", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VERIF_MISE_EN_EAU" : "ptr_verif_mise_en_eau", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_CLOISON" : "ptr_cloison", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_COMMENTAIRE" : "ptr_commentaire", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_DISTANCE" : "ptr_im_distance", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_HYDROM" : "ptr_im_hydrom", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_FIXATION" : "ptr_im_fixation", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_ACCES" : "ptr_im_acces", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_ET_DEGRAD" : "ptr_et_degrad", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_ET_REAL" : "ptr_et_real", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_DATE" : "ptr_vi_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_JUSTI" : "ptr_vi_justi", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_ENTR" : "ptr_vi_entr", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_BORD" : "ptr_vi_bord", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_DEST" : "ptr_vi_dest", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_PERC" : "ptr_vi_perc", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE" : "", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_INSERT" : "Evacuation des eaux", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_UPDATE" : "Evacuation des eaux n°{{id_eva}}", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_DISPLAY" : "Evacuation des eaux n°{{id_eva}}", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_EVA" : "id_eva", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_TYPE" : "evac_type", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_LONG" : "evac_is_long", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_LARG" : "evac_is_larg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_SURFACE" : "evac_is_surface", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_PROFONDEUR" : "evac_is_profondeur", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_GEOTEX" : "evac_is_geotex", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_RAC" : "evac_is_rac", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_HUM" : "evac_is_hum", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_REG_REP" : "evac_is_reg_rep", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_REB_BCL" : "evac_is_reb_bcl", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_VEG" : "evac_is_veg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_TYPE_EFFL" : "evac_is_type_effl", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_ACC_REG" : "evac_is_acc_reg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_ETUDE_HYDROGEOL" : "evac_rp_etude_hydrogeol", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_REJET" : "evac_rp_rejet", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_GRAV" : "evac_rp_grav", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TAMP" : "evac_rp_tamp", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TYPE_EFF" : "evac_rp_type_eff", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TRAP" : "evac_rp_trap", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_TYPE" : "evac_hs_type", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_GESTIONNAIRE" : "evac_hs_gestionnaire", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_GESTIONNAIRE_AUTH" : "evac_hs_gestionnaire_auth", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_COMMENTAIRES" : "evac_commentaires", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE" : "", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_INSERT" : "Filière agréée", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_UPDATE" : "Filière agréée n°{{id_fag}}", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_DISPLAY" : "Filière agréée n°{{id_fag}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE" : "Liste des filières agréées du contrôle", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_FAG" : "id_fag", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TYPE" : "fag_type", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_AGREE" : "fag_agree", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_INTEGERER" : "fag_integerer", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DENOM" : "fag_denom", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FAB" : "fag_fab", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_NUM_AG" : "fag_num_ag", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_CAP_EH" : "fag_cap_eh", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_NB_CUV" : "fag_nb_cuv", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_GUIDE" : "fag_guide", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_LIVRET" : "fag_livret", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_CONTR" : "fag_contr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SOC" : "fag_soc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES" : "fag_pres", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PLAN" : "fag_plan", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TAMP" : "fag_tamp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ANCRAGE" : "fag_ancrage", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REP" : "fag_rep", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_RESPECT" : "fag_respect", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_VENTIL" : "fag_ventil", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MIL_TYP" : "fag_mil_typ", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MIL_FILT" : "fag_mil_filt", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MISE_EAU" : "fag_mise_eau", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_ALAR" : "fag_pres_alar", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_REG" : "fag_pres_reg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ATT_CONF" : "fag_att_conf", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR" : "fag_surpr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_REF" : "fag_surpr_ref", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_DIST" : "fag_surpr_dist", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_ELEC" : "fag_surpr_elec", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_AER" : "fag_surpr_aer", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REAC_BULL" : "fag_reac_bull", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_BROY" : "fag_broy", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DEC" : "fag_dec", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TYPE_EAU" : "fag_type_eau", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_MAR" : "fag_reg_mar", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_MAT" : "fag_reg_mat", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_AFFL" : "fag_reg_affl", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_HZ" : "fag_reg_hz", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_VAN" : "fag_reg_van", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_NB" : "fag_fvl_nb", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_LONG" : "fag_fvl_long", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_LARG" : "fag_fvl_larg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_PROF" : "fag_fvl_prof", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_SEP" : "fag_fvl_sep", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_PLA" : "fag_fvl_pla", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_DRAIN" : "fag_fvl_drain", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_RESP" : "fag_fvl_resp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_LONG" : "fag_fhz_long", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_LARG" : "fag_fhz_larg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_PROF" : "fag_fhz_prof", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_DRAIN" : "fag_fhz_drain", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_RESP" : "fag_fhz_resp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MAT_QUAL" : "fag_mat_qual", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MAT_EPA" : "fag_mat_epa", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_VEG" : "fag_pres_veg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_PRO" : "fag_pres_pro", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ACCES" : "fag_acces", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_DEG" : "fag_et_deg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_OD" : "fag_et_od", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_DY" : "fag_et_dy", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_DATE" : "fag_en_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_JUS" : "fag_en_jus", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_ENTR" : "fag_en_entr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_BORD" : "fag_en_bord", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_DEST" : "fag_en_dest", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_PERC" : "fag_en_perc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_CONTR" : "fag_en_contr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_MAINTEGER" : "fag_en_mainteger", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_ARB" : "fag_dist_arb", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_PARC" : "fag_dist_parc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_HAB" : "fag_dist_hab", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_CAP" : "fag_dist_cap", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_NUM_DOSSIER" : "num_dossier", + "SECTION_INSERT_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation", + "SECTION_INSERT_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Contrôle", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_INSERT" : "Traitement", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_UPDATE" : "Traitement n°{{id_traitement}}", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_DISPLAY" : "Traitement n°{{id_traitement}}", + "SECTION_UPDATE_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation n°{{sId}}", + "SECTION_DISPLAY_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation n°{{sId}}", + "SECTION_UPDATE_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Contrôle n°{{sId}}", + "SECTION_DISPLAY_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Contrôle n°{{sId}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT" : "Liste des prétraitements du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_INSERT" : "Prétraitement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_UPDATE" : "Prétraitement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_DISPLAY" : "Prétraitement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_RAPPORT_TITLE" : "Rapports", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT" : "Liste des traitements du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_INSERT" : "Traitement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_UPDATE" : "Traitement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_DISPLAY" : "Traitement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_INSERT" : "Filière agréée", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_UPDATE" : "Filière agréée n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_DISPLAY" : "Filière agréée n°{{sId}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX" : "Liste des évacuations des eaux du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_INSERT" : "Evacuation des eaux", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_UPDATE" : "Evacuation des eaux n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_DISPLAY" : "Evacuation des eaux n°{{sId}}" +} diff --git a/src/module_anc/module/less/controle.less b/src/module_anc/module/less/controle.less new file mode 100755 index 0000000000000000000000000000000000000000..58349156f8a25029e8ebf618f3663700b2e0b4e4 --- /dev/null +++ b/src/module_anc/module/less/controle.less @@ -0,0 +1,29 @@ + + +ul.anc_saisie_controle_rapports_list { + float: left; + min-width: 50%; + padding: 5px 0; + margin: 2px 0 0; + font-size: 14px; + text-align: left; + list-style: none; + background-color: #fff; + -webkit-background-clip: padding-box; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, 0.15); + border-radius: 4px; + -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); +} + +ul.anc_saisie_controle_rapports_list > li > a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: 400; + line-height: 1.42857143; + color: #333; + white-space: nowrap; +} diff --git a/src/module_anc/module/less/installation.less b/src/module_anc/module/less/installation.less new file mode 100755 index 0000000000000000000000000000000000000000..e38d8f784d3187ee36503dd58890da72e2b6b8fe --- /dev/null +++ b/src/module_anc/module/less/installation.less @@ -0,0 +1,13 @@ +// Bouton "supprimer les installations". +button[name="anc_saisie_anc_installation_deleteFlexigrid"] { + color: #fff; + background-color: #d9534f; + border-color: #d43f3a; +} +// Bouton "Ajouter une installation". +button[name="anc_saisie_anc_installation_add_smallFlexigrid"] { + color: #fff; + background-color: #5cb85c; + border-color: #4cae4c; + margin-right: 100px; +} \ No newline at end of file diff --git a/src/module_anc/module/less/main.less b/src/module_anc/module/less/main.less new file mode 100755 index 0000000000000000000000000000000000000000..527f89c953f796ab8027de8bab8048ac2e37e216 --- /dev/null +++ b/src/module_anc/module/less/main.less @@ -0,0 +1,6 @@ +// LESS +@ui-grid-bg-image: "../images/ui-grid/wbg.gif"; +@font-color-purple: #6d1a67; +@test-color: black; +@import 'installation.less'; +@import 'controle.less'; diff --git a/src/module_anc/web_service/conf/properties.inc b/src/module_anc/web_service/conf/properties.inc new file mode 100755 index 0000000000000000000000000000000000000000..8ac9596648d42b3d4bbf8f11d1902d18a386d30b --- /dev/null +++ b/src/module_anc/web_service/conf/properties.inc @@ -0,0 +1,16 @@ +<?php + $properties["schema_anc"] = 's_anc'; + $properties["anc"]["files_container"] = 'anc'; + $properties["anc"]["cont_zone_urba"]["intersect"]["schema"] = ''; + $properties["anc"]["cont_zone_urba"]["intersect"]["table"] = ''; + $properties["anc"]["cont_zone_urba"]["intersect"]["column"] = ''; + $properties["anc"]["cont_zone_urba"]["intersect"]["column_geom"] = ''; + $properties["anc"]["code_postal"]["schema"] = ''; + $properties["anc"]["code_postal"]["table"] = ''; + $properties["anc"]["code_postal"]["column"] = ''; + $properties["anc"]["controle"]["business_object_id"] = ''; + $properties["anc"]["controle"]["map_id"] = false; + $properties["anc"]["controle"]["zoom_on_parcelle"] = true; + $properties["anc"]["installation"]["map_id"] = false; + $properties["anc"]["installation"]["zoom_on_parcelle"] = true; +?> diff --git a/src/module_anc/web_service/conf/selected_properties.inc b/src/module_anc/web_service/conf/selected_properties.inc new file mode 100755 index 0000000000000000000000000000000000000000..9a70ac05395c31c2ef46c3a396d0361a8efc6484 --- /dev/null +++ b/src/module_anc/web_service/conf/selected_properties.inc @@ -0,0 +1,14 @@ +<?php + +$aAdminFields = Array( + 'schema_anc', + 'anc.*' +); +$aUserFields = Array( + 'schema_anc', + 'anc.*' +); + +$properties['aAdminFields'] = array_merge($properties['aAdminFields'], $aAdminFields); +$properties['aUserFields'] = array_merge($properties['aUserFields'], $aUserFields); +?> \ No newline at end of file diff --git a/src/module_anc/web_service/conf/version.inc b/src/module_anc/web_service/conf/version.inc new file mode 100755 index 0000000000000000000000000000000000000000..eedb3a0e0513a5ef8b2349e807e833b9c2611598 --- /dev/null +++ b/src/module_anc/web_service/conf/version.inc @@ -0,0 +1,7 @@ +<?php +// Numéro de la version de cadastre +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_anc/web_service/sql/sqlQueries.xml b/src/module_anc/web_service/sql/sqlQueries.xml new file mode 100755 index 0000000000000000000000000000000000000000..fc2a0a44d21b1d75d0007b834dbfdbf5b888a577 --- /dev/null +++ b/src/module_anc/web_service/sql/sqlQueries.xml @@ -0,0 +1,3174 @@ +<?xml version="1.0" encoding="utf-8"?> +<sqlQueries> + <title>Scripts d'installation et de mises à jour de la base du VAS</title> + <queriesCollection> + <query> + <type>init</type> + <version>2017.01.00</version> + <code> + <![CDATA[ + -- + SELECT s_vitis.create_role_if_not_exists('anc_admin', 'NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION'); + SELECT s_vitis.create_role_if_not_exists('anc_user', 'NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION'); + --Partie pour le module anc version 2017-01-00 généré par WAB le 24/04/2017 à 14:59:20 + CREATE SCHEMA s_anc AUTHORIZATION u_vitis; + GRANT ALL ON SCHEMA s_anc TO u_vitis; + GRANT USAGE ON SCHEMA s_anc TO anc_admin; + GRANT USAGE ON SCHEMA s_anc TO anc_user; + CREATE TABLE s_anc.controle ( id_controle serial NOT NULL, id_installation int4 NOT NULL, controle_type character varying(50) NOT NULL, controle_ss_type character varying(50), des_date_control date NOT NULL, des_interval_control int4 NOT NULL, des_pers_control character varying(50), des_agent_control character varying(50), des_installateur int4, des_refus_visite boolean, des_date_installation date, des_date_recommande date, des_numero_recommande character varying(50), dep_date_depot date, dep_liste_piece text, dep_dossier_complet boolean, dep_date_envoi_incomplet date, des_nature_projet character varying(50), des_concepteur int4, des_ancien_disp text, car_surface_dispo_m2 character varying(50), car_permea character varying(50), car_valeur_permea character varying(50), car_hydromorphie character varying(50), car_prof_app character varying(50), car_nappe_fond character varying(50), car_terrain_innondable character varying(50), car_roche_sol character varying(50), car_dist_hab character varying(50), car_dist_lim_par character varying(50), car_dist_veget character varying(50), car_dist_puit character varying(50), des_reamenage_terrain character varying(50), des_reamenage_immeuble character varying(50), des_real_trvx character varying(50), des_anc_ss_accord character varying(50), des_collecte_ep character varying(50), des_sep_ep_eu character varying(50), des_eu_nb_sortie integer, des_eu_tes_regards integer, des_eu_pente_ecoul character varying(50), des_eu_regars_acces character varying(50), des_eu_alteration character varying(50), des_eu_ecoulement character varying(50), des_eu_depot_regard character varying(50), des_commentaire text, ts_conforme character varying(50), ts_type_effluent character varying(50), ts_capacite_bac character varying(50), ts_nb_bac integer, ts_coher_taille_util character varying(50), ts_aire_etanche character varying(50), ts_aire_abri character varying(50), ts_ventilation character varying(50), ts_cuve_etanche character varying(50), ts_val_comp character varying(50), ts_ruissel_ep character varying(50), ts_absence_nuisance character varying(50), ts_respect_regles character varying(50), ts_commentaires text, vt_primaire character varying(50), vt_secondaire character varying(50), vt_prim_loc character varying(50), vt_prim_ht character varying(50), vt_prim_diam character varying(50), vt_prim_type_extract character varying(50), vt_second_loc character varying(50), vt_second_ht character varying(50), vt_second_diam character varying(50), vt_second_type_extract character varying(50), da_chasse_acces character varying(50), da_chasse_auto character varying(50), da_chasse_pr_nat_eau character varying(50), da_chasse_ok character varying(50), da_chasse_dysfonctionnement character varying(50), da_chasse_degradation character varying(50), da_chasse_entretien character varying(50), da_pr_loc_pompe character varying(50), da_pr_acces character varying(50), da_pr_nb_pompe integer, da_pr_nat_eau character varying(50), da_pr_ventilatio character varying(50), da_pr_ok character varying(50), da_pr_alarme character varying(50), da_pr_clapet character varying(50), da_pr_etanche character varying(50), da_pr_branchement character varying(50), da_pr_dysfonctionnement character varying(50), da_pr_degradation character varying(50), da_pr_entretien character varying(50), da_commentaires text, cl_avis character varying(25), cl_classe_cbf character varying(25), cl_commentaires text, cl_date_avis date, cl_auteur_avis character varying(50), cl_date_prochain_control date, cl_montant character varying(50), cl_facture boolean, cl_facture_le date, maj character varying(30), maj_date date, "create" character varying(30) NOT NULL, create_date date NOT NULL, cloturer boolean, photos_f text, fiche_f text, rapport_f text, schema_f text, documents_f text, plan_f text, CONSTRAINT id_s_anc_controle PRIMARY KEY (id_controle)); + CREATE TABLE s_anc.dessin ( id_dessin serial NOT NULL, id_controle int4 NOT NULL, description text, label character varying(50), taille_text character varying(25), taille_geom character varying(25), couleur_contour character varying(25), couleur_fond character varying(25), couleur_label character varying(25), symbol character varying(25), symbol_angle character varying(25), observations text, maj character varying(50), maj_date date, "create" character varying(50), create_date date, archivage boolean, geom geometry, CONSTRAINT id_s_anc_dessin PRIMARY KEY (id_dessin), CONSTRAINT enforce_srid_geom CHECK (st_srid(geom) = 2154)); + CREATE TABLE s_anc.evacuation_eaux ( id_eva serial NOT NULL, id_controle int4 NOT NULL, evac_type character varying(50) NOT NULL, evac_is_nb int4, evac_is_long float, evac_is_larg float, evac_is_lin_total float, evac_is_surface float, evac_is_profondeur float, evac_is_geotex character varying(3), evac_is_rac character varying(3), evac_is_hum character varying(3), evac_is_reg_rep character varying(3), evac_is_reb_bcl character varying(3), evac_is_veg character varying(3), evac_is_type_effl character varying(50), evac_is_acc_reg character varying(3), evac_rp_type character varying(50), evac_rp_etude_hydrogeol character varying(3), evac_rp_rejet character varying(3), evac_rp_grav character varying(3), evac_rp_tamp character varying(3), evac_rp_type_eff character varying(50), evac_rp_trap character varying(3), evac_hs_type character varying(50), evac_hs_gestionnaire character varying(50), evac_hs_gestionnaire_auth character varying(3), evac_hs_intr character varying(3), evac_hs_type_eff character varying(50), evac_hs_ecoul character varying(3), evac_hs_etat text, evac_commentaires text, maj character varying(30), maj_date date, "create" character varying(30) NOT NULL, create_date date NOT NULL, photos_f text, fiche_f text, schema_f text, documents_f text, plan_f text, CONSTRAINT id_s_anc_eva PRIMARY KEY (id_eva)); + CREATE TABLE s_anc.filieres_agrees ( id_fag serial NOT NULL, id_controle int4 NOT NULL, fag_type character varying(50) NOT NULL, fag_agree character varying(30), fag_integerer character varying(30), fag_type_fil character varying(50), fag_denom character varying(50), fag_fab character varying(50), fag_num_ag int4, fag_cap_eh float4, fag_nb_cuv int4, fag_num int4, fag_num_filt int4, fag_mat_cuv character varying(50), fag_guide character varying(30), fag_livret character varying(30), fag_contr character varying(30), fag_soc character varying(50), fag_pres character varying(30), fag_plan character varying(30), fag_tamp character varying(30), fag_ancrage character varying(30), fag_rep character varying(30), fag_respect character varying(30), fag_ventil character varying(30), fag_mil_typ character varying(50), fag_mil_filt character varying(30), fag_mise_eau character varying(30), fag_pres_alar character varying(30), fag_pres_reg character varying(30), fag_att_conf character varying(30), fag_surpr character varying(30), fag_surpr_ref character varying(50), fag_surpr_dist character varying(30), fag_surpr_elec int4, fag_surpr_aer character varying(30), fag_reac_bull character varying(30), fag_broy character varying(30), fag_dec character varying(30), fag_type_eau character varying(50), fag_reg_mar character varying(50), fag_reg_mat character varying(50), fag_reg_affl character varying(30), fag_reg_hz character varying(30), fag_reg_van character varying(30), fag_fvl_nb int4, fag_fvl_long int4, fag_fvl_larg int4, fag_fvl_prof int4, fag_fvl_sep character varying(30), fag_fvl_pla character varying(30), fag_fvl_drain character varying(30), fag_fvl_resp character varying(30), fag_fhz_long int4, fag_fhz_larg int4, fag_fhz_prof int4, fag_fhz_drain character varying(30), fag_fhz_resp character varying(30), fag_mat_qual character varying(30), fag_mat_epa character varying(30), fag_pres_veg character varying(30), fag_pres_pro character varying(30), fag_acces character varying(30), fag_et_deg character varying(50), fag_et_od character varying(30), fag_et_dy text, fag_en_date date, fag_en_jus character varying(30), fag_en_entr character varying(50), fag_en_bord int4, fag_en_dest character varying(50), fag_en_perc int4, fag_en_contr character varying(30), fag_en_mainteger character varying(50), fag_dist_arb character varying(30), fag_dist_parc character varying(30), fag_dist_hab character varying(30), fag_dist_cap character varying(30), maj character varying(30), maj_date date, "create" character varying(30) NOT NULL, create_date date NOT NULL, photos_f text, fiche_f text, schema_f text, documents_f text, plan_f text, CONSTRAINT id_s_anc_fag PRIMARY KEY (id_fag)); + CREATE TABLE s_anc.installation ( id_installation serial NOT NULL, id_com character varying(5) NOT NULL, id_parc character varying(14), parc_sup character varying(50), parc_parcelle_associees text, parc_adresse character varying(50), code_postal character varying(5), parc_commune character varying(50), prop_titre character varying(50), prop_nom_prenom character varying(50), prop_adresse character varying(50), prop_code_postal character varying(5), prop_commune character varying(50), prop_tel character varying(10), prop_mail character varying(50), bati_type character varying(50), bati_ca_nb_pp int4, bati_ca_nb_eh int4, bati_ca_nb_chambres int4, bati_ca_nb_autres_pieces int4, bati_ca_nb_occupant int4, bati_nb_a_control int4, bati_date_achat character varying(50), bati_date_mutation character varying(50), cont_zone_enjeu character varying(50), cont_zone_sage character varying(50), cont_zone_autre character varying(50), cont_zone_urba character varying(50), cont_zone_anc character varying(50), cont_alim_eau_potable character varying(50), cont_puits_usage character varying(50), cont_puits_declaration character varying(50), cont_puits_situation character varying(50), cont_puits_terrain_mitoyen character varying(50), observations text, maj character varying(30), maj_date date, "create" character varying(30), create_date date, archivage character varying(3), geom geometry, photo_f text, document_f text, CONSTRAINT id_s_anc_installation PRIMARY KEY (id_installation), CONSTRAINT s_anc_installation_check CHECK (char_length('id_parc'::text) = 15), CONSTRAINT s_anc_installation_prop_nom_prenom_check CHECK (upper((prop_nom_prenom)::text) = (prop_nom_prenom)::text), CONSTRAINT s_anc_installation_prop_commune_check CHECK (upper((prop_commune)::text) = (prop_commune)::text), CONSTRAINT s_anc_installation_prop_titre_check CHECK (upper((prop_titre)::text) = (prop_titre)::text), CONSTRAINT s_anc_installation_parc_commune_check CHECK (upper((parc_commune)::text) = (parc_commune)::text), CONSTRAINT s_anc_installation_prop_adresse_check CHECK (upper((prop_adresse)::text) = (prop_adresse)::text)); + CREATE TABLE s_anc.param_admin ( id_parametre_admin serial NOT NULL, id_com character varying(5) NOT NULL, type character varying(50), "sous_type" character varying(50), nom character varying(50), prenom character varying(50), description text, civilite character varying(50), date_fin_validite date, qualite character varying(50), Signature text, CONSTRAINT s_anc_param_admin_pkey PRIMARY KEY (id_parametre_admin)); + CREATE TABLE s_anc.param_entreprise ( id_parametre_entreprises serial NOT NULL, id_com character varying(5) NOT NULL, siret character varying(50), raison_sociale character varying(50), nom_entreprise character varying(50), nom_contact character varying(50), telephone_fixe character varying(10), telephone_mobile character varying(10), web character varying(255), mail character varying(50), code_postal character varying(5), voie character varying(255), bureau_etude boolean, concepteur boolean, constructeur boolean, installateur boolean, vidangeur boolean, en_activite boolean, observations text, creat character varying(50), creat_date date, maj character varying(50), maj_date date, geom geometry, CONSTRAINT s_anc_param_entreprise_pkey PRIMARY KEY (id_parametre_entreprises)); + CREATE TABLE s_anc.nom_table(id_nom_table character varying(50), CONSTRAINT s_anc_nom_table_pkey PRIMARY KEY (id_nom_table)); + CREATE TABLE s_anc.nom_liste(id_nom_liste serial NOT NULL, nom_liste character varying(50), id_nom_table character varying(50), CONSTRAINT s_anc_nom_liste_pkey PRIMARY KEY (id_nom_liste)); + CREATE TABLE s_anc.param_liste ( id_parametre_liste serial NOT NULL, id_nom_table character varying(50), nom_liste character varying(50), valeur character varying(255), alias character varying(255), CONSTRAINT s_anc_param_liste_pkey PRIMARY KEY (id_parametre_liste)); + CREATE TABLE s_anc.param_tarif ( id_parametre_tarif serial NOT NULL, id_com character varying(6) NOT NULL, controle_type character varying(50), montant character varying(25), annee_validite character varying(10), devise character varying(10), CONSTRAINT s_anc_param_tarif_pkey PRIMARY KEY (id_parametre_tarif)); + CREATE TABLE s_anc.pretraitement ( id_pretraitement serial NOT NULL, id_controle int4 NOT NULL, ptr_type character varying(50) NOT NULL, ptr_volume character varying(50), ptr_marque character varying(50), ptr_materiau character varying(50), ptr_pose character varying(50), ptr_adapte character varying(50), ptr_conforme_projet character varying(50), ptr_dalle_repartition character varying(50), ptr_renforce character varying(50), ptr_verif_mise_en_eau character varying(50), ptr_type_eau character varying(50), ptr_reglementaire character varying(50), ptr_destination character varying(50), ptr_cloison character varying(50), ptr_commentaire text, ptr_im_distance character varying(50), ptr_im_hydrom character varying(50), ptr_im_dalle character varying(50), ptr_im_renfor character varying(50), ptr_im_puit character varying(50), ptr_im_fixation character varying(50), ptr_im_acces character varying(50), ptr_et_degrad character varying(50), ptr_et_real character varying(50), ptr_vi_date date, ptr_vi_justi character varying(50), ptr_vi_entr character varying(50), ptr_vi_bord int4, ptr_vi_dest character varying(50), ptr_vi_perc int4, maj character varying(30), maj_date date, "create" character varying(30) NOT NULL, create_date date NOT NULL, photos_f text, fiche_f text, schema_f text, documents_f text, plan_f text, CONSTRAINT id_s_anc_pretraitement PRIMARY KEY (id_pretraitement)); + CREATE TABLE s_anc.traitement ( id_traitement serial NOT NULL, id_controle int4 NOT NULL, tra_type character varying(50) NOT NULL, tra_nb int4, tra_long character varying(50), tra_larg character varying(50), tra_tot_lin character varying(50), tra_surf character varying(50), tra_largeur character varying(50), tra_hauteur character varying(50), tra_profondeur character varying(50), tra_dist_hab character varying(50), tra_dist_lim_parc character varying(50), tra_dist_veget character varying(50), tra_dist_puit character varying(50), tra_vm_racine character varying(50), tra_vm_humidite character varying(50), tra_vm_imper character varying(50), tra_vm_geogrille character varying(50), tra_vm_grav_qual character varying(50), tra_vm_grav_ep character varying(50), tra_vm_geo_text character varying(50), tra_vm_ht_terre_veget character varying(50), tra_vm_tuy_perf character varying(50), tra_vm_bon_mat character varying(50), tra_vm_sab_ep character varying(50), tra_vm_sab_qual character varying(50), tra_regrep_mat character varying(50), tra_regrep_affl character varying(50), tra_regrep_equi character varying(50), tra_regrep_perf character varying(50), tra_regbl_mat character varying(50), tra_regbl_affl character varying(50), tra_regbl_hz character varying(50), tra_regbl_epand character varying(50), tra_regbl_perf character varying(50), tra_regcol_mat character varying(50), tra_regcol_affl character varying(50), tra_regcol_hz character varying(50), maj character varying(30), maj_date date, "create" character varying(30) NOT NULL, create_date date NOT NULL, photos_f text, fiche_f text, schema_f text, documents_f text, plan_f text, CONSTRAINT id_s_anc_traitement PRIMARY KEY (id_traitement)); + ALTER TABLE s_anc.controle ADD CONSTRAINT fk_s_anc_controle FOREIGN KEY (id_installation) REFERENCES s_anc.installation (id_installation) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.controle ADD CONSTRAINT fk_s_anc_concepteur FOREIGN KEY (des_concepteur) REFERENCES s_anc.param_entreprise (id_parametre_entreprises) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.controle ADD CONSTRAINT fk_s_anc_installateur FOREIGN KEY (des_installateur) REFERENCES s_anc.param_entreprise (id_parametre_entreprises) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.dessin ADD CONSTRAINT fk_s_anc_controle_dessin FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.evacuation_eaux ADD CONSTRAINT fk_s_anc_controle_evacuation FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.filieres_agrees ADD CONSTRAINT fk_s_anc_controle_filiaires FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.pretraitement ADD CONSTRAINT fk_s_anc_controle_pretraitement FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.traitement ADD CONSTRAINT fk_s_anc_controle_traitement FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.nom_liste ADD CONSTRAINT fk_s_anc_nom_table FOREIGN KEY (id_nom_table) REFERENCES s_anc.nom_table (id_nom_table) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.nom_liste ADD CONSTRAINT uk_nom_liste UNIQUE(id_nom_table, nom_liste); + ALTER TABLE s_anc.param_liste ADD CONSTRAINT fk_s_anc_nom_table_liste FOREIGN KEY (id_nom_table, nom_liste) REFERENCES s_anc.nom_liste (id_nom_table, nom_liste) ON UPDATE Restrict ON DELETE Restrict; + CREATE OR REPLACE VIEW s_anc.v_installation AS sELECT installation.id_installation, installation.id_com, installation.id_parc, installation.parc_sup, installation.parc_parcelle_associees, installation.parc_adresse, installation.code_postal, installation.parc_commune, installation.prop_titre, installation.prop_nom_prenom, installation.prop_adresse, installation.prop_code_postal, installation.prop_commune, installation.prop_tel, installation.prop_mail, installation.bati_type, installation.bati_ca_nb_pp, installation.bati_ca_nb_eh, installation.bati_ca_nb_chambres, installation.bati_ca_nb_autres_pieces, installation.bati_ca_nb_occupant, installation.bati_nb_a_control, installation.bati_date_achat, installation.bati_date_mutation, installation.cont_zone_enjeu, installation.cont_zone_sage, installation.cont_zone_autre, installation.cont_zone_urba, installation.cont_zone_anc, installation.cont_alim_eau_potable, installation.cont_puits_usage, installation.cont_puits_declaration, installation.cont_puits_situation, installation.cont_puits_terrain_mitoyen, installation.observations, installation.maj, installation.maj_date, installation."create", installation.create_date, installation.archivage, installation.geom, installation.photo_f, installation.document_f, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, commune.texte AS commune, parcelle.section, parcelle.parcelle, ( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle, last_controle.cl_avis, next_control.next_control FROM s_anc.installation LEFT JOIN s_cadastre.commune ON installation.id_com::bpchar = commune.id_com LEFT JOIN s_cadastre.parcelle ON installation.id_parc::bpchar = parcelle.id_par LEFT JOIN (select id_installation, max(des_date_control) as last_date_control, cl_avis from s_anc.controle where des_date_control < now() group by id_installation, cl_avis ORDER by last_date_control DESC LIMIT 1) as last_controle on installation.id_installation = last_controle.id_installation LEFT JOIN (select id_installation, min(des_date_control + interval '1 year' * des_interval_control) as next_control from s_anc.controle where des_date_control + interval '1 year' * des_interval_control > now() group by id_installation) as next_control on installation.id_installation = next_control.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_installation OWNER TO u_vitis; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + CREATE OR REPLACE view s_anc.v_pretraitement as SELECT id_pretraitement, pretraitement.id_controle, ptr_type, ptr_volume, ptr_marque, ptr_materiau, ptr_pose, ptr_adapte, ptr_conforme_projet, ptr_dalle_repartition, ptr_renforce, ptr_verif_mise_en_eau, ptr_type_eau, ptr_reglementaire, ptr_destination, ptr_cloison, ptr_commentaire, ptr_im_distance, ptr_im_hydrom, ptr_im_dalle, ptr_im_renfor, ptr_im_puit, ptr_im_fixation, ptr_im_acces, ptr_et_degrad, ptr_et_real, ptr_vi_date, ptr_vi_justi, ptr_vi_entr, ptr_vi_bord, ptr_vi_dest, ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f,controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.pretraitement LEFT join s_anc.controle on pretraitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_pretraitement OWNER TO u_vitis; + CREATE TABLE s_anc.version( version character varying(100) NOT NULL, build integer NOT NULL, date timestamp with time zone NOT NULL, active boolean, CONSTRAINT pk_version PRIMARY KEY (version))WITH ( OIDS=FALSE); + ALTER TABLE s_anc.version OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.version TO u_vitis; + GRANT ALL ON TABLE s_anc.version TO anc_admin; + GRANT SELECT ON TABLE s_anc.version TO anc_user; + ALTER TABLE s_anc.v_installation OWNER TO u_vitis; + ALTER TABLE s_anc.controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + ALTER TABLE s_anc.dessin OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.dessin TO u_vitis; + GRANT ALL ON TABLE s_anc.dessin TO anc_admin; + GRANT ALL ON TABLE s_anc.dessin TO anc_user; + ALTER TABLE s_anc.evacuation_eaux OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.evacuation_eaux TO u_vitis; + ALTER TABLE s_anc.filieres_agrees OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.filieres_agrees TO u_vitis; + ALTER TABLE s_anc.installation OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + ALTER TABLE s_anc.param_admin OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_admin TO u_vitis; + GRANT ALL ON TABLE s_anc.param_admin TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_admin TO anc_user; + ALTER TABLE s_anc.param_entreprise OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_entreprise TO u_vitis; + GRANT ALL ON TABLE s_anc.param_entreprise TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_entreprise TO anc_user; + ALTER TABLE s_anc.param_liste OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_liste TO u_vitis; + GRANT ALL ON TABLE s_anc.param_liste TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_liste TO anc_user; + ALTER TABLE s_anc.param_tarif OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_tarif TO u_vitis; + ALTER TABLE s_anc.pretraitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.pretraitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_user; + ALTER TABLE s_anc.traitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.traitement TO u_vitis; + ALTER TABLE s_anc.nom_table OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.nom_table TO u_vitis; + GRANT SELECT ON TABLE s_anc.nom_table TO anc_admin; + ALTER TABLE s_anc.nom_liste OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.nom_liste TO u_vitis; + GRANT SELECT ON TABLE s_anc.nom_liste TO anc_admin; + INSERT INTO s_anc.nom_table (id_nom_table) values ('installation'); + INSERT INTO s_anc.nom_table (id_nom_table) values ('controle'); + INSERT INTO s_anc.nom_table (id_nom_table) values ('traitement'); + INSERT INTO s_anc.nom_table (id_nom_table) values ('pretraitement'); + INSERT INTO s_anc.nom_table (id_nom_table) values ('evacuation_eaux'); + INSERT INTO s_anc.nom_table (id_nom_table) values ('filieres_agrees'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'bati_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_zone_enjeu'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_zone_sage'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_alim_eau_potable'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_puits_usage'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_puits_declaration'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_puits_situation'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_puits_terrain_mitoyen'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'controle_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'controle_ss_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_interval_control'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_refus_visite'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'dep_liste_piece'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'dep_dossier_complet'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_permea'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_hydromorphie'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_nappe_fond'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_roche_sol'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_dist_hab'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_dist_lim_par'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_dist_veget'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_dist_puit'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_reamenage_terrain'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_terrain_innondable'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_real_trvx'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_anc_ss_accord'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_collecte_ep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_sep_ep_eu'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_nb_sortie'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_tes_regards'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_pente_ecoul'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_regars_acces'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_alteration'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_ecoulement'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_depot_regard'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_type_effluent'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_cuve_etanche'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_capacite_bac'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_nb_bac'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_ventilation'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_val_comp'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_ruissel_ep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_absence_nuisance'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_respect_regles'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_commentaires'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_primaire'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_secondaire'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_prim_loc'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_prim_ht'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_prim_diam'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_prim_type_extract'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_second_loc'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_second_ht'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_second_diam'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_second_type_extract'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_acces'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_auto'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_pr_nat_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_ok'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_dysfonctionnement'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_degradation'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_entretien'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_loc_pompe'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_acces'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_nb_pompe'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_nat_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_ventilatio'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_ok'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_alarme'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_clapet'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_etanche'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_branchement'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_dysfonctionnement'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_degradation'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_entretien'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'cl_avis'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'cl_classe_cbf'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'cl_facture'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_nb'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_largeur'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_racine'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_humidite'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_imper'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_geogrille'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_grav_qual'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_grav_ep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_geo_text'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_ht_terre_veget'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_tuy_perf'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_bon_mat'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_sab_ep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_sab_qual'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regrep_mat'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regrep_affl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regrep_equi'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regrep_perf'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regbl_mat'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regbl_affl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regbl_hz'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regbl_epand'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regbl_perf'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regcol_mat'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regcol_affl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regcol_hz'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_dist_hab'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_dist_lim_parc'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_dist_veget'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_dist_puit'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_volume'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_materiau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_pose'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_adapte'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_conforme_projet'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_dalle_repartition'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_renforce'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_verif_mise_en_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_reglementaire'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_type_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_distance'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_hydrom'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_dalle'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_renfor'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_puit'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_fixation'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_acces'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_et_degrad'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_et_real'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_vi_justi'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_nb'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_type_effl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_geotex'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_rac'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_hum'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_reg_rep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_reb_bcl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_veg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_acc_reg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_rp_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_rp_trap'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_hs_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_hs_type_eff'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_hs_gestionnaire'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_hs_intr'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_hs_ecoul'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_agree'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_integerer'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_type_fil'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_nb_cuv'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_cap_eh'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_guide'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_livret'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_contr'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_pres'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_plan'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_tamp'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_ancrage'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_rep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_respect'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_ventil'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mil_filt'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mise_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_pres_reg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_pres_alar'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_att_conf'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_surpr'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_surpr_elec'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_surpr_dist'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_surpr_aer'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_reac_bull'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_broy'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_dec'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_type_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_reg_mat'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_reg_affl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_reg_hz'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_reg_van'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_nb'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_long'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_larg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_sep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_pla'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_drain'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_resp'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fhz_long'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fhz_larg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fhz_drain'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fhz_resp'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mat_qual'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mat_epa'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_pres_veg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_pres_pro'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_access'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_et_deg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_et_od'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_et_dy'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_en_jus'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_en_contr'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_dist_arb'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_dist_parc'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_dist_hab'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_dist_cap'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'HABITATION PRINCIPALE', 'Habitation Principale'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'HABITATION SECONDAIRE', 'Habitation Secondaire'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'LOCAL PROFESSIONNEL', 'Local Professionnel'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'INHABITE', 'Inhabite'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'LOCATION ANNUELLE', 'Location Annuelle'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'LOCATION SAISONNIERE', 'Location Saisonniere'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'AUTRES…', 'Autres…'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_enjeu', 'SANITAIRE', 'Sanitaire'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_enjeu', 'ENVIRONNEMENTALE', 'Environnementale'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_enjeu', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_sage', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_sage', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_sage', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_sage', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_sage', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_alim_eau_potable', 'RESEAU PUBLIC', 'Reseau Public'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_alim_eau_potable', 'RESEAU PRIVE', 'Reseau Prive'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_alim_eau_potable', 'PUITS', 'Puits'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_alim_eau_potable', 'FORAGE', 'Forage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_usage', 'ALIMENTATION HUMAINE', 'Alimentation Humaine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_usage', 'NON CONSOMMATION HUMAINE', 'Non Consommation Humaine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_declaration', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_declaration', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_declaration', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_declaration', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_declaration', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_situation', '< 35 MÈTRES', '< 35 Mètres'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_situation', '> 35 MÈTRES', '> 35 Mètres'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_terrain_mitoyen', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_terrain_mitoyen', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_terrain_mitoyen', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_terrain_mitoyen', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_terrain_mitoyen', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_type', 'CONCEPTION', 'Conception'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_type', 'REALISATION', 'Realisation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_type', 'BON FONCTIONNEMENT', 'Bon Fonctionnement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'HORS VENTE', 'Hors Vente'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'VENTE', 'Vente'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'DIAG', 'Diag'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '6', '6'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '7', '7'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '8', '8'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '9', '9'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '10', '10'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_refus_visite', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_refus_visite', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_refus_visite', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_refus_visite', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_refus_visite', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'FORMULAIRE DE DEMANDE D’INSTALLATION DÛMENT COMPLÉTÉ ET SIGNÉ', 'Formulaire De Demande D’Installation Dûment Complété Et Signé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'PLAN DE SITUATION DE LA PARCELLE', 'Plan De Situation De La Parcelle'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'ÉTUDE PÉDOLOGIQUE', 'Étude Pédologique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'CHOIX / DESCRIPTION /DIMENSIONNEMENT DE LA FILIÈRE', 'Choix / Description /Dimensionnement De La Filière'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'PLAN DE MASSE DU PROJET', 'Plan De Masse Du Projet'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'PROFIL EN LONG', 'Profil En Long'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'AUTORISATION DE VOIRIE', 'Autorisation De Voirie'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'AUTORISATION DE REJET', 'Autorisation De Rejet'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_dossier_complet', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_dossier_complet', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_dossier_complet', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_dossier_complet', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_dossier_complet', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_permea', 'ESTIMEE', 'Estimee'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_permea', 'MESUREE', 'Mesuree'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_hydromorphie', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_hydromorphie', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_hydromorphie', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_hydromorphie', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_hydromorphie', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_nappe_fond', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_nappe_fond', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_nappe_fond', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_nappe_fond', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_roche_sol', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_roche_sol', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_roche_sol', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_roche_sol', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_roche_sol', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_terrain', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_terrain', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_terrain', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_terrain', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_terrain', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_terrain_innondable', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_terrain_innondable', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_terrain_innondable', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_terrain_innondable', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_terrain_innondable', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_real_trvx', 'TOTALEMENT', 'Totalement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_real_trvx', 'PARTIELLEMENT', 'Partiellement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_real_trvx', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_anc_ss_accord', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_anc_ss_accord', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_anc_ss_accord', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_anc_ss_accord', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_anc_ss_accord', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'EN SURFACE', 'En Surface'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'INFILTRATION SUR LA PARCELLE', 'Infiltration Sur La Parcelle'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'RÉTENTION (CUVE, MARE...)', 'Rétention (Cuve, Mare...)'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'VERS LE DISPOSITIF D''ANC', 'Vers Le Dispositif D''Anc'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'PUISARD', 'Puisard'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'RÉSEAU PLUVIAL', 'Réseau Pluvial'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'FOSSÉ', 'Fossé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_sep_ep_eu', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_sep_ep_eu', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_sep_ep_eu', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_sep_ep_eu', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_sep_ep_eu', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_nb_sortie', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_nb_sortie', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_nb_sortie', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_nb_sortie', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_nb_sortie', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_tes_regards', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_tes_regards', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_tes_regards', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_tes_regards', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_tes_regards', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_pente_ecoul', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_pente_ecoul', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_pente_ecoul', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_pente_ecoul', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_pente_ecoul', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_regars_acces', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_regars_acces', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_regars_acces', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_regars_acces', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_regars_acces', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_alteration', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_alteration', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_alteration', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_alteration', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_alteration', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_ecoulement', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_ecoulement', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_ecoulement', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_ecoulement', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_ecoulement', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_depot_regard', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_depot_regard', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_depot_regard', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_depot_regard', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_depot_regard', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_type_effluent', 'FECES SEULE', 'Feces Seule'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_type_effluent', 'FECES URINE', 'Feces Urine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_cuve_etanche', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_cuve_etanche', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_cuve_etanche', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_cuve_etanche', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_cuve_etanche', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_capacite_bac', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_capacite_bac', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_capacite_bac', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_capacite_bac', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_capacite_bac', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_nb_bac', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_nb_bac', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_nb_bac', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_nb_bac', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_nb_bac', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ventilation', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ventilation', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ventilation', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ventilation', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ventilation', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ruissel_ep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ruissel_ep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ruissel_ep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ruissel_ep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ruissel_ep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_absence_nuisance', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_absence_nuisance', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_absence_nuisance', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_absence_nuisance', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_absence_nuisance', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_respect_regles', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_respect_regles', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_respect_regles', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_respect_regles', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_respect_regles', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_commentaires', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_commentaires', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_commentaires', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_commentaires', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_commentaires', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_primaire', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_primaire', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_primaire', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_primaire', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_primaire', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_secondaire', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_secondaire', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_secondaire', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_secondaire', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_secondaire', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_loc', 'TOITURE', 'Toiture'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_loc', 'SOUS LA GOUTTIERE', 'Sous La Gouttiere'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_loc', 'COMBLE', 'Comble'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'ABSENCE', 'Absence'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'CHAPEAU DE VENTILATION', 'Chapeau De Ventilation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'EXTRACTEUR STATIQUE', 'Extracteur Statique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'EXTRACTEUR EOLIEN', 'Extracteur Eolien'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_diam', '<100 MM', '<100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_diam', '100 MM', '100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_diam', '>100 MM', '>100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', '<40 CM AU DESSUS DU FAITAGE', '<40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', '40 CM AU DESSUS DU FAÎTAGE', '40 Cm Au Dessus Du Faîtage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', '>40 CM AU DESSUS DU FAITAGE', '>40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_loc', 'HABITATION', 'Habitation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_loc', 'DEPENDANDANCE DE L''HABITATION', 'Dependandance De L''Habitation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_loc', 'MAT', 'Mat'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_loc', 'ARBRE', 'Arbre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_loc', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_ht', '<40 CM AU DESSUS DU FAITAGE', '<40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_ht', '40 CM AU DESSUS DU FAÎTAGE', '40 Cm Au Dessus Du Faîtage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_ht', '>40 CM AU DESSUS DU FAITAGE', '>40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_ht', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_diam', '<100 MM', '<100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_diam', '100 MM', '100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_diam', '>100 MM', '>100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'ABSENCE', 'Absence'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'CHAPEAU DE VENTILATION', 'Chapeau De Ventilation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'EXTRACTEUR STATIQUE', 'Extracteur Statique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'EXTRACTEUR EOLIEN', 'Extracteur Eolien'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_acces', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_acces', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_acces', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_acces', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_acces', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_auto', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_auto', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_auto', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_auto', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_auto', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EM BRUTES', 'Em Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EV BRUTES', 'Ev Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EU BRUTES', 'Eu Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EM PRETRAITEES', 'Em Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EV PRETRAITEES', 'Ev Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EU PRETRAITEES', 'Eu Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EM TRAITEES', 'Em Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EV TRAITEES', 'Ev Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EU TRAITEES', 'Eu Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_ok', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_ok', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_ok', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_ok', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_ok', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_dysfonctionnement', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_dysfonctionnement', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_dysfonctionnement', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_dysfonctionnement', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_dysfonctionnement', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_degradation', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_degradation', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_degradation', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_degradation', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_degradation', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_entretien', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_entretien', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_entretien', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_entretien', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_entretien', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_acces', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_acces', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_acces', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_acces', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_acces', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nb_pompe', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nb_pompe', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EM BRUTES', 'Em Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EV BRUTES', 'Ev Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EU BRUTES', 'Eu Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EM PRETRAITEES', 'Em Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EV PRETRAITEES', 'Ev Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EU PRETRAITEES', 'Eu Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EM TRAITEES', 'Em Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EV TRAITEES', 'Ev Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EU TRAITEES', 'Eu Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ventilatio', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ventilatio', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ventilatio', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ventilatio', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ventilatio', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ok', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ok', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ok', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ok', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ok', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_alarme', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_alarme', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_alarme', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_alarme', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_alarme', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_clapet', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_clapet', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_clapet', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_clapet', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_clapet', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_etanche', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_etanche', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_etanche', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_etanche', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_etanche', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_branchement', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_branchement', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_branchement', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_branchement', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_branchement', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_dysfonctionnement', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_dysfonctionnement', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_dysfonctionnement', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_dysfonctionnement', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_dysfonctionnement', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_degradation', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_degradation', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_degradation', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_degradation', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_degradation', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_entretien', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_entretien', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_entretien', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_entretien', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_entretien', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_avis', 'CONFORME', 'Conforme'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_avis', 'NON CONFORME', 'Non Conforme'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'ABSENCE D''INSTALLATION', 'Absence D''Installation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'INSTALLATION NON CONFORME', 'Installation Non Conforme'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORMITE CONSTATES (CHOIX MULTIPLE POSSIBLE)', 'Non Conformite Constates (Choix Multiple Possible)'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'RECOMMANDATION DE TRAVAUX (CHOIX MULTIPLE POSSIBLE)', 'Recommandation De Travaux (Choix Multiple Possible)'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'ABSENCE DE DEFAUTS', 'Absence De Defauts'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_facture', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_facture', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'TRANCHEES D''EPANDAGE', 'Tranchees D''Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'LIT D''EPANDAGE', 'Lit D''Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE A SABLE VERTICAL DRAINE', 'Filtre A Sable Vertical Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE A SABLE VERTICAL NON DRAINE', 'Filtre A Sable Vertical Non Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE A SABLE HORIZONTAL DRAINE', 'Filtre A Sable Horizontal Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'TERTRE', 'Tertre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_nb', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_nb', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_nb', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_nb', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_nb', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_largeur', '0.5 M', '0.5 M'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_largeur', '0.7 M', '0.7 M'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_racine', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_racine', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_racine', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_racine', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_racine', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_humidite', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_humidite', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_humidite', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_humidite', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_humidite', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_imper', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_imper', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_imper', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_imper', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_imper', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_hab', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_hab', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_hab', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_hab', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_hab', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_lim_parc', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_lim_parc', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_lim_parc', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_lim_parc', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_lim_parc', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_veget', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_veget', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_veget', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_veget', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_veget', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_puit', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_puit', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_puit', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_puit', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_puit', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geogrille', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geogrille', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geogrille', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geogrille', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geogrille', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_qual', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_qual', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_qual', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_qual', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_qual', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_ep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_ep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_ep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_ep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_ep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geo_text', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geo_text', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geo_text', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geo_text', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geo_text', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_ht_terre_veget', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_ht_terre_veget', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_ht_terre_veget', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_ht_terre_veget', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_ht_terre_veget', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_tuy_perf', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_tuy_perf', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_tuy_perf', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_tuy_perf', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_tuy_perf', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_bon_mat', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_bon_mat', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_bon_mat', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_bon_mat', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_bon_mat', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_ep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_ep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_ep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_ep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_ep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_qual', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_qual', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_qual', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_qual', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_qual', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'Beton', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'autre', 'autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'non renseigné', 'non renseigné'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_affl', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_affl', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_affl', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_affl', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_affl', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_equi', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_equi', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_equi', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_equi', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_equi', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_perf', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_perf', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_perf', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_perf', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_perf', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_affl', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_affl', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_affl', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_affl', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_affl', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_hz', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_hz', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_hz', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_hz', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_hz', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_epand', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_epand', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_epand', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_epand', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_epand', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_perf', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_perf', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_perf', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_perf', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_perf', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'Beton', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'autre', 'autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'non renseigné', 'non renseigné'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_affl', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_affl', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_affl', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_affl', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_affl', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_hz', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_hz', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_hz', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_hz', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_hz', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'BAC A GRAISSE', 'Bac A Graisse'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE TOUTES EAUX', 'Fosse Toutes Eaux'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'PREFILTRE', 'Prefiltre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'Autre dispositif de prétraitement', 'Autre Dispositif De Prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE CHIMIQUE', 'Fosse Chimique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE ETANCHE', 'Fosse Etanche'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '?', '?'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '200', '200'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '500', '500'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '? + 4000 L', '? + 4000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '? X 2', '? X 2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1000 L', '1000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1000 L + ?', '1000 L + ?'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '10000 L', '10000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '11000 L', '11000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1200 L', '1200 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '12000 L', '12000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '12000 L (4x3000L)', '12000 L (4X3000L)'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1500 L', '1500 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1500 L + 3000 L', '1500 L + 3000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1500 L X2', '1500 L X2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1700 L', '1700 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1800 L', '1800 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '2000 L', '2000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '2700 L', '2700 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 + 5000 L', '3000 + 5000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L', '3000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L + ?', '3000 L + ?'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L + 4000 L', '3000 L + 4000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L + 5000 L', '3000 L + 5000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L X2', '3000 L X2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3550 L', '3550 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '4000 L', '4000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '4000 L + 6000 L', '4000 L + 6000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '4000 L X2', '4000 L X2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '4500 L', '4500 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '5000 L', '5000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '5000 L X2', '5000 L X2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '6000 L', '6000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '60m³', '60M³'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '7000 L', '7000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L X3', '3000 L X3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '? + 7000 L', '? + 7000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '8000 L', '8000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1000 L + 4000 L', '1000 L + 4000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1500 L + 500 L', '1500 L + 500 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'PEHD', 'Pehd'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'BETON', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'NON RENSEIGNE', 'Non Renseigne'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_pose', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_pose', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_pose', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_pose', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_pose', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_adapte', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_adapte', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_adapte', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_adapte', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_adapte', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_conforme_projet', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_conforme_projet', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_conforme_projet', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_conforme_projet', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_conforme_projet', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_dalle_repartition', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_dalle_repartition', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_dalle_repartition', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_dalle_repartition', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_dalle_repartition', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_renforce', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_renforce', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_renforce', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_renforce', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_renforce', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_verif_mise_en_eau', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_verif_mise_en_eau', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_verif_mise_en_eau', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_verif_mise_en_eau', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_verif_mise_en_eau', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_reglementaire', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_reglementaire', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_reglementaire', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_reglementaire', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_reglementaire', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'CUISINE', 'Cuisine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'SALLE DE BAIN', 'Salle De Bain'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'LAVE LINGE', 'Lave Linge'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'CUISINE, SALLE DE BAIN, LAVE LINGE', 'Cuisine, Salle De Bain, Lave Linge'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'CUISINE, SALLE DE BAIN', 'Cuisine, Salle De Bain'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'CUISINE, LAVE LINGE', 'Cuisine, Lave Linge'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'SALLE DE BAIN, LAVE LINGE', 'Salle De Bain, Lave Linge'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'AUTRES', 'Autres'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'Eaux ménagères', 'Eaux Ménagères'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'Eaux vannes', 'Eaux Vannes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'Eaux Usées', 'Eaux Usées'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_distance', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_distance', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_distance', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_distance', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_distance', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_hydrom', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_hydrom', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_hydrom', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_hydrom', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_hydrom', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_dalle', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_dalle', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_dalle', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_dalle', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_dalle', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_renfor', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_renfor', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_renfor', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_renfor', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_renfor', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_puit', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_puit', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_puit', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_puit', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_puit', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_fixation', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_fixation', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_fixation', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_fixation', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_fixation', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_acces', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_acces', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_acces', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_acces', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_acces', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_degrad', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_degrad', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_degrad', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_degrad', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_degrad', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_real', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_real', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_real', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_real', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_real', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_justi', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_justi', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_justi', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_justi', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_justi', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'TRANCHEES D''EPANDAGE', 'Tranchees D''Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'LIT D''EPANDAGE', 'Lit D''Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'FILTRE A SABLE VERTICAL DRAINE', 'Filtre A Sable Vertical Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'FILTRE A SABLE VERTICAL NON DRAINE', 'Filtre A Sable Vertical Non Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'FILTRE A SABLE HORIZONTAL DRAINE', 'Filtre A Sable Horizontal Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'TERTRE', 'Tertre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'Puits d''infiltration', 'Puits D''Infiltration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'Puits perdu', 'Puits Perdu'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_nb', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_nb', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_nb', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_nb', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_nb', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EM BRUTES', 'Em Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EV BRUTES', 'Ev Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EU BRUTES', 'Eu Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EM PRETRAITEES', 'Em Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EV PRETRAITEES', 'Ev Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EU PRETRAITEES', 'Eu Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EM TRAITEES', 'Em Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EV TRAITEES', 'Ev Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EU TRAITEES', 'Eu Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_geotex', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_geotex', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_geotex', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_geotex', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_geotex', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_rac', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_rac', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_rac', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_rac', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_rac', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_hum', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_hum', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_hum', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_hum', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_hum', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reg_rep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reg_rep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reg_rep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reg_rep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reg_rep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reb_bcl', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reb_bcl', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reb_bcl', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reb_bcl', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reb_bcl', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_veg', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_veg', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_veg', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_veg', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_veg', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_acc_reg', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_acc_reg', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_acc_reg', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_acc_reg', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_acc_reg', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_type', 'puits d''infiltration', 'Puits D''Infiltration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_type', 'puits perdu', 'Puits Perdu'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_trap', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_trap', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_trap', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_trap', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_trap', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'En surface', 'En Surface'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'infiltration sur la parcelle', 'Infiltration Sur La Parcelle'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'rétention (cuve, mare...)', 'Rétention (Cuve, Mare...)'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'vers le dispositif d''anc', 'Vers Le Dispositif D''Anc'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'Puisard', 'Puisard'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'Réseau pluvial', 'Réseau Pluvial'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'Fossé', 'Fossé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EM BRUTES', 'Em Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EV BRUTES', 'Ev Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EU BRUTES', 'Eu Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EM PRETRAITEES', 'Em Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EV PRETRAITEES', 'Ev Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EU PRETRAITEES', 'Eu Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EM TRAITEES', 'Em Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EV TRAITEES', 'Ev Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EU TRAITEES', 'Eu Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_gestionnaire', 'Commune', 'Commune'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_gestionnaire', 'Departement', 'Departement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_gestionnaire', 'Privé', 'Privé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_intr', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_intr', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_intr', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_intr', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_intr', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_ecoul', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_ecoul', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_ecoul', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_ecoul', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_ecoul', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'Filtre Compact', 'Filtre Compact'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'Microstration', 'Microstration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'PhytoEpuration', 'Phytoepuration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type_fil', 'Culture libre', 'Culture Libre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type_fil', 'Culture fixe', 'Culture Fixe'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_nb_cuv', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_nb_cuv', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_nb_cuv', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_nb_cuv', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_nb_cuv', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_cap_eh', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_cap_eh', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_cap_eh', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_cap_eh', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_cap_eh', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_guide', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_guide', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_guide', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_guide', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_guide', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_livret', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_livret', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_livret', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_livret', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_livret', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_contr', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_contr', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_contr', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_contr', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_contr', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_plan', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_plan', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_plan', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_plan', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_plan', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_tamp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_tamp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_tamp', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_tamp', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_tamp', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ancrage', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ancrage', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ancrage', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ancrage', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ancrage', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_rep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_rep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_rep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_rep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_rep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_respect', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_respect', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_respect', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_respect', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_respect', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ventil', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ventil', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ventil', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ventil', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ventil', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_filt', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_filt', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_filt', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_filt', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_filt', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mise_eau', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mise_eau', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mise_eau', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mise_eau', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mise_eau', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_reg', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_reg', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_reg', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_reg', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_reg', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_alar', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_alar', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_alar', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_alar', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_alar', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_att_conf', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_att_conf', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_att_conf', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_att_conf', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_att_conf', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_elec', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_elec', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_elec', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_elec', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_elec', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_dist', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_dist', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_dist', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_dist', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_dist', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_aer', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_aer', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_aer', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_aer', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_aer', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reac_bull', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reac_bull', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reac_bull', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reac_bull', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reac_bull', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_broy', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_broy', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_broy', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_broy', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_broy', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dec', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dec', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dec', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dec', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dec', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type_eau', 'EAUX MENAGERES', 'Eaux Menageres'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type_eau', 'EAUX VANNES', 'Eaux Vannes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type_eau', 'EAUX USEES', 'Eaux Usees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_mat', 'PEHD', 'Pehd'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_mat', 'BETON', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_mat', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_mat', 'NON RENSEIGNE', 'Non Renseigne'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_affl', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_affl', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_affl', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_affl', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_affl', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_hz', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_hz', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_hz', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_hz', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_hz', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_van', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_van', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_van', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_van', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_van', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_nb', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_nb', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_nb', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_nb', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_nb', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_long', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_long', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_long', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_long', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_long', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_larg', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_larg', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_larg', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_larg', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_larg', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_sep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_sep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_sep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_sep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_sep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_pla', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_pla', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_pla', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_pla', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_pla', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_drain', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_drain', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_drain', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_drain', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_drain', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_resp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_resp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_resp', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_resp', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_resp', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_long', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_long', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_long', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_long', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_long', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_larg', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_larg', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_larg', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_larg', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_larg', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_drain', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_drain', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_drain', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_drain', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_drain', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_resp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_resp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_resp', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_resp', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_resp', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_qual', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_qual', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_qual', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_qual', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_qual', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_epa', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_epa', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_epa', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_epa', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_epa', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_veg', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_veg', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_veg', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_veg', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_veg', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_pro', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_pro', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_pro', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_pro', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_pro', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_access', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_access', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_access', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_access', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_access', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_deg', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_deg', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_deg', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_deg', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_deg', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_od', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_od', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_od', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_od', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_od', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_dy', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_dy', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_dy', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_dy', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_dy', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_jus', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_jus', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_jus', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_jus', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_jus', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_contr', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_contr', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_contr', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_contr', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_contr', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_arb', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_arb', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_arb', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_arb', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_arb', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_parc', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_parc', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_parc', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_parc', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_parc', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_hab', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_hab', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_hab', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_hab', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_hab', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_cap', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_cap', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_cap', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_cap', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_cap', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + CREATE OR REPLACE VIEW s_anc.v_param_tarif AS SELECT id_parametre_tarif, id_com, controle_type, montant, annee_validite, devise FROM s_anc.param_tarif WHERE param_tarif.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_param_tarif OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_tarif TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_tarif TO anc_admin; + GRANT SELECT ON TABLE s_anc.v_param_tarif TO anc_user; + CREATE OR REPLACE VIEW s_anc.v_evacuation_eaux AS SELECT id_eva, evacuation_eaux.id_controle, evac_type, evac_is_nb, evac_is_long, evac_is_larg, evac_is_lin_total, evac_is_surface, evac_is_profondeur, evac_is_geotex, evac_is_rac, evac_is_hum, evac_is_reg_rep, evac_is_reb_bcl, evac_is_veg, evac_is_type_effl, evac_is_acc_reg, evac_rp_type, evac_rp_etude_hydrogeol, evac_rp_rejet, evac_rp_grav, evac_rp_tamp, evac_rp_type_eff, evac_rp_trap, evac_hs_type, evac_hs_gestionnaire, evac_hs_gestionnaire_auth, evac_hs_intr, evac_hs_type_eff, evac_hs_ecoul, evac_hs_etat, evac_commentaires, evacuation_eaux.maj, evacuation_eaux.maj_date, evacuation_eaux."create", evacuation_eaux.create_date, evacuation_eaux.photos_f, evacuation_eaux.fiche_f, evacuation_eaux.schema_f, evacuation_eaux.documents_f, evacuation_eaux.plan_f, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.evacuation_eaux LEFT JOIN s_anc.controle ON evacuation_eaux.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_evacuation_eaux OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_admin; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_user; + CREATE OR REPLACE VIEW s_anc.v_filieres_agrees AS SELECT id_fag, filieres_agrees.id_controle, fag_type, fag_agree, fag_integerer, fag_type_fil, fag_denom, fag_fab, fag_num_ag, fag_cap_eh, fag_nb_cuv, fag_num, fag_num_filt, fag_mat_cuv, fag_guide, fag_livret, fag_contr, fag_soc, fag_pres, fag_plan, fag_tamp, fag_ancrage, fag_rep, fag_respect, fag_ventil, fag_mil_typ, fag_mil_filt, fag_mise_eau, fag_pres_alar, fag_pres_reg, fag_att_conf, fag_surpr, fag_surpr_ref, fag_surpr_dist, fag_surpr_elec, fag_surpr_aer, fag_reac_bull, fag_broy, fag_dec, fag_type_eau, fag_reg_mar, fag_reg_mat, fag_reg_affl, fag_reg_hz, fag_reg_van, fag_fvl_nb, fag_fvl_long, fag_fvl_larg, fag_fvl_prof, fag_fvl_sep, fag_fvl_pla, fag_fvl_drain, fag_fvl_resp, fag_fhz_long, fag_fhz_larg, fag_fhz_prof, fag_fhz_drain, fag_fhz_resp, fag_mat_qual, fag_mat_epa, fag_pres_veg, fag_pres_pro, fag_acces, fag_et_deg, fag_et_od, fag_et_dy, fag_en_date, fag_en_jus, fag_en_entr, fag_en_bord, fag_en_dest, fag_en_perc, fag_en_contr, fag_en_mainteger, fag_dist_arb, fag_dist_parc, fag_dist_hab, fag_dist_cap, filieres_agrees.maj, filieres_agrees.maj_date, filieres_agrees."create", filieres_agrees.create_date, filieres_agrees.photos_f, filieres_agrees.fiche_f, filieres_agrees.schema_f, filieres_agrees.documents_f, filieres_agrees.plan_f, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.filieres_agrees LEFT JOIN s_anc.controle ON filieres_agrees.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_filieres_agrees OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_admin; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_user; + CREATE OR REPLACE VIEW s_anc.v_traitement AS SELECT id_traitement, traitement.id_controle, tra_type, tra_nb, tra_long, tra_larg, tra_tot_lin, tra_surf, tra_largeur, tra_hauteur, tra_profondeur, tra_dist_hab, tra_dist_lim_parc, tra_dist_veget, tra_dist_puit, tra_vm_racine, tra_vm_humidite, tra_vm_imper, tra_vm_geogrille, tra_vm_grav_qual, tra_vm_grav_ep, tra_vm_geo_text, tra_vm_ht_terre_veget, tra_vm_tuy_perf, tra_vm_bon_mat, tra_vm_sab_ep, tra_vm_sab_qual, tra_regrep_mat, tra_regrep_affl, tra_regrep_equi, tra_regrep_perf, tra_regbl_mat, tra_regbl_affl, tra_regbl_hz, tra_regbl_epand, tra_regbl_perf, tra_regcol_mat, tra_regcol_affl, tra_regcol_hz, traitement.maj, traitement.maj_date, traitement."create", traitement.create_date, traitement.photos_f, traitement.fiche_f, traitement.schema_f, traitement.documents_f, traitement.plan_f, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.traitement LEFT JOIN s_anc.controle ON traitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_traitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_user; + + + --Partie s_vitis généré par WAB le 24/04/2017 à 14:59:19 + DELETE FROM s_vitis.vm_section WHERE label_id ~ '^anc_([0-9]+)$'; + DELETE FROM s_vitis.vm_table_field WHERE label_id ~ '^anc_([0-9]+)$'; + DELETE FROM s_vitis.vm_table_button WHERE label_id ~ '^anc_([0-9]+)$'; + DELETE FROM s_vitis.vm_module WHERE module_id='anc'; + DELETE FROM s_vitis.vm_string WHERE string_id ~ '^anc_([0-9]+)$'; + INSERT INTO s_vitis.vm_module (module_id, description, version, label) VALUES ('anc','Module de gestion des assainissements non collectifs',0.1,'Module ANC'); + INSERT INTO s_vitis.privileges (rolname, description) SELECT 'anc_user', 'Utilisateur du module anc. Permet d''accèder au mode de saisie' WHERE NOT EXISTS (SELECT rolname FROM s_vitis.privileges WHERE rolname='anc_user'); + INSERT INTO s_vitis.privileges (rolname, description) SELECT 'anc_admin', 'Admin du module ANC. Permet d''accèder au paramétrage du module' WHERE NOT EXISTS (SELECT rolname FROM s_vitis.privileges WHERE rolname='anc_admin'); + DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname='anc_user') THEN CREATE ROLE anc_user NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; END IF; END $$; + DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname='anc_admin') THEN CREATE ROLE anc_admin NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; END IF; END $$; + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet ', 'anc_0'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet ', 'anc_1'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet ', 'anc_2'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_installation', 'anc_3'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_4'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_5'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_6'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_installation', 'anc_7'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_8'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_9'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_10'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_installation', 'anc_11'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_12'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_13'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_14'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_controle', 'anc_15'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_16'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_17'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_18'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_filiere_agree', 'anc_19'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_20'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_21'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_22'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_param_liste', 'anc_23'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_24'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_25'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_26'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_parametre_liste', 'anc_27'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field nom_table', 'anc_28'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field nom_liste', 'anc_29'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field valeurs', 'anc_30'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field alias', 'anc_31'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_param_tarif', 'anc_32'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_33'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_34'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_35'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_parametre_tarif', 'anc_36'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_com', 'anc_37'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field controle_type', 'anc_38'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field montant', 'anc_39'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field annee_validite', 'anc_40'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field devise', 'anc_41'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_param_admin', 'anc_42'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_43'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_44'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_45'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_parametre_admin', 'anc_46'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_com', 'anc_47'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field type', 'anc_48'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field sous type', 'anc_49'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field nom', 'anc_50'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prenom', 'anc_51'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field description', 'anc_52'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field civilite', 'anc_53'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field date_fin_validite', 'anc_54'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field qualite', 'anc_55'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field signature', 'anc_56'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_entreprise', 'anc_57'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_58'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_59'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_60'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_parametre_entreprises', 'anc_61'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_com', 'anc_62'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field siret', 'anc_63'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field nom_entreprise', 'anc_64'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field code_postal', 'anc_65'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field voie', 'anc_66'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_67'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_installation', 'anc_68'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field controle_type', 'anc_69'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field maj', 'anc_70'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field maj_date', 'anc_71'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field create', 'anc_72'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field create_date', 'anc_73'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_pretraitement', 'anc_74'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_75'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_76'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_77'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_pretraitement', 'anc_78'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_79'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field ptr_type', 'anc_80'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field num_dossier', 'anc_81'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_evacuation_eaux', 'anc_82'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_83'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_84'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_85'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_eva', 'anc_86'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_87'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field evac_type', 'anc_88'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field create', 'anc_89'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_traitement', 'anc_90'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_91'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_92'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_93'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_94'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field fag_type', 'anc_95'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_installation', 'anc_96'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_traitement', 'anc_97'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_98'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field tra_type', 'anc_99'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field num_dossier', 'anc_100'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_fag', 'anc_101'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_102'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field fag_type', 'anc_103'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field num_dossier', 'anc_104'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section Traitement', 'anc_105'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section Filières agréées', 'anc_106'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section Dispositifs Annexes', 'anc_107'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section Evacuation des eaux', 'anc_108'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section traitement', 'anc_109'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section Suivi', 'anc_110'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section documents', 'anc_111'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section schéma', 'anc_112'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_0','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_0','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_1','en','id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_1','fr','id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_2','en','town'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_2','fr','commune'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_3','en','section'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_3','fr','section'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_4','en','parcel'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_4','fr','parcelle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_5','en','file'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_5','fr','Dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_6','en','Suivi'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_6','fr','Suivi'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_7','en','Documents'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_7','fr','Documents'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_8','en','Pretraitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_8','fr','Pretraitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_9','en','Toilettes sèches'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_9','fr','Toilettes sèches'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_10','en','Ventilation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_10','fr','Ventilation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_11','en','Installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_11','fr','Installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_12','en','Habitation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_12','fr','Habitation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_13','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_13','fr','Supprimer les installations'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_14','en','Add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_14','fr','Ajouter une installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_15','en','Control'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_15','fr','Contrôle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_16','en','File'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_16','fr','Dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_17','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_17','fr','Supprimer les contrôles'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_18','en','Add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_18','fr','Ajouter un contrôle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_19','en','Filières agréées'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_19','fr','Filières agréées'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_20','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_20','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_21','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_21','fr','Supprimer les filières agréées'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_22','en','add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_22','fr','Ajouter une filière agréée'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_23','en','List'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_23','fr','Liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_24','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_24','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_25','en','Supprimer les listes'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_25','fr','Supprimer les listes'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_26','en','Ajouter une liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_26','fr','Ajouter une liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_27','en','id_parametre_liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_27','fr','id_parametre_liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_28','en','nom_table'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_28','fr','nom_table'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_29','en','nom_liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_29','fr','nom_liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_30','en','valeurs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_30','fr','valeurs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_31','en','alias'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_31','fr','alias'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_32','en','Tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_32','fr','Tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_33','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_33','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_34','en','Supprimer les tarifs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_34','fr','Supprimer les tarifs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_35','en','Ajouter un tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_35','fr','Ajouter un tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_36','en','id_parametre_tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_36','fr','id_parametre_tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_37','en','id_com'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_37','fr','id_com'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_38','en','controle_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_38','fr','controle_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_39','en','montant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_39','fr','montant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_40','en','annee_validite'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_40','fr','annee_validite'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_41','en','devise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_41','fr','devise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_42','en','Admin'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_42','fr','Administrateur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_43','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_43','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_44','en','Supprimer les administrateurs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_44','fr','Supprimer les administrateurs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_45','en','Ajouter un administrateur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_45','fr','Ajouter un administrateur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_46','en','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_46','fr','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_47','en','Commune'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_47','fr','Commune'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_48','en','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_48','fr','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_49','en','Sous type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_49','fr','Sous type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_50','en','Nom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_50','fr','Nom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_51','en','Prénom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_51','fr','Prénom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_52','en','Description'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_52','fr','Description'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_53','en','Civilité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_53','fr','Civilité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_54','en','Fin de validité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_54','fr','Fin de validité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_55','en','Qualité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_55','fr','Qualité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_56','en','Signature'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_56','fr','Signature'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_57','en','Entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_57','fr','Entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_58','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_58','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_59','en','Supprimer les entreprises'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_59','fr','Supprimer les entreprises'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_60','en','Ajouter une entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_60','fr','Ajouter une entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_61','en','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_61','fr','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_62','en','id_com'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_62','fr','id_com'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_63','en','siret'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_63','fr','siret'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_64','en','nom_entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_64','fr','nom_entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_65','en','code_postal'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_65','fr','code_postal'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_66','en','Address'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_66','fr','Adresse'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_67','en','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_67','fr','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_68','en','id_installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_68','fr','id_installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_69','en','controle_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_69','fr','controle_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_70','en','maj'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_70','fr','maj'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_71','en','maj_date'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_71','fr','maj_date'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_72','en','create'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_72','fr','create'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_73','en','create_date'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_73','fr','create_date'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_74','en','Pretraitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_74','fr','Pretraitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_75','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_75','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_76','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_76','fr','Supprimer les prétraitements'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_77','en','Add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_77','fr','Ajouter un prétraitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_78','en','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_78','fr','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_79','en','Contrôle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_79','fr','Contrôle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_80','en','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_80','fr','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_81','en','N° dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_81','fr','N° dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_82','en','Evacuation des eaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_82','fr','Evacuation des eaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_83','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_83','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_84','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_84','fr','Supprimer les évacuations des eaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_85','en','Add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_85','fr','Ajouter une évacuation des eaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_86','en','id_eva'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_86','fr','id_eva'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_87','en','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_87','fr','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_88','en','evac_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_88','fr','evac_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_89','en','create'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_89','fr','create'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_90','en','Traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_90','fr','Traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_91','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_91','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_92','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_92','fr','Supprimer les traitements'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_93','en','Add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_93','fr','Ajouter un traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_94','en','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_94','fr','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_95','en','fag_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_95','fr','fag_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_96','en','id_installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_96','fr','id_installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_97','en','id_traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_97','fr','id_traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_98','en','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_98','fr','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_99','en','tra_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_99','fr','tra_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_100','en','num_dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_100','fr','num_dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_101','en','id_fag'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_101','fr','id_fag'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_102','en','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_102','fr','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_103','en','fag_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_103','fr','fag_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_104','en','num_dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_104','fr','num_dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_105', 'en', 'Treatment'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_105', 'fr', 'Traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_106', 'en', 'Approved sectors'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_106', 'fr', 'Filières agréées'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_107', 'en', 'Attachments'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_107', 'fr', 'Dispositifs Annexes'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_108', 'en', 'Water evacuation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_108', 'fr', 'Evacuation des eaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_109', 'en', 'Conclusion'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_109', 'fr', 'Conclusion'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_110', 'en', 'Suivi'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_110', 'fr', 'Suivi'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_111', 'en', 'Documents'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_111', 'fr', 'Documents'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_112', 'en', 'Schema'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_112', 'fr', 'Schema'); + INSERT INTO s_vitis.vm_mode (mode_id, module_id) VALUES ('anc_saisie','anc'); + INSERT INTO s_vitis.vm_mode (mode_id, module_id) VALUES ('anc_parametrage','anc'); + INSERT INTO s_vitis.vm_mode_rolname (index,mode_id, rolname) VALUES (5,'anc_saisie','anc_admin'); + INSERT INTO s_vitis.vm_mode_rolname (index,mode_id, rolname) VALUES (5,'anc_saisie','anc_user'); + INSERT INTO s_vitis.vm_mode_rolname (index,mode_id, rolname) VALUES (6,'anc_parametrage','anc_admin'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 0, 'anc_saisie', 'anc_11', 'anc/installations', 'editSectionForm', 'showSectionForm', 'id_installation', 'ASC', 'anc_installation'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 1, 'anc_saisie', 'anc_15', 'anc/controles', 'editSectionForm', 'showSectionForm', 'id_controle', 'ASC', 'anc_controle'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 5, 'anc_saisie', 'anc_74', 'anc/pretraitements', 'editSectionForm', 'showSectionForm', 'id_pretraitement', 'ASC', 'anc_pretraitement'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 2, 'anc_saisie', 'anc_82', 'anc/evacuation_eauxs', 'editSectionForm', 'showSectionForm', 'id_eva', 'ASC', 'anc_evacuation_eaux'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 3, 'anc_saisie', 'anc_90', 'anc/traitements', 'editSectionForm', 'showSectionForm', 'id_traitement', 'ASC', 'anc_traitement'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 4, 'anc_saisie', 'anc_19', 'anc/filieres_agrees', 'editSectionForm', 'showSectionForm', 'id_fag', 'ASC', 'anc_filieres_agree'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 2, 'anc_parametrage', 'anc_42', 'anc/param_admins', 'editSectionForm', 'showSectionForm', 'id_parametre_admin', 'ASC', 'anc_param_admin'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 0, 'anc_parametrage', 'anc_23', 'anc/param_listes', 'editSectionForm', 'showSectionForm', 'id_parametre_liste', 'ASC', 'anc_param_liste'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 1, 'anc_parametrage', 'anc_32', 'anc/param_tarifs', 'editSectionForm', 'showSectionForm', 'id_parametre_tarif', 'ASC', 'anc_param_tarif'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 3, 'anc_parametrage', 'anc_57', 'anc/entreprises', 'editSectionForm', 'showSectionForm', 'id_parametre_entreprises', 'ASC', 'anc_entreprise'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_13', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_14', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_17', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_18', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_21', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_22', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_25', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_26', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_34', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_35', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_44', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_45', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_59', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_60', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_76', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_77', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_84', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_85', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_92', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_93', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_installation', '1', '1', 0, 30, 'left', 'anc_1', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'commune', '1', '1', 1, 100, 'left', 'anc_2', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'section', '1', '1', 3, 50, 'left', 'anc_3', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'parcelle', '1', '1', 4, 50, 'left', 'anc_4', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'num_dossier', '1', '1', 5, 80, 'left', 'anc_5', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_parametre_liste', '1', '1', 0, 120, 'left', 'anc_27', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_nom_table', '1', '1', 1, 100, 'left', 'anc_28', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'nom_liste', '1', '1', 2, 120, 'left', 'anc_29', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'valeur', '1', '1', 3, 200, 'left', 'anc_30', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'alias', '1', '1', 4, 120, 'left', 'anc_31', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_parametre_tarif', '1', '1', 0, 120, 'left', 'anc_36', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_com', '1', '1', 1, 50, 'left', 'anc_37', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'controle_type', '1', '1', 2, 90, 'left', 'anc_38', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'montant', '1', '1', 3, 50, 'left', 'anc_39', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'annee_validite', '1', '1', 4, 90, 'left', 'anc_40', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'devise', '1', '1', 5, 50, 'left', 'anc_41', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_parametre_admin', '1', '1', 0, 50, 'left', 'anc_46', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_com', '1', '1', 1, 110, 'left', 'anc_47', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'type', '1', '1', 2, 50, 'left', 'anc_48', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'sous type', '1', '1', 3, 70, 'left', 'anc_49', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'nom', '1', '1', 4, 50, 'left', 'anc_50', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prenom', '1', '1', 5, 50, 'left', 'anc_51', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'description', '1', '1', 6, 70, 'left', 'anc_52', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'civilite', '1', '1', 7, 50, 'left', 'anc_53', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'date_fin_validite', '1', '1', 8, 50, 'left', 'anc_54', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'qualite', '1', '1', 9, 50, 'left', 'anc_55', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'signature', '1', '1', 10, 60, 'left', 'anc_56', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_parametre_entreprises', '1', '1', 0, 50, 'left', 'anc_61', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_com', '1', '1', 1, 50, 'left', 'anc_62', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'siret', '1', '1', 2, 105, 'left', 'anc_63', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'nom_entreprise', '1', '1', 3, 110, 'left', 'anc_64', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'code_postal', '1', '1', 4, 80, 'left', 'anc_65', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'voie', '1', '1', 5, 180, 'left', 'anc_66', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_controle', '1', '1', 0, 70, 'left', 'anc_67', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_installation', '1', '1', 1, 90, 'left', 'anc_68', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'controle_type', '1', '1', 2, 140, 'left', 'anc_69', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'maj', '1', '1', 3, 100, 'left', 'anc_70', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'maj_date', '1', '1', 4, 70, 'left', 'anc_71', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'create', '1', '1', 5, 100, 'left', 'anc_72', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'create_date', '1', '1', 6, 70, 'left', 'anc_73', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_pretraitement', '1', '1', 0, 50, 'left', 'anc_78', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_controle', '1', '1', 1, 60, 'left', 'anc_79', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'ptr_type', '1', '1', 2, 200, 'left', 'anc_80', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'num_dossier', '1', '1', 3, 100, 'left', 'anc_81', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_eva', '1', '1', 0, 50, 'left', 'anc_86', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_controle', '1', '1', 1, 70, 'left', 'anc_87', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'evac_type', '1', '1', 2, 250, 'left', 'anc_88', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'create', '1', '1', 3, 100, 'left', 'anc_89', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_traitement', '1', '1', 0, 80, 'left', 'anc_97', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_controle', '1', '1', 1, 70, 'left', 'anc_98', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'tra_type', '1', '1', 2, 50, 'left', 'anc_99', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'num_dossier', '1', '1', 3, 80, 'left', 'anc_100', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_fag', '1', '1', 0, 50, 'left', 'anc_101', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_controle', '1', '1', 1, 80, 'left', 'anc_102', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'fag_type', '1', '1', 2, 120, 'left', 'anc_103', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'num_dossier', '1', '1', 3, 100, 'left', 'anc_104', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_16', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_20', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_24', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_33', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_43', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_12', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_58', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_6', 'installation_suivi', 2, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_7', 'installation_documents', 3, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_8', 'controle_pretraitement', 2, 'Javascript:loadAncPretraitementsControl', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'workspaceListTpl.html', 'anc/pretraitements', 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_9', 'controle_toilettes_seches', 3, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_10', 'controle_ventilation', 4, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_105', 'controle_traitement', 5, 'Javascript:loadAncTraitementsControl', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'workspaceListTpl.html', 'anc/traitements', 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_106', 'controle_filieres', 6, 'Javascript:loadAncFilieresAgreeesControl', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'workspaceListTpl.html', 'anc/filieres_agrees', 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_107', 'controle_dispositif', 7, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_108', 'controle_evacuation', 8, 'Javascript:loadAncEvacuationEauxControl', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'workspaceListTpl.html', 'anc/evacuation_eauxs', 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_109', 'controle_conclusion', 9, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_110', 'controle_suivi', 10, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_111', 'controle_documents', 11, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_75', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_83', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), 'workspaceListTpl.html', 'anc/evacuation_eauxs', 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_112', 'controle_schema', 12, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_91', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), 'anc'); + + -- Installation + DROP VIEW s_anc.v_installation; + ALTER TABLE s_anc.installation ALTER COLUMN archivage TYPE boolean USING archivage::boolean; + CREATE OR REPLACE VIEW s_anc.v_installation AS sELECT installation.id_installation, installation.id_com, installation.id_parc, installation.parc_sup, installation.parc_parcelle_associees, installation.parc_adresse, installation.code_postal, installation.parc_commune, installation.prop_titre, installation.prop_nom_prenom, installation.prop_adresse, installation.prop_code_postal, installation.prop_commune, installation.prop_tel, installation.prop_mail, installation.bati_type, installation.bati_ca_nb_pp, installation.bati_ca_nb_eh, installation.bati_ca_nb_chambres, installation.bati_ca_nb_autres_pieces, installation.bati_ca_nb_occupant, installation.bati_nb_a_control, installation.bati_date_achat, installation.bati_date_mutation, installation.cont_zone_enjeu, installation.cont_zone_sage, installation.cont_zone_autre, installation.cont_zone_urba, installation.cont_zone_anc, installation.cont_alim_eau_potable, installation.cont_puits_usage, installation.cont_puits_declaration, installation.cont_puits_situation, installation.cont_puits_terrain_mitoyen, installation.observations, installation.maj, installation.maj_date, installation."create", installation.create_date, installation.archivage, installation.geom, installation.photo_f, installation.document_f, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, commune.texte AS commune, parcelle.section, parcelle.parcelle, ( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle, last_controle.cl_avis, next_control.next_control FROM s_anc.installation LEFT JOIN s_cadastre.commune ON installation.id_com::bpchar = commune.id_com LEFT JOIN s_cadastre.parcelle ON installation.id_parc::bpchar = parcelle.id_par LEFT JOIN (select id_installation, max(des_date_control) as last_date_control, cl_avis from s_anc.controle where des_date_control < now() group by id_installation, cl_avis ORDER by last_date_control DESC LIMIT 1) as last_controle on installation.id_installation = last_controle.id_installation LEFT JOIN (select id_installation, min(des_date_control + interval '1 year' * des_interval_control) as next_control from s_anc.controle where des_date_control + interval '1 year' * des_interval_control > now() group by id_installation) as next_control on installation.id_installation = next_control.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_installation OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + ALTER TABLE s_anc.installation_id_installation_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.installation_id_installation_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.installation_id_installation_seq TO anc_user; + CREATE OR REPLACE RULE insert_v_installation AS ON INSERT TO s_anc.v_installation DO INSTEAD INSERT INTO s_anc.installation (id_installation , id_com, id_parc, parc_sup, parc_parcelle_associees, parc_adresse, code_postal, parc_commune, prop_titre, prop_nom_prenom, prop_adresse, prop_code_postal, prop_commune, prop_tel, prop_mail, bati_type, bati_ca_nb_pp, bati_ca_nb_eh, bati_ca_nb_chambres, bati_ca_nb_autres_pieces , bati_ca_nb_occupant, bati_nb_a_control, bati_date_achat, bati_date_mutation, cont_zone_enjeu, cont_zone_sage, cont_zone_autre, cont_zone_urba, cont_zone_anc, cont_alim_eau_potable, cont_puits_usage, cont_puits_declaration, cont_puits_situation, cont_puits_terrain_mitoyen, observations, maj, maj_date, "create", create_date, archivage, geom, photo_f, document_f) VALUES (new.id_installation, new.id_com, new.id_parc, new.parc_sup, new.parc_parcelle_associees, new.parc_adresse, new.code_postal, new.parc_commune, new.prop_titre, new.prop_nom_prenom, new.prop_adresse, new.prop_code_postal, new.prop_commune, new.prop_tel, new.prop_mail, new.bati_type, new.bati_ca_nb_pp, new.bati_ca_nb_eh, new.bati_ca_nb_chambres, new.bati_ca_nb_autres_pieces, new.bati_ca_nb_occupant, new.bati_nb_a_control, new.bati_date_achat, new.bati_date_mutation, new.cont_zone_enjeu, new.cont_zone_sage, new.cont_zone_autre, new.cont_zone_urba, new.cont_zone_anc, new.cont_alim_eau_potable, new.cont_puits_usage, new.cont_puits_declaration, new.cont_puits_situation, new.cont_puits_terrain_mitoyen, new.observations, new.maj, new.maj_date, new."create", new.create_date, new.archivage, new.geom, new.photo_f, new.document_f) RETURNING s_anc.installation.*, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, (select commune.texte as commune from s_cadastre.commune where commune.id_com = installation.id_com), (select parcelle.section from s_cadastre.parcelle where parcelle.id_par = installation.id_parc), (select parcelle.parcelle from s_cadastre.parcelle where parcelle.id_par = installation.id_parc), (SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation), ( SELECT controle.cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() GROUP BY controle.cl_avis ORDER BY (max(controle.des_date_control)) DESC LIMIT 1), ( SELECT min(controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) > now() GROUP BY controle.id_installation); + CREATE OR REPLACE RULE update_v_installation AS ON UPDATE TO s_anc.v_installation DO INSTEAD UPDATE s_anc.installation SET id_com=new.id_com, id_parc=new.id_parc, parc_sup=new.parc_sup, parc_parcelle_associees=new.parc_parcelle_associees, parc_adresse=new.parc_adresse, code_postal=new.code_postal, parc_commune=new.parc_commune, prop_titre=new.prop_titre, prop_nom_prenom=new.prop_nom_prenom, prop_adresse=new.prop_adresse, prop_code_postal=new.prop_code_postal, prop_commune=new.prop_commune, prop_tel=new.prop_tel, prop_mail=new.prop_mail, bati_type=new.bati_type, bati_ca_nb_pp=new.bati_ca_nb_pp, bati_ca_nb_eh=new.bati_ca_nb_eh, bati_ca_nb_chambres=new.bati_ca_nb_chambres, bati_ca_nb_autres_pieces=new.bati_ca_nb_autres_pieces, bati_ca_nb_occupant=new.bati_ca_nb_occupant, bati_nb_a_control=new.bati_nb_a_control, bati_date_achat=new.bati_date_achat, bati_date_mutation=new.bati_date_mutation, cont_zone_enjeu=new.cont_zone_enjeu, cont_zone_sage=new.cont_zone_sage, cont_zone_autre=new.cont_zone_autre, cont_zone_urba=new.cont_zone_urba, cont_zone_anc=new.cont_zone_anc, cont_alim_eau_potable=new.cont_alim_eau_potable, cont_puits_usage=new.cont_puits_usage, cont_puits_declaration=new.cont_puits_declaration, cont_puits_situation=new.cont_puits_situation, cont_puits_terrain_mitoyen=new.cont_puits_terrain_mitoyen, observations=new.observations, maj=new.maj, maj_date=new.maj_date, "create"=new."create", create_date=new.create_date, archivage=new.archivage, geom=new.geom, photo_f=new.photo_f, document_f=new.document_f WHERE id_installation = new.id_installation; + CREATE OR REPLACE RULE delete_v_installation AS ON DELETE TO s_anc.v_installation DO INSTEAD DELETE FROM s_anc.installation WHERE installation.id_installation = old.id_installation; + + -- Contrôle + ALTER TABLE s_anc.controle_id_controle_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.controle_id_controle_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.controle_id_controle_seq TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Prétraitement + DROP VIEW s_anc.v_pretraitement; + CREATE OR REPLACE VIEW s_anc.v_pretraitement AS SELECT pretraitement.id_pretraitement, pretraitement.id_controle, pretraitement.ptr_type, pretraitement.ptr_volume, pretraitement.ptr_marque, pretraitement.ptr_materiau, pretraitement.ptr_pose, pretraitement.ptr_adapte, pretraitement.ptr_conforme_projet, pretraitement.ptr_dalle_repartition, pretraitement.ptr_renforce, pretraitement.ptr_verif_mise_en_eau, pretraitement.ptr_type_eau, pretraitement.ptr_reglementaire, pretraitement.ptr_destination, pretraitement.ptr_cloison, pretraitement.ptr_commentaire, pretraitement.ptr_im_distance, pretraitement.ptr_im_hydrom, pretraitement.ptr_im_dalle, pretraitement.ptr_im_renfor, pretraitement.ptr_im_puit, pretraitement.ptr_im_fixation, pretraitement.ptr_im_acces, pretraitement.ptr_et_degrad, pretraitement.ptr_et_real, pretraitement.ptr_vi_date, pretraitement.ptr_vi_justi, pretraitement.ptr_vi_entr, pretraitement.ptr_vi_bord, pretraitement.ptr_vi_dest, pretraitement.ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f, controle.id_installation, controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.pretraitement LEFT JOIN s_anc.controle ON pretraitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_pretraitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_user; + CREATE OR REPLACE RULE insert_v_pretraitement AS ON INSERT TO s_anc.v_pretraitement DO INSTEAD INSERT INTO s_anc.pretraitement(id_pretraitement, id_controle, ptr_type, ptr_volume, ptr_marque, ptr_materiau, ptr_pose, ptr_adapte, ptr_conforme_projet, ptr_dalle_repartition, ptr_renforce, ptr_verif_mise_en_eau, ptr_type_eau, ptr_reglementaire, ptr_destination, ptr_cloison, ptr_commentaire, ptr_im_distance, ptr_im_hydrom, ptr_im_dalle, ptr_im_renfor, ptr_im_puit, ptr_im_fixation, ptr_im_acces, ptr_et_degrad, ptr_et_real, ptr_vi_date, ptr_vi_justi, ptr_vi_entr, ptr_vi_bord, ptr_vi_dest, ptr_vi_perc, maj, maj_date, "create", create_date, photos_f, fiche_f, schema_f, documents_f, plan_f) VALUES (new.id_pretraitement, new.id_controle, new.ptr_type, new.ptr_volume, new.ptr_marque, new.ptr_materiau, new.ptr_pose, new.ptr_adapte, new.ptr_conforme_projet, new.ptr_dalle_repartition, new.ptr_renforce, new.ptr_verif_mise_en_eau, new.ptr_type_eau, new.ptr_reglementaire, new.ptr_destination, new.ptr_cloison, new.ptr_commentaire, new.ptr_im_distance, new.ptr_im_hydrom, new.ptr_im_dalle, new.ptr_im_renfor, new.ptr_im_puit, new.ptr_im_fixation, new.ptr_im_acces, new.ptr_et_degrad, new.ptr_et_real, new.ptr_vi_date, new.ptr_vi_justi, new.ptr_vi_entr, new.ptr_vi_bord, new.ptr_vi_dest, new.ptr_vi_perc, new.maj, new.maj_date, new."create", new.create_date, new.photos_f, new.fiche_f, new.schema_f, new.documents_f, new.plan_f) RETURNING pretraitement.id_pretraitement, pretraitement.id_controle, pretraitement.ptr_type, pretraitement.ptr_volume, pretraitement.ptr_marque, pretraitement.ptr_materiau, pretraitement.ptr_pose, pretraitement.ptr_adapte, pretraitement.ptr_conforme_projet, pretraitement.ptr_dalle_repartition, pretraitement.ptr_renforce, pretraitement.ptr_verif_mise_en_eau, pretraitement.ptr_type_eau, pretraitement.ptr_reglementaire, pretraitement.ptr_destination, pretraitement.ptr_cloison, pretraitement.ptr_commentaire, pretraitement.ptr_im_distance, pretraitement.ptr_im_hydrom, pretraitement.ptr_im_dalle, pretraitement.ptr_im_renfor, pretraitement.ptr_im_puit, pretraitement.ptr_im_fixation, pretraitement.ptr_im_acces, pretraitement.ptr_et_degrad, pretraitement.ptr_et_real, pretraitement.ptr_vi_date, pretraitement.ptr_vi_justi, pretraitement.ptr_vi_entr, pretraitement.ptr_vi_bord, pretraitement.ptr_vi_dest, pretraitement.ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f, (SELECT id_installation FROM s_anc.controle WHERE pretraitement.id_controle = controle.id_controle) as id_installation, (SELECT controle_type FROM s_anc.controle WHERE pretraitement.id_controle = controle.id_controle) as controle_type, (SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND id_installation = installation.id_installation) AS num_dossier; + CREATE OR REPLACE RULE update_v_pretraitement AS ON UPDATE TO s_anc.v_pretraitement DO INSTEAD UPDATE s_anc.pretraitement SET id_pretraitement = new.id_pretraitement, id_controle = new.id_controle, ptr_type = new.ptr_type, ptr_volume = new.ptr_volume, ptr_marque = new.ptr_marque, ptr_materiau = new.ptr_materiau, ptr_pose = new.ptr_pose, ptr_adapte = new.ptr_adapte, ptr_conforme_projet = new.ptr_conforme_projet, ptr_dalle_repartition = new.ptr_dalle_repartition, ptr_renforce = new.ptr_renforce, ptr_verif_mise_en_eau = new.ptr_verif_mise_en_eau, ptr_type_eau = new.ptr_type_eau, ptr_reglementaire = new.ptr_reglementaire, ptr_destination = new.ptr_destination, ptr_cloison = new.ptr_cloison, ptr_commentaire = new.ptr_commentaire, ptr_im_distance = new.ptr_im_distance, ptr_im_hydrom = new.ptr_im_hydrom, ptr_im_dalle = new.ptr_im_dalle, ptr_im_renfor = new.ptr_im_renfor, ptr_im_puit = new.ptr_im_puit, ptr_im_fixation = new.ptr_im_fixation, ptr_im_acces = new.ptr_im_acces, ptr_et_degrad = new.ptr_et_degrad, ptr_et_real = new.ptr_et_real, ptr_vi_date = new.ptr_vi_date, ptr_vi_justi = new.ptr_vi_justi, ptr_vi_entr = new.ptr_vi_entr, ptr_vi_bord = new.ptr_vi_bord, ptr_vi_dest = new.ptr_vi_dest, ptr_vi_perc = new.ptr_vi_perc, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, photos_f = new.photos_f, fiche_f = new.fiche_f, schema_f = new.schema_f, documents_f = new.documents_f, plan_f = new.plan_f WHERE pretraitement.id_pretraitement = new.id_pretraitement; + CREATE OR REPLACE RULE delete_v_pretraitement AS ON DELETE TO s_anc.v_pretraitement DO INSTEAD DELETE FROM s_anc.pretraitement WHERE pretraitement.id_pretraitement = old.id_pretraitement; + ALTER TABLE s_anc.pretraitement_id_pretraitement_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.pretraitement_id_pretraitement_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.pretraitement_id_pretraitement_seq TO anc_user; + + -- Traitement + DROP VIEW s_anc.v_traitement; + CREATE OR REPLACE VIEW s_anc.v_traitement AS SELECT traitement.id_traitement,traitement.id_controle,traitement.tra_type,traitement.tra_nb,traitement.tra_long,traitement.tra_larg,traitement.tra_tot_lin,traitement.tra_surf,traitement.tra_largeur,traitement.tra_hauteur,traitement.tra_profondeur,traitement.tra_dist_hab,traitement.tra_dist_lim_parc,traitement.tra_dist_veget,traitement.tra_dist_puit,traitement.tra_vm_racine,traitement.tra_vm_humidite,traitement.tra_vm_imper,traitement.tra_vm_geogrille,traitement.tra_vm_grav_qual,traitement.tra_vm_grav_ep,traitement.tra_vm_geo_text,traitement.tra_vm_ht_terre_veget,traitement.tra_vm_tuy_perf,traitement.tra_vm_bon_mat,traitement.tra_vm_sab_ep,traitement.tra_vm_sab_qual,traitement.tra_regrep_mat,traitement.tra_regrep_affl,traitement.tra_regrep_equi,traitement.tra_regrep_perf,traitement.tra_regbl_mat,traitement.tra_regbl_affl,traitement.tra_regbl_hz,traitement.tra_regbl_epand,traitement.tra_regbl_perf,traitement.tra_regcol_mat,traitement.tra_regcol_affl,traitement.tra_regcol_hz,traitement.maj,traitement.maj_date,traitement."create",traitement.create_date,traitement.photos_f,traitement.fiche_f,traitement.schema_f,traitement.documents_f,traitement.plan_f,controle.id_installation,controle.controle_type,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.traitement LEFT JOIN s_anc.controle ON traitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_traitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_user; + CREATE OR REPLACE RULE insert_v_traitement AS ON INSERT TO s_anc.v_traitement DO INSTEAD INSERT INTO s_anc.traitement(id_traitement,id_controle,tra_type,tra_nb,tra_long,tra_larg,tra_tot_lin,tra_surf,tra_largeur,tra_hauteur,tra_profondeur,tra_dist_hab,tra_dist_lim_parc,tra_dist_veget,tra_dist_puit,tra_vm_racine,tra_vm_humidite,tra_vm_imper,tra_vm_geogrille,tra_vm_grav_qual,tra_vm_grav_ep,tra_vm_geo_text,tra_vm_ht_terre_veget,tra_vm_tuy_perf,tra_vm_bon_mat,tra_vm_sab_ep,tra_vm_sab_qual,tra_regrep_mat,tra_regrep_affl,tra_regrep_equi,tra_regrep_perf,tra_regbl_mat,tra_regbl_affl,tra_regbl_hz,tra_regbl_epand,tra_regbl_perf,tra_regcol_mat,tra_regcol_affl,tra_regcol_hz,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f) VALUES (new.id_traitement,new.id_controle,new.tra_type,new.tra_nb,new.tra_long,new.tra_larg,new.tra_tot_lin,new.tra_surf,new.tra_largeur,new.tra_hauteur,new.tra_profondeur,new.tra_dist_hab,new.tra_dist_lim_parc,new.tra_dist_veget,new.tra_dist_puit,new.tra_vm_racine,new.tra_vm_humidite,new.tra_vm_imper,new.tra_vm_geogrille,new.tra_vm_grav_qual,new.tra_vm_grav_ep,new.tra_vm_geo_text,new.tra_vm_ht_terre_veget,new.tra_vm_tuy_perf,new.tra_vm_bon_mat,new.tra_vm_sab_ep,new.tra_vm_sab_qual,new.tra_regrep_mat,new.tra_regrep_affl,new.tra_regrep_equi,new.tra_regrep_perf,new.tra_regbl_mat,new.tra_regbl_affl,new.tra_regbl_hz,new.tra_regbl_epand,new.tra_regbl_perf,new.tra_regcol_mat,new.tra_regcol_affl,new.tra_regcol_hz,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f) RETURNING traitement.id_traitement,traitement.id_controle,traitement.tra_type,traitement.tra_nb,traitement.tra_long,traitement.tra_larg,traitement.tra_tot_lin,traitement.tra_surf,traitement.tra_largeur,traitement.tra_hauteur,traitement.tra_profondeur,traitement.tra_dist_hab,traitement.tra_dist_lim_parc,traitement.tra_dist_veget,traitement.tra_dist_puit,traitement.tra_vm_racine,traitement.tra_vm_humidite,traitement.tra_vm_imper,traitement.tra_vm_geogrille,traitement.tra_vm_grav_qual,traitement.tra_vm_grav_ep,traitement.tra_vm_geo_text,traitement.tra_vm_ht_terre_veget,traitement.tra_vm_tuy_perf,traitement.tra_vm_bon_mat,traitement.tra_vm_sab_ep,traitement.tra_vm_sab_qual,traitement.tra_regrep_mat,traitement.tra_regrep_affl,traitement.tra_regrep_equi,traitement.tra_regrep_perf,traitement.tra_regbl_mat,traitement.tra_regbl_affl,traitement.tra_regbl_hz,traitement.tra_regbl_epand,traitement.tra_regbl_perf,traitement.tra_regcol_mat,traitement.tra_regcol_affl,traitement.tra_regcol_hz,traitement.maj,traitement.maj_date,traitement."create",traitement.create_date,traitement.photos_f,traitement.fiche_f,traitement.schema_f,traitement.documents_f,traitement.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE traitement.id_controle = controle.id_controle) AS id_installation, ( SELECT controle.controle_type FROM s_anc.controle WHERE traitement.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier; + CREATE OR REPLACE RULE update_v_traitement AS ON UPDATE TO s_anc.v_traitement DO INSTEAD UPDATE s_anc.traitement SET id_traitement = new.id_traitement,id_controle = new.id_controle,tra_type = new.tra_type,tra_nb = new.tra_nb,tra_long = new.tra_long,tra_larg = new.tra_larg,tra_tot_lin = new.tra_tot_lin,tra_surf = new.tra_surf,tra_largeur = new.tra_largeur,tra_hauteur = new.tra_hauteur,tra_profondeur = new.tra_profondeur,tra_dist_hab = new.tra_dist_hab,tra_dist_lim_parc = new.tra_dist_lim_parc,tra_dist_veget = new.tra_dist_veget,tra_dist_puit = new.tra_dist_puit,tra_vm_racine = new.tra_vm_racine,tra_vm_humidite = new.tra_vm_humidite,tra_vm_imper = new.tra_vm_imper,tra_vm_geogrille = new.tra_vm_geogrille,tra_vm_grav_qual = new.tra_vm_grav_qual,tra_vm_grav_ep = new.tra_vm_grav_ep,tra_vm_geo_text = new.tra_vm_geo_text,tra_vm_ht_terre_veget = new.tra_vm_ht_terre_veget,tra_vm_tuy_perf = new.tra_vm_tuy_perf,tra_vm_bon_mat = new.tra_vm_bon_mat,tra_vm_sab_ep = new.tra_vm_sab_ep,tra_vm_sab_qual = new.tra_vm_sab_qual,tra_regrep_mat = new.tra_regrep_mat,tra_regrep_affl = new.tra_regrep_affl,tra_regrep_equi = new.tra_regrep_equi,tra_regrep_perf = new.tra_regrep_perf,tra_regbl_mat = new.tra_regbl_mat,tra_regbl_affl = new.tra_regbl_affl,tra_regbl_hz = new.tra_regbl_hz,tra_regbl_epand = new.tra_regbl_epand,tra_regbl_perf = new.tra_regbl_perf,tra_regcol_mat = new.tra_regcol_mat,tra_regcol_affl = new.tra_regcol_affl,tra_regcol_hz = new.tra_regcol_hz,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f WHERE traitement.id_traitement = new.id_traitement; + CREATE OR REPLACE RULE delete_v_traitement AS ON DELETE TO s_anc.v_traitement DO INSTEAD DELETE FROM s_anc.traitement WHERE traitement.id_traitement = old.id_traitement; + ALTER TABLE s_anc.traitement_id_traitement_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.traitement_id_traitement_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.traitement_id_traitement_seq TO anc_user; + + -- Filières agréees + DROP VIEW s_anc.v_filieres_agrees; + CREATE OR REPLACE VIEW s_anc.v_filieres_agrees AS SELECT filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.filieres_agrees LEFT JOIN s_anc.controle ON filieres_agrees.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_filieres_agrees OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_admin; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_user; + CREATE OR REPLACE RULE insert_v_filieres_agrees AS ON INSERT TO s_anc.v_filieres_agrees DO INSTEAD INSERT INTO s_anc.filieres_agrees(id_fag,id_controle,fag_type,fag_agree,fag_integerer,fag_type_fil,fag_denom,fag_fab,fag_num_ag,fag_cap_eh,fag_nb_cuv,fag_num,fag_num_filt,fag_mat_cuv,fag_guide,fag_livret,fag_contr,fag_soc,fag_pres,fag_plan,fag_tamp,fag_ancrage,fag_rep,fag_respect,fag_ventil,fag_mil_typ,fag_mil_filt,fag_mise_eau,fag_pres_alar,fag_pres_reg,fag_att_conf,fag_surpr,fag_surpr_ref,fag_surpr_dist,fag_surpr_elec,fag_surpr_aer,fag_reac_bull,fag_broy,fag_dec,fag_type_eau,fag_reg_mar,fag_reg_mat,fag_reg_affl,fag_reg_hz,fag_reg_van,fag_fvl_nb,fag_fvl_long,fag_fvl_larg,fag_fvl_prof,fag_fvl_sep,fag_fvl_pla,fag_fvl_drain,fag_fvl_resp,fag_fhz_long,fag_fhz_larg,fag_fhz_prof,fag_fhz_drain,fag_fhz_resp,fag_mat_qual,fag_mat_epa,fag_pres_veg,fag_pres_pro,fag_acces,fag_et_deg,fag_et_od,fag_et_dy,fag_en_date,fag_en_jus,fag_en_entr,fag_en_bord,fag_en_dest,fag_en_perc,fag_en_contr,fag_en_mainteger,fag_dist_arb,fag_dist_parc,fag_dist_hab,fag_dist_cap,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f) VALUES (new.id_fag,new.id_controle,new.fag_type,new.fag_agree,new.fag_integerer,new.fag_type_fil,new.fag_denom,new.fag_fab,new.fag_num_ag,new.fag_cap_eh,new.fag_nb_cuv,new.fag_num,new.fag_num_filt,new.fag_mat_cuv,new.fag_guide,new.fag_livret,new.fag_contr,new.fag_soc,new.fag_pres,new.fag_plan,new.fag_tamp,new.fag_ancrage,new.fag_rep,new.fag_respect,new.fag_ventil,new.fag_mil_typ,new.fag_mil_filt,new.fag_mise_eau,new.fag_pres_alar,new.fag_pres_reg,new.fag_att_conf,new.fag_surpr,new.fag_surpr_ref,new.fag_surpr_dist,new.fag_surpr_elec,new.fag_surpr_aer,new.fag_reac_bull,new.fag_broy,new.fag_dec,new.fag_type_eau,new.fag_reg_mar,new.fag_reg_mat,new.fag_reg_affl,new.fag_reg_hz,new.fag_reg_van,new.fag_fvl_nb,new.fag_fvl_long,new.fag_fvl_larg,new.fag_fvl_prof,new.fag_fvl_sep,new.fag_fvl_pla,new.fag_fvl_drain,new.fag_fvl_resp,new.fag_fhz_long,new.fag_fhz_larg,new.fag_fhz_prof,new.fag_fhz_drain,new.fag_fhz_resp,new.fag_mat_qual,new.fag_mat_epa,new.fag_pres_veg,new.fag_pres_pro,new.fag_acces,new.fag_et_deg,new.fag_et_od,new.fag_et_dy,new.fag_en_date,new.fag_en_jus,new.fag_en_entr,new.fag_en_bord,new.fag_en_dest,new.fag_en_perc,new.fag_en_contr,new.fag_en_mainteger,new.fag_dist_arb,new.fag_dist_parc,new.fag_dist_hab,new.fag_dist_cap,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f) RETURNING filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier; + CREATE OR REPLACE RULE update_v_filieres_agrees AS ON UPDATE TO s_anc.v_filieres_agrees DO INSTEAD UPDATE s_anc.filieres_agrees SET id_fag = new.id_fag,id_controle = new.id_controle,fag_type = new.fag_type,fag_agree = new.fag_agree,fag_integerer = new.fag_integerer,fag_type_fil = new.fag_type_fil,fag_denom = new.fag_denom ,fag_fab = new.fag_fab,fag_num_ag = new.fag_num_ag,fag_cap_eh = new.fag_cap_eh,fag_nb_cuv = new.fag_nb_cuv,fag_num = new.fag_num,fag_num_filt = new.fag_num_filt,fag_mat_cuv = new.fag_mat_cuv,fag_guide = new.fag_guide,fag_livret = new.fag_livret,fag_contr = new.fag_contr,fag_soc = new.fag_soc,fag_pres = new.fag_pres,fag_plan = new.fag_plan,fag_tamp = new.fag_tamp,fag_ancrage = new.fag_ancrage,fag_rep = new.fag_rep,fag_respect = new.fag_respect,fag_ventil = new.fag_ventil,fag_mil_typ = new.fag_mil_typ,fag_mil_filt = new.fag_mil_filt,fag_mise_eau = new.fag_mise_eau,fag_pres_alar = new.fag_pres_alar,fag_pres_reg = new.fag_pres_reg,fag_att_conf = new.fag_att_conf,fag_surpr = new.fag_surpr,fag_surpr_ref = new.fag_surpr_ref,fag_surpr_dist = new.fag_surpr_dist,fag_surpr_elec = new.fag_surpr_elec,fag_surpr_aer = new.fag_surpr_aer,fag_reac_bull = new.fag_reac_bull,fag_broy = new.fag_broy,fag_dec = new.fag_dec,fag_type_eau = new.fag_type_eau,fag_reg_mar = new.fag_reg_mar,fag_reg_mat = new.fag_reg_mat,fag_reg_affl = new.fag_reg_affl,fag_reg_hz = new.fag_reg_hz,fag_reg_van = new.fag_reg_van,fag_fvl_nb = new.fag_fvl_nb,fag_fvl_long = new.fag_fvl_long,fag_fvl_larg = new.fag_fvl_larg,fag_fvl_prof = new.fag_fvl_prof,fag_fvl_sep = new.fag_fvl_sep,fag_fvl_pla = new.fag_fvl_pla,fag_fvl_drain = new.fag_fvl_drain,fag_fvl_resp = new.fag_fvl_resp,fag_fhz_long = new.fag_fhz_long,fag_fhz_larg = new.fag_fhz_larg,fag_fhz_prof = new.fag_fhz_prof,fag_fhz_drain = new.fag_fhz_drain,fag_fhz_resp = new.fag_fhz_resp,fag_mat_qual = new.fag_mat_qual,fag_mat_epa = new.fag_mat_epa,fag_pres_veg = new.fag_pres_veg,fag_pres_pro = new.fag_pres_pro,fag_acces = new.fag_acces,fag_et_deg = new.fag_et_deg,fag_et_od = new.fag_et_od,fag_et_dy = new.fag_et_dy,fag_en_date = new.fag_en_date,fag_en_jus = new.fag_en_jus,fag_en_entr = new.fag_en_entr,fag_en_bord = new.fag_en_bord,fag_en_dest = new.fag_en_dest,fag_en_perc = new.fag_en_perc,fag_en_contr = new.fag_en_contr,fag_en_mainteger = new.fag_en_mainteger,fag_dist_arb = new.fag_dist_arb,fag_dist_parc = new.fag_dist_parc,fag_dist_hab = new.fag_dist_hab,fag_dist_cap = new.fag_dist_cap,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f WHERE filieres_agrees.id_fag = new.id_fag; + CREATE OR REPLACE RULE delete_v_filieres_agrees AS ON DELETE TO s_anc.v_filieres_agrees DO INSTEAD DELETE FROM s_anc.filieres_agrees WHERE filieres_agrees.id_fag = old.id_fag; + ALTER TABLE s_anc.filieres_agrees_id_fag_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.filieres_agrees_id_fag_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.filieres_agrees_id_fag_seq TO anc_user; + + -- Evacuation des eaux + DROP VIEW s_anc.v_evacuation_eaux; + CREATE OR REPLACE VIEW s_anc.v_evacuation_eaux AS SELECT evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.evacuation_eaux LEFT JOIN s_anc.controle ON evacuation_eaux.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_evacuation_eaux OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_admin; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_user; + CREATE OR REPLACE RULE insert_v_evacuation_eaux AS ON INSERT TO s_anc.v_evacuation_eaux DO INSTEAD INSERT INTO s_anc.evacuation_eaux (id_eva,id_controle,evac_type,evac_is_nb,evac_is_long,evac_is_larg,evac_is_lin_total,evac_is_surface,evac_is_profondeur,evac_is_geotex,evac_is_rac,evac_is_hum,evac_is_reg_rep,evac_is_reb_bcl,evac_is_veg,evac_is_type_effl,evac_is_acc_reg,evac_rp_type,evac_rp_etude_hydrogeol,evac_rp_rejet,evac_rp_grav,evac_rp_tamp,evac_rp_type_eff,evac_rp_trap,evac_hs_type,evac_hs_gestionnaire,evac_hs_gestionnaire_auth,evac_hs_intr,evac_hs_type_eff,evac_hs_ecoul,evac_hs_etat,evac_commentaires,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f) VALUES (new.id_eva,new.id_controle,new.evac_type,new.evac_is_nb,new.evac_is_long,new.evac_is_larg,new.evac_is_lin_total,new.evac_is_surface,new.evac_is_profondeur,new.evac_is_geotex,new.evac_is_rac,new.evac_is_hum,new.evac_is_reg_rep,new.evac_is_reb_bcl,new.evac_is_veg,new.evac_is_type_effl,new.evac_is_acc_reg,new.evac_rp_type,new.evac_rp_etude_hydrogeol,new.evac_rp_rejet,new.evac_rp_grav,new.evac_rp_tamp,new.evac_rp_type_eff,new.evac_rp_trap,new.evac_hs_type,new.evac_hs_gestionnaire,new.evac_hs_gestionnaire_auth,new.evac_hs_intr,new.evac_hs_type_eff,new.evac_hs_ecoul,new.evac_hs_etat,new.evac_commentaires,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f) RETURNING evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier; + CREATE OR REPLACE RULE update_v_evacuation_eaux AS ON UPDATE TO s_anc.v_evacuation_eaux DO INSTEAD UPDATE s_anc.evacuation_eaux SET id_eva = new.id_eva,id_controle = new.id_controle,evac_type = new.evac_type,evac_is_nb = new.evac_is_nb,evac_is_long = new.evac_is_long,evac_is_larg = new.evac_is_larg,evac_is_lin_total = new.evac_is_lin_total,evac_is_surface = new.evac_is_surface,evac_is_profondeur = new.evac_is_profondeur,evac_is_geotex = new.evac_is_geotex,evac_is_rac = new.evac_is_rac,evac_is_hum = new.evac_is_hum,evac_is_reg_rep = new.evac_is_reg_rep,evac_is_reb_bcl = new.evac_is_reb_bcl,evac_is_veg = new.evac_is_veg,evac_is_type_effl = new.evac_is_type_effl,evac_is_acc_reg = new.evac_is_acc_reg,evac_rp_type = new.evac_rp_type,evac_rp_etude_hydrogeol = new.evac_rp_etude_hydrogeol,evac_rp_rejet = new.evac_rp_rejet,evac_rp_grav = new.evac_rp_grav,evac_rp_tamp = new.evac_rp_tamp,evac_rp_type_eff = new.evac_rp_type_eff,evac_rp_trap = new.evac_rp_trap,evac_hs_type = new.evac_hs_type,evac_hs_gestionnaire = new.evac_hs_gestionnaire,evac_hs_gestionnaire_auth = new.evac_hs_gestionnaire_auth,evac_hs_intr = new.evac_hs_intr,evac_hs_type_eff = new.evac_hs_type_eff,evac_hs_ecoul = new.evac_hs_ecoul,evac_hs_etat = new.evac_hs_etat,evac_commentaires = new.evac_commentaires,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f WHERE evacuation_eaux.id_eva = new.id_eva; + CREATE OR REPLACE RULE delete_v_evacuation_eaux AS ON DELETE TO s_anc.v_evacuation_eaux DO INSTEAD DELETE FROM s_anc.evacuation_eaux WHERE evacuation_eaux.id_eva = old.id_eva; + ALTER TABLE s_anc.evacuation_eaux_id_eva_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_user; + + -- Liste + ALTER TABLE s_anc.param_liste_id_parametre_liste_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_liste_id_parametre_liste_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_liste_id_parametre_liste_seq TO anc_user; + + -- Tarif + ALTER TABLE s_anc.param_tarif_id_parametre_tarif_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_tarif_id_parametre_tarif_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_tarif_id_parametre_tarif_seq TO anc_user; + GRANT ALL ON TABLE s_anc.param_tarif TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_tarif TO anc_user; + + -- Admin + ALTER TABLE s_anc.param_admin_id_parametre_admin_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_admin_id_parametre_admin_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_admin_id_parametre_admin_seq TO anc_user; + + -- Entreprise + ALTER TABLE s_anc.param_entreprise_id_parametre_entreprises_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_entreprise_id_parametre_entreprises_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_entreprise_id_parametre_entreprises_seq TO anc_user; + + -- Inséré en base par l'installateur ? + -- INSERT INTO s_vitis.vm_application_module (application_name, module_name) VALUES ('vmap','anc'); + + -- Bouton "Définir une installation de travail" + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Définir une installation de travail', 'anc_113'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_113','en','Définir une installation de travail'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_113','fr','Définir une installation de travail'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('set_mode_filter',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'setModeFilter()', 'anc_113', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + + -- Bouton "Désactiver une installation de travail" + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Désactiver une installation de travail', 'anc_114'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_114','en','Désactiver l''installation de travail'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_114','fr','Désactiver l''installation de travail'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('unset_mode_filter',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'unsetModeFilter()', 'anc_114', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + + -- Id de la parcelle -> 14 caractères ? + ALTER TABLE s_anc.installation DROP CONSTRAINT IF EXISTS s_anc_installation_check; + ALTER TABLE s_anc.installation ADD CONSTRAINT s_anc_installation_check CHECK (char_length(id_parc::text) = 14); + + -- Frédéric le 14/06/2017 10:10 + UPDATE s_vitis.vm_tab SET sorted_by = 'id_eva' WHERE name = 'anc_evacuation_eaux'; + UPDATE s_vitis.vm_tab SET sorted_by = 'id_traitement' WHERE name = 'anc_traitement'; + UPDATE s_vitis.vm_tab SET sorted_by = 'id_fag' WHERE name = 'anc_filieres_agree'; + UPDATE s_vitis.vm_tab SET sorted_by = 'id_parametre_admin' WHERE name = 'anc_param_admin'; + + -- Frédéric le 19/06/2017 14:56 + UPDATE s_vitis.vm_tab SET index = 2 WHERE name = 'anc_evacuation_eaux'; + UPDATE s_vitis.vm_tab SET index = 3 WHERE name = 'anc_traitement'; + UPDATE s_vitis.vm_tab SET index = 4 WHERE name = 'anc_filieres_agree'; + UPDATE s_vitis.vm_tab SET index = 5 WHERE name = 'anc_pretraitement'; + + -- Frédéric le 19/06/2017 15:13 + DELETE FROM s_vitis.vm_tab WHERE label_id = 'anc_18'; + + -- Frédéric le 19/06/2017 16:12 + DROP VIEW s_anc.v_pretraitement; + ALTER TABLE s_anc.pretraitement ALTER COLUMN ptr_volume TYPE character varying(50); + CREATE OR REPLACE VIEW s_anc.v_pretraitement AS SELECT pretraitement.id_pretraitement, pretraitement.id_controle, pretraitement.ptr_type, pretraitement.ptr_volume, pretraitement.ptr_marque, pretraitement.ptr_materiau, pretraitement.ptr_pose, pretraitement.ptr_adapte, pretraitement.ptr_conforme_projet, pretraitement.ptr_dalle_repartition, pretraitement.ptr_renforce, pretraitement.ptr_verif_mise_en_eau, pretraitement.ptr_type_eau, pretraitement.ptr_reglementaire, pretraitement.ptr_destination, pretraitement.ptr_cloison, pretraitement.ptr_commentaire, pretraitement.ptr_im_distance, pretraitement.ptr_im_hydrom, pretraitement.ptr_im_dalle, pretraitement.ptr_im_renfor, pretraitement.ptr_im_puit, pretraitement.ptr_im_fixation, pretraitement.ptr_im_acces, pretraitement.ptr_et_degrad, pretraitement.ptr_et_real, pretraitement.ptr_vi_date, pretraitement.ptr_vi_justi, pretraitement.ptr_vi_entr, pretraitement.ptr_vi_bord, pretraitement.ptr_vi_dest, pretraitement.ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f, controle.id_installation, controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.pretraitement LEFT JOIN s_anc.controle ON pretraitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_pretraitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_user; + CREATE OR REPLACE RULE insert_v_pretraitement AS ON INSERT TO s_anc.v_pretraitement DO INSTEAD INSERT INTO s_anc.pretraitement(id_pretraitement, id_controle, ptr_type, ptr_volume, ptr_marque, ptr_materiau, ptr_pose, ptr_adapte, ptr_conforme_projet, ptr_dalle_repartition, ptr_renforce, ptr_verif_mise_en_eau, ptr_type_eau, ptr_reglementaire, ptr_destination, ptr_cloison, ptr_commentaire, ptr_im_distance, ptr_im_hydrom, ptr_im_dalle, ptr_im_renfor, ptr_im_puit, ptr_im_fixation, ptr_im_acces, ptr_et_degrad, ptr_et_real, ptr_vi_date, ptr_vi_justi, ptr_vi_entr, ptr_vi_bord, ptr_vi_dest, ptr_vi_perc, maj, maj_date, "create", create_date, photos_f, fiche_f, schema_f, documents_f, plan_f) VALUES (new.id_pretraitement, new.id_controle, new.ptr_type, new.ptr_volume, new.ptr_marque, new.ptr_materiau, new.ptr_pose, new.ptr_adapte, new.ptr_conforme_projet, new.ptr_dalle_repartition, new.ptr_renforce, new.ptr_verif_mise_en_eau, new.ptr_type_eau, new.ptr_reglementaire, new.ptr_destination, new.ptr_cloison, new.ptr_commentaire, new.ptr_im_distance, new.ptr_im_hydrom, new.ptr_im_dalle, new.ptr_im_renfor, new.ptr_im_puit, new.ptr_im_fixation, new.ptr_im_acces, new.ptr_et_degrad, new.ptr_et_real, new.ptr_vi_date, new.ptr_vi_justi, new.ptr_vi_entr, new.ptr_vi_bord, new.ptr_vi_dest, new.ptr_vi_perc, new.maj, new.maj_date, new."create", new.create_date, new.photos_f, new.fiche_f, new.schema_f, new.documents_f, new.plan_f) RETURNING pretraitement.id_pretraitement, pretraitement.id_controle, pretraitement.ptr_type, pretraitement.ptr_volume, pretraitement.ptr_marque, pretraitement.ptr_materiau, pretraitement.ptr_pose, pretraitement.ptr_adapte, pretraitement.ptr_conforme_projet, pretraitement.ptr_dalle_repartition, pretraitement.ptr_renforce, pretraitement.ptr_verif_mise_en_eau, pretraitement.ptr_type_eau, pretraitement.ptr_reglementaire, pretraitement.ptr_destination, pretraitement.ptr_cloison, pretraitement.ptr_commentaire, pretraitement.ptr_im_distance, pretraitement.ptr_im_hydrom, pretraitement.ptr_im_dalle, pretraitement.ptr_im_renfor, pretraitement.ptr_im_puit, pretraitement.ptr_im_fixation, pretraitement.ptr_im_acces, pretraitement.ptr_et_degrad, pretraitement.ptr_et_real, pretraitement.ptr_vi_date, pretraitement.ptr_vi_justi, pretraitement.ptr_vi_entr, pretraitement.ptr_vi_bord, pretraitement.ptr_vi_dest, pretraitement.ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f, (SELECT id_installation FROM s_anc.controle WHERE pretraitement.id_controle = controle.id_controle) as id_installation, (SELECT controle_type FROM s_anc.controle WHERE pretraitement.id_controle = controle.id_controle) as controle_type, (SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND id_installation = installation.id_installation) AS num_dossier; + CREATE OR REPLACE RULE update_v_pretraitement AS ON UPDATE TO s_anc.v_pretraitement DO INSTEAD UPDATE s_anc.pretraitement SET id_pretraitement = new.id_pretraitement, id_controle = new.id_controle, ptr_type = new.ptr_type, ptr_volume = new.ptr_volume, ptr_marque = new.ptr_marque, ptr_materiau = new.ptr_materiau, ptr_pose = new.ptr_pose, ptr_adapte = new.ptr_adapte, ptr_conforme_projet = new.ptr_conforme_projet, ptr_dalle_repartition = new.ptr_dalle_repartition, ptr_renforce = new.ptr_renforce, ptr_verif_mise_en_eau = new.ptr_verif_mise_en_eau, ptr_type_eau = new.ptr_type_eau, ptr_reglementaire = new.ptr_reglementaire, ptr_destination = new.ptr_destination, ptr_cloison = new.ptr_cloison, ptr_commentaire = new.ptr_commentaire, ptr_im_distance = new.ptr_im_distance, ptr_im_hydrom = new.ptr_im_hydrom, ptr_im_dalle = new.ptr_im_dalle, ptr_im_renfor = new.ptr_im_renfor, ptr_im_puit = new.ptr_im_puit, ptr_im_fixation = new.ptr_im_fixation, ptr_im_acces = new.ptr_im_acces, ptr_et_degrad = new.ptr_et_degrad, ptr_et_real = new.ptr_et_real, ptr_vi_date = new.ptr_vi_date, ptr_vi_justi = new.ptr_vi_justi, ptr_vi_entr = new.ptr_vi_entr, ptr_vi_bord = new.ptr_vi_bord, ptr_vi_dest = new.ptr_vi_dest, ptr_vi_perc = new.ptr_vi_perc, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, photos_f = new.photos_f, fiche_f = new.fiche_f, schema_f = new.schema_f, documents_f = new.documents_f, plan_f = new.plan_f WHERE pretraitement.id_pretraitement = new.id_pretraitement; + CREATE OR REPLACE RULE delete_v_pretraitement AS ON DELETE TO s_anc.v_pretraitement DO INSTEAD DELETE FROM s_anc.pretraitement WHERE pretraitement.id_pretraitement = old.id_pretraitement; + + -- Frédéric le 19/06/2017 16:31 + DROP VIEW s_anc.v_controle; + ALTER TABLE s_anc.controle ALTER COLUMN dep_liste_piece TYPE text; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Frédéric le 19/06/2017 16:45 + DROP VIEW s_anc.v_controle; + DROP VIEW s_anc.v_installation; + ALTER TABLE s_anc.installation ALTER COLUMN cont_puits_terrain_mitoyen TYPE character varying(50); + CREATE OR REPLACE VIEW s_anc.v_installation AS sELECT installation.id_installation, installation.id_com, installation.id_parc, installation.parc_sup, installation.parc_parcelle_associees, installation.parc_adresse, installation.code_postal, installation.parc_commune, installation.prop_titre, installation.prop_nom_prenom, installation.prop_adresse, installation.prop_code_postal, installation.prop_commune, installation.prop_tel, installation.prop_mail, installation.bati_type, installation.bati_ca_nb_pp, installation.bati_ca_nb_eh, installation.bati_ca_nb_chambres, installation.bati_ca_nb_autres_pieces, installation.bati_ca_nb_occupant, installation.bati_nb_a_control, installation.bati_date_achat, installation.bati_date_mutation, installation.cont_zone_enjeu, installation.cont_zone_sage, installation.cont_zone_autre, installation.cont_zone_urba, installation.cont_zone_anc, installation.cont_alim_eau_potable, installation.cont_puits_usage, installation.cont_puits_declaration, installation.cont_puits_situation, installation.cont_puits_terrain_mitoyen, installation.observations, installation.maj, installation.maj_date, installation."create", installation.create_date, installation.archivage, installation.geom, installation.photo_f, installation.document_f, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, commune.texte AS commune, parcelle.section, parcelle.parcelle, ( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle, last_controle.cl_avis, next_control.next_control FROM s_anc.installation LEFT JOIN s_cadastre.commune ON installation.id_com::bpchar = commune.id_com LEFT JOIN s_cadastre.parcelle ON installation.id_parc::bpchar = parcelle.id_par LEFT JOIN (select id_installation, max(des_date_control) as last_date_control, cl_avis from s_anc.controle where des_date_control < now() group by id_installation, cl_avis ORDER by last_date_control DESC LIMIT 1) as last_controle on installation.id_installation = last_controle.id_installation LEFT JOIN (select id_installation, min(des_date_control + interval '1 year' * des_interval_control) as next_control from s_anc.controle where des_date_control + interval '1 year' * des_interval_control > now() group by id_installation) as next_control on installation.id_installation = next_control.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_installation OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + CREATE OR REPLACE RULE insert_v_installation AS ON INSERT TO s_anc.v_installation DO INSTEAD INSERT INTO s_anc.installation (id_installation , id_com, id_parc, parc_sup, parc_parcelle_associees, parc_adresse, code_postal, parc_commune, prop_titre, prop_nom_prenom, prop_adresse, prop_code_postal, prop_commune, prop_tel, prop_mail, bati_type, bati_ca_nb_pp, bati_ca_nb_eh, bati_ca_nb_chambres, bati_ca_nb_autres_pieces , bati_ca_nb_occupant, bati_nb_a_control, bati_date_achat, bati_date_mutation, cont_zone_enjeu, cont_zone_sage, cont_zone_autre, cont_zone_urba, cont_zone_anc, cont_alim_eau_potable, cont_puits_usage, cont_puits_declaration, cont_puits_situation, cont_puits_terrain_mitoyen, observations, maj, maj_date, "create", create_date, archivage, geom, photo_f, document_f) VALUES (new.id_installation, new.id_com, new.id_parc, new.parc_sup, new.parc_parcelle_associees, new.parc_adresse, new.code_postal, new.parc_commune, new.prop_titre, new.prop_nom_prenom, new.prop_adresse, new.prop_code_postal, new.prop_commune, new.prop_tel, new.prop_mail, new.bati_type, new.bati_ca_nb_pp, new.bati_ca_nb_eh, new.bati_ca_nb_chambres, new.bati_ca_nb_autres_pieces, new.bati_ca_nb_occupant, new.bati_nb_a_control, new.bati_date_achat, new.bati_date_mutation, new.cont_zone_enjeu, new.cont_zone_sage, new.cont_zone_autre, new.cont_zone_urba, new.cont_zone_anc, new.cont_alim_eau_potable, new.cont_puits_usage, new.cont_puits_declaration, new.cont_puits_situation, new.cont_puits_terrain_mitoyen, new.observations, new.maj, new.maj_date, new."create", new.create_date, new.archivage, new.geom, new.photo_f, new.document_f) RETURNING s_anc.installation.*, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, (select commune.texte as commune from s_cadastre.commune where commune.id_com = installation.id_com), (select parcelle.section from s_cadastre.parcelle where parcelle.id_par = installation.id_parc), (select parcelle.parcelle from s_cadastre.parcelle where parcelle.id_par = installation.id_parc), (SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation), ( SELECT controle.cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() GROUP BY controle.cl_avis ORDER BY (max(controle.des_date_control)) DESC LIMIT 1), ( SELECT min(controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) > now() GROUP BY controle.id_installation); + CREATE OR REPLACE RULE update_v_installation AS ON UPDATE TO s_anc.v_installation DO INSTEAD UPDATE s_anc.installation SET id_com=new.id_com, id_parc=new.id_parc, parc_sup=new.parc_sup, parc_parcelle_associees=new.parc_parcelle_associees, parc_adresse=new.parc_adresse, code_postal=new.code_postal, parc_commune=new.parc_commune, prop_titre=new.prop_titre, prop_nom_prenom=new.prop_nom_prenom, prop_adresse=new.prop_adresse, prop_code_postal=new.prop_code_postal, prop_commune=new.prop_commune, prop_tel=new.prop_tel, prop_mail=new.prop_mail, bati_type=new.bati_type, bati_ca_nb_pp=new.bati_ca_nb_pp, bati_ca_nb_eh=new.bati_ca_nb_eh, bati_ca_nb_chambres=new.bati_ca_nb_chambres, bati_ca_nb_autres_pieces=new.bati_ca_nb_autres_pieces, bati_ca_nb_occupant=new.bati_ca_nb_occupant, bati_nb_a_control=new.bati_nb_a_control, bati_date_achat=new.bati_date_achat, bati_date_mutation=new.bati_date_mutation, cont_zone_enjeu=new.cont_zone_enjeu, cont_zone_sage=new.cont_zone_sage, cont_zone_autre=new.cont_zone_autre, cont_zone_urba=new.cont_zone_urba, cont_zone_anc=new.cont_zone_anc, cont_alim_eau_potable=new.cont_alim_eau_potable, cont_puits_usage=new.cont_puits_usage, cont_puits_declaration=new.cont_puits_declaration, cont_puits_situation=new.cont_puits_situation, cont_puits_terrain_mitoyen=new.cont_puits_terrain_mitoyen, observations=new.observations, maj=new.maj, maj_date=new.maj_date, "create"=new."create", create_date=new.create_date, archivage=new.archivage, geom=new.geom, photo_f=new.photo_f, document_f=new.document_f WHERE id_installation = new.id_installation; + CREATE OR REPLACE RULE delete_v_installation AS ON DELETE TO s_anc.v_installation DO INSTEAD DELETE FROM s_anc.installation WHERE installation.id_installation = old.id_installation; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Frédéric le 21/06/2017 10:57 + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_prof_app'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_prof_app', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_prof_app', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_prof_app', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_prof_app', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_prof_app', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + + -- Armand 22/06/2017 à 11h + CREATE TABLE s_anc.composant(id_composant SERIAL NOT NULL,id_controle INT4 NOT NULL,composant_type VARCHAR(50) NOT NULL,label VARCHAR(255),observations TEXT,geom GEOMETRY NOT NULL,CONSTRAINT id_s_anc_composant PRIMARY KEY (id_composant),CONSTRAINT enforce_srid_geom CHECK (St_srid(geom) = 2154)); + ALTER TABLE s_anc.composant ADD CONSTRAINT fk_s_anc_controle_composant FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle); + ALTER TABLE s_anc.composant owner TO u_vitis; + GRANT ALL ON table s_anc.composant TO u_vitis; + CREATE TABLE s_anc.composant_type_feature_style(composant_type VARCHAR(50) NOT NULL,feature_style_id INT4 NOT NULL,CONSTRAINT s_anc_composant_type PRIMARY KEY (composant_type)); + ALTER TABLE s_anc.composant_type_feature_style ADD CONSTRAINT fk_s_anc_featurestyle_composanttypefeaturestyle FOREIGN KEY ( feature_style_id) REFERENCES s_vitis.feature_style (feature_style_id); + ALTER TABLE s_anc.composant ADD CONSTRAINT fk_s_anc_composanttypefeaturestyle_composant FOREIGN KEY ( composant_type) REFERENCES s_anc.composant_type_feature_style (composant_type); + ALTER TABLE s_anc.composant_type_feature_style owner TO u_vitis; + GRANT ALL ON table s_anc.composant_type_feature_style TO u_vitis; + CREATE OR REPLACE FUNCTION s_anc.get_composant_value(braces_value text, id_composant int) RETURNS text AS $$ DECLARE composant_data record; column_name text := regexp_replace(braces_value, '{{\s*[\w\.]+\s*}}', regexp_replace(regexp_replace(braces_value, '{{', ''), '}}', '')); BEGIN IF (braces_value ~ '{{\s*[\w\.]+\s*}}') THEN EXECUTE format('SELECT %I::text as result FROM s_anc.composant WHERE id_composant = $1', column_name) USING id_composant INTO composant_data; RETURN composant_data.result; ELSE RETURN braces_value; END IF; END $$ LANGUAGE plpgsql; + ALTER FUNCTION s_anc.get_composant_value(text,int) OWNER TO u_vitis; + CREATE OR REPLACE VIEW s_anc.v_composant AS SELECT s_anc.installation.id_installation, s_anc.controle.id_controle, s_anc.composant.id_composant, s_anc.composant.composant_type, s_anc.composant.label, s_anc.composant.observations, s_anc.composant.geom, s_anc.composant_type_feature_style.feature_style_id, (SELECT get_composant_value as draw_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_color as text), s_anc.composant.id_composant)), (SELECT get_composant_value as draw_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_outline_color as text), s_anc.composant.id_composant)), (SELECT get_composant_value as draw_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_size as text), s_anc.composant.id_composant)), (SELECT get_composant_value as draw_dash FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_dash as text), s_anc.composant.id_composant)), (SELECT get_composant_value as draw_symbol FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_symbol as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_font FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_font as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_color as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_color as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_size as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_outline_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_size as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_offset_x FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_x as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_offset_y FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_y as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_rotation FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_rotation as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_text FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_text as text), s_anc.composant.id_composant)), s_vitis.feature_style.feature_type FROM s_anc.composant LEFT JOIN s_anc.controle ON composant.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation LEFT JOIN s_anc.composant_type_feature_style ON s_anc.composant.composant_type = s_anc.composant_type_feature_style.composant_type LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id WHERE installation.id_com :: text ~ Similar_escape((SELECT "user".restriction FROM s_vitis."user" WHERE "user".login :: name = "current_user"()), NULL :: text); + CREATE OR REPLACE RULE delete_v_composant AS ON DELETE TO s_anc.v_composant DO INSTEAD DELETE FROM s_anc.composant WHERE composant.id_composant = old.id_composant; + CREATE OR REPLACE RULE update_v_composant AS ON UPDATE TO s_anc.v_composant DO INSTEAD UPDATE s_anc.composant SET id_controle = new.id_controle, composant_type = new.composant_type, label = new.label, observations = new.observations, geom = new.geom WHERE composant.id_composant = new.id_composant; + CREATE OR REPLACE RULE insert_v_composant AS ON INSERT TO s_anc.v_composant DO INSTEAD INSERT INTO s_anc.composant(id_controle, composant_type, label, observations, geom) VALUES (new.id_controle, new.composant_type, new.label, new.observations, new.geom) RETURNING (SELECT id_installation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), id_controle, id_composant, composant_type, label, observations, geom, (SELECT feature_style_id FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_dash FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_symbol FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_font FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_x FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_y FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_rotation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_text FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT feature_type FROM s_anc.v_composant WHERE id_composant = composant.id_composant); + ALTER TABLE s_anc.v_composant OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant TO anc_user; + GRANT SELECT ON TABLE s_anc.composant TO anc_admin; + GRANT SELECT ON TABLE s_anc.composant TO anc_user; + GRANT ALL ON SEQUENCE s_anc.composant_id_composant_seq TO u_vitis; + GRANT ALL ON SEQUENCE s_anc.composant_id_composant_seq TO anc_admin; + GRANT SELECT ON SEQUENCE s_anc.composant_id_composant_seq TO anc_user; + GRANT ALL ON SEQUENCE s_anc.nom_liste_id_nom_liste_seq TO u_vitis; + GRANT ALL ON SEQUENCE s_anc.nom_liste_id_nom_liste_seq TO anc_admin; + GRANT SELECT ON SEQUENCE s_anc.nom_liste_id_nom_liste_seq TO anc_user; + CREATE OR REPLACE VIEW s_anc.v_composant_type_feature_style AS SELECT s_anc.composant_type_feature_style.composant_type, s_anc.composant_type_feature_style.feature_style_id, s_vitis.feature_style.draw_color, s_vitis.feature_style.draw_outline_color, s_vitis.feature_style.draw_size, s_vitis.feature_style.draw_dash, s_vitis.feature_style.draw_symbol, s_vitis.feature_style.text_font, s_vitis.feature_style.text_color, s_vitis.feature_style.text_outline_color, s_vitis.feature_style.text_size, s_vitis.feature_style.text_outline_size, s_vitis.feature_style.text_offset_x, s_vitis.feature_style.text_offset_y, s_vitis.feature_style.text_rotation, s_vitis.feature_style.text_text, s_vitis.feature_style.feature_type FROM s_anc.composant_type_feature_style LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id; + ALTER TABLE s_anc.v_composant_type_feature_style OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_user; + INSERT INTO s_vitis.feature_style(feature_style_id, draw_color, draw_size, draw_dash, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES (0, '#9a9a9a', 5, 10, 'Arial', '#ffffff', '#000000', 18, 2, 0, 15, 0, '{{label}}', 'line'); + INSERT INTO s_anc.composant_type_feature_style(composant_type, feature_style_id) VALUES ('tuyeauPVC30', 0); + INSERT INTO s_vitis.feature_style(feature_style_id, draw_color, draw_size, draw_dash, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES (1, '#9a9a9a', 8, 10, 'Arial', '#ffffff', '#000000', 18, 2, 0, 15, 0, '{{label}}', 'line'); + INSERT INTO s_anc.composant_type_feature_style(composant_type, feature_style_id) VALUES ('tuyeauPVC50', 1); + INSERT INTO s_vitis.feature_style(feature_style_id, draw_color, draw_size, draw_dash, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES (2, '#9a9a9a', 15, 20, 'Arial', '#ffffff', '#000000', 18, 2, 0, 15, 0, '{{label}}', 'line'); + INSERT INTO s_anc.composant_type_feature_style(composant_type, feature_style_id) VALUES ('tuyeauPVC100', 2); + INSERT INTO s_vitis.feature_style(feature_style_id, draw_color, draw_outline_color, draw_size, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES (3, '#7dd8ff', '#808080', 3, 'Arial', '#ffffff', '#000000', 18, 2, 0, 15, 0, '{{label}}', 'polygon'); + INSERT INTO s_anc.composant_type_feature_style(composant_type, feature_style_id) VALUES ('cuve', 3); + INSERT INTO s_vitis.feature_style(feature_style_id, draw_color, draw_outline_color, draw_size, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES (4, '#ffffff', '#000000', 25, 'fa-cog', 'Arial', '#ffffff', '#000000', 18, 2, 0, 20, 0, '{{label}}', 'point'); + INSERT INTO s_anc.composant_type_feature_style(composant_type, feature_style_id) VALUES ('vanne', 4); + + -- Frédéric le 03/07/2017 12:19 (Listes manquantes (Admin)) + INSERT INTO s_anc.nom_table (id_nom_table) values ('param_admin'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('param_admin', 'civilite'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'civilite', 'Monsieur', 'Monsieur'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'civilite', 'Madame', 'Madame'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'civilite', 'Mademoiselle', 'Mademoiselle'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'civilite', 'Maître', 'Maître'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('param_admin', 'qualite'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'Le Responsable de Service', 'Le Responsable de Service'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'La responsable de service', 'La responsable de service'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'Le Maire,', 'Le Maire'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'La Maire', 'La Maire'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'Le Vice Président', 'Le Vice Président'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'Le Président', 'Le Président'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'Controleur', 'Controleur'); + + -- Frédéric le 03/07/2017 15:52 (Liste manquante (Admin)) + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('param_admin', 'type'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'type', 'Contrôleur', 'Contrôleur'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'type', 'Elu', 'Elu'); + + -- Frédéric le 04/07/2017 16:16 + CREATE OR REPLACE VIEW s_anc.v_param_tarif AS SELECT id_parametre_tarif, id_com, controle_type, montant, annee_validite, devise, (CASE WHEN devise IS NOT NULL THEN CONCAT(montant,' ',devise) ELSE montant END) as libelle_montant FROM s_anc.param_tarif WHERE param_tarif.id_com::text ~ similar_escape((SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_param_tarif OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_tarif TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_tarif TO anc_admin; + GRANT SELECT ON TABLE s_anc.v_param_tarif TO anc_user; + + -- Frédéric le 05/07/2017 09:56 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id= 'anc_61'; + UPDATE s_vitis.vm_table_field SET width = 50 WHERE label_id= 'anc_61'; + UPDATE s_vitis.vm_table_field SET width = 105 WHERE label_id= 'anc_63'; + UPDATE s_vitis.vm_table_field SET width = 180 WHERE label_id= 'anc_66'; + UPDATE s_vitis.vm_translation SET translation = 'Adresse' WHERE translation_id= 'anc_66' AND lang = 'fr'; + UPDATE s_vitis.vm_translation SET translation = 'Address' WHERE translation_id= 'anc_66' AND lang = 'en'; + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field mail', 'anc_115'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_115','fr','Email'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_115','en','Mail'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'mail', '1', '1', 6, 180, 'left', 'anc_115', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field telephone_fixe', 'anc_116'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_116','fr','Téléphone'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_116','en','Phone'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'telephone_fixe', '1', '1', 7, 85, 'left', 'anc_116', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field bureau_etude', 'anc_117'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_117','fr','Bureau d''étude'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_117','en','Design office'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'bureau_etude', true, true, 8, 80, 'center', 'anc_117', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field concepteur', 'anc_118'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_118','fr','Concepteur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_118','en','Designer'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'concepteur', true, true, 9, 70, 'center', 'anc_118', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field constructeur', 'anc_119'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_119','fr','Constructeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_119','en','Builder'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'constructeur', true, true, 10, 80, 'center', 'anc_119', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field installateur', 'anc_120'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_120','fr','Installateur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_120','en','Fitter'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'installateur', true, true, 11, 70, 'center', 'anc_120', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field vidangeur', 'anc_121'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_121','fr','Vidangeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_121','en','Emptier'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'vidangeur', true, true, 12, 60, 'center', 'anc_121', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field en_activite', 'anc_122'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_122','fr','En activité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_122','en','In activity'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'en_activite', true, true, 13, 70, 'center', 'anc_122', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + + -- Frédéric le 05/07/2017 11:29 + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_titre', 'anc_123'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_123','fr','Titre'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_123','en','Title'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_titre', '1', '1', 6, 50, 'left', 'anc_123', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_nom_prenom', 'anc_124'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_124','fr','Nom Prénom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_124','en','Last name First Name'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_nom_prenom', '1', '1', 7, 300, 'left', 'anc_124', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_adresse', 'anc_125'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_125','fr','Adresse'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_125','en','Address'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_adresse', '1', '1', 8, 300, 'left', 'anc_125', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_code_postal', 'anc_126'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_126','fr','Code postal'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_126','en','Postal code'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_code_postal', '1', '1', 9, 70, 'left', 'anc_126', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_tel', 'anc_127'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_127','fr','Téléphone'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_127','en','Phone'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_tel', '1', '1', 10, 70, 'left', 'anc_127', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_mail', 'anc_128'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_128','fr','Email'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_128','en','Mail'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_mail', '1', '1', 11, 200, 'left', 'anc_128', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field bati_type', 'anc_129'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_129','fr','Type de batiment'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_129','en','Type of building'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'bati_type', '1', '1', 12, 150, 'left', 'anc_129', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field nb_controle', 'anc_130'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_130','fr','Nombre de contrôles'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_130','en','Number of checks'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'nb_controle', '1', '1', 13, 130, 'left', 'anc_130', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field cl_avis', 'anc_131'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_131','fr','Conformité du dernier controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_131','en','Compliance of last control'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'cl_avis', '1', '1', 14, 180, 'left', 'anc_131', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_copm', 'anc_132'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_132','fr','Code INSEE'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_132','en','Code INSEE'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_com', '1', '1', 2, 100, 'left', 'anc_132', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + update s_anc.param_liste set alias = 'Ne sais pas' where alias = 'Nsp'; + update s_anc.param_liste set alias = 'Non vérifié' where alias = 'Nv'; + DELETE FROM s_anc.param_liste where alias = 'Pas D''Elements Attestant L''Existance'; + + -- Frédéric le 25/08/2017 12:14 + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_usage', 'INUTILISÉ', 'Inutilisé'); + UPDATE s_vitis.vm_tab SET index = 2 WHERE label_id = 'anc_74'; + UPDATE s_vitis.vm_tab SET index = 5 WHERE label_id = 'anc_82'; + + DELETE FROM s_vitis.vm_table_button WHERE tab_id = (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_14', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_13', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('set_mode_filter',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'setModeFilter()', 'anc_113', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('unset_mode_filter',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'unsetModeFilter()', 'anc_114', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + + UPDATE s_vitis.vm_table_field SET index = index + 2 WHERE tab_id = (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation') AND index > 0; + UPDATE s_vitis.vm_table_field SET index = 1, width = 100 WHERE tab_id = (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation') AND name = 'num_dossier'; + UPDATE s_vitis.vm_translation SET translation = 'n° installation' WHERE translation_id = 'anc_5'; + + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field classement_installation', 'anc_133'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_133','fr','Classement installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_133','en','Classement installation'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'classement_installation', '1', '1', 2, 370, 'left', 'anc_133', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + + GRANT ALL ON TABLE s_anc.controle TO anc_admin; + GRANT SELECT ON TABLE s_anc.controle TO anc_user; + GRANT ALL ON TABLE s_anc.dessin TO anc_admin; + GRANT SELECT ON TABLE s_anc.dessin TO anc_user; + GRANT ALL ON TABLE s_anc.evacuation_eaux TO anc_admin; + GRANT SELECT ON TABLE s_anc.evacuation_eaux TO anc_user; + GRANT ALL ON TABLE s_anc.filieres_agrees TO anc_admin; + GRANT SELECT ON TABLE s_anc.filieres_agrees TO anc_user; + GRANT ALL ON TABLE s_anc.installation TO anc_admin; + GRANT SELECT ON TABLE s_anc.installation TO anc_user; + GRANT ALL ON TABLE s_anc.pretraitement TO anc_admin; + GRANT SELECT ON TABLE s_anc.pretraitement TO anc_user; + GRANT ALL ON TABLE s_anc.traitement TO anc_admin; + GRANT SELECT ON TABLE s_anc.traitement TO anc_user; + + DROP VIEW s_anc.v_controle; + DROP VIEW s_anc.v_installation; + ALTER TABLE s_anc.controle ALTER COLUMN cl_classe_cbf TYPE character varying(100); + CREATE OR REPLACE VIEW s_anc.v_installation AS SELECT installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,v_commune.nom AS commune,v_parcelle.section,v_parcelle.parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation FROM s_anc.installation LEFT JOIN s_cadastre.v_commune ON installation.id_com::bpchar = v_commune.id_com LEFT JOIN s_cadastre.v_parcelle ON installation.id_parc::bpchar = v_parcelle.id_par WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + CREATE OR REPLACE RULE insert_v_installation AS ON INSERT TO s_anc.v_installation DO INSTEAD INSERT INTO s_anc.installation (id_installation, id_com, id_parc, parc_sup, parc_parcelle_associees, parc_adresse, code_postal, parc_commune, prop_titre, prop_nom_prenom, prop_adresse, prop_code_postal, prop_commune, prop_tel, prop_mail, bati_type, bati_ca_nb_pp, bati_ca_nb_eh, bati_ca_nb_chambres, bati_ca_nb_autres_pieces, bati_ca_nb_occupant, bati_nb_a_control, bati_date_achat, bati_date_mutation, cont_zone_enjeu, cont_zone_sage, cont_zone_autre, cont_zone_urba, cont_zone_anc, cont_alim_eau_potable, cont_puits_usage, cont_puits_declaration, cont_puits_situation, cont_puits_terrain_mitoyen, observations, maj, maj_date, "create", create_date, archivage, geom, photo_f, document_f) VALUES (new.id_installation, new.id_com, new.id_parc, new.parc_sup, new.parc_parcelle_associees, new.parc_adresse, new.code_postal, new.parc_commune, new.prop_titre, new.prop_nom_prenom, new.prop_adresse, new.prop_code_postal, new.prop_commune, new.prop_tel, new.prop_mail, new.bati_type, new.bati_ca_nb_pp, new.bati_ca_nb_eh, new.bati_ca_nb_chambres, new.bati_ca_nb_autres_pieces, new.bati_ca_nb_occupant, new.bati_nb_a_control, new.bati_date_achat, new.bati_date_mutation, new.cont_zone_enjeu, new.cont_zone_sage, new.cont_zone_autre, new.cont_zone_urba, new.cont_zone_anc, new.cont_alim_eau_potable, new.cont_puits_usage, new.cont_puits_declaration, new.cont_puits_situation, new.cont_puits_terrain_mitoyen, new.observations, new.maj, new.maj_date, new."create", new.create_date, new.archivage, new.geom, new.photo_f, new.document_f) RETURNING installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,( SELECT commune.texte AS commune FROM s_cadastre.commune WHERE commune.id_com = installation.id_com::bpchar) AS commune,( SELECT parcelle.section FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS section,( SELECT parcelle.parcelle FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation; + CREATE OR REPLACE RULE delete_v_installation AS ON DELETE TO s_anc.v_installation DO INSTEAD DELETE FROM s_anc.installation WHERE installation.id_installation = old.id_installation; + CREATE OR REPLACE RULE update_v_installation AS ON UPDATE TO s_anc.v_installation DO INSTEAD UPDATE s_anc.installation SET id_com = new.id_com, id_parc = new.id_parc, parc_sup = new.parc_sup, parc_parcelle_associees = new.parc_parcelle_associees, parc_adresse = new.parc_adresse, code_postal = new.code_postal, parc_commune = new.parc_commune, prop_titre = new.prop_titre, prop_nom_prenom = new.prop_nom_prenom, prop_adresse = new.prop_adresse, prop_code_postal = new.prop_code_postal, prop_commune = new.prop_commune, prop_tel = new.prop_tel, prop_mail = new.prop_mail, bati_type = new.bati_type, bati_ca_nb_pp = new.bati_ca_nb_pp, bati_ca_nb_eh = new.bati_ca_nb_eh, bati_ca_nb_chambres = new.bati_ca_nb_chambres, bati_ca_nb_autres_pieces = new.bati_ca_nb_autres_pieces, bati_ca_nb_occupant = new.bati_ca_nb_occupant, bati_nb_a_control = new.bati_nb_a_control, bati_date_achat = new.bati_date_achat, bati_date_mutation = new.bati_date_mutation, cont_zone_enjeu = new.cont_zone_enjeu, cont_zone_sage = new.cont_zone_sage, cont_zone_autre = new.cont_zone_autre, cont_zone_urba = new.cont_zone_urba, cont_zone_anc = new.cont_zone_anc, cont_alim_eau_potable = new.cont_alim_eau_potable, cont_puits_usage = new.cont_puits_usage, cont_puits_declaration = new.cont_puits_declaration, cont_puits_situation = new.cont_puits_situation, cont_puits_terrain_mitoyen = new.cont_puits_terrain_mitoyen, observations = new.observations, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, archivage = new.archivage, geom = new.geom, photo_f = new.photo_f, document_f = new.document_f WHERE installation.id_installation = new.id_installation; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Frédéric le 25/08/2017 15:16 + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'ETUDE DE SOL ET DE FILIÈRE', 'Etude de sol et de filière'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'AUTORISATION D''IMPLANTATION À MOINS DE 3M DES LIMITES DE PROPRIÉTÉ', 'Autorisation d''implantation à moins de 3m des limites de propriété'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_nature_projet'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_nature_projet', 'RÉHABILITATION', 'Réhabilitation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_nature_projet', 'RÉHABILITATION APRÈS VENTE', 'Réhabilitation après vente'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_nature_projet', 'NEUF', 'Neuf'); + UPDATE s_anc.param_liste SET alias = 'Estimée', valeur = 'ESTIMÉE' WHERE alias = 'Estimee'; + UPDATE s_anc.param_liste SET alias = 'Mesurée', valeur = 'MESURÉE' WHERE alias = 'Mesuree'; + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'des_collecte_ep' AND alias = 'Vers Le Dispositif D''Anc'; + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'car_dist_hab'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', '<5M', '<5m'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', '>5M', '>5m'); + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'car_dist_veget'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', '<3M', '<3m'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', '>3M', '>3m'); + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'car_dist_lim_par'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', '<3M', '<3m'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', '>3M', '>3m'); + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'car_dist_puit'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', '<35M', '<35m'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', '>35M', '>35m'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'pretraitement' AND nom_liste = 'ptr_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'BAC A GRAISSE', 'Bac à Graisse'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE TOUTES EAUX', 'Fosse toutes eaux'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'PRÉFILTRE', 'Préfiltre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'AUTRE DISPOSITIF DE PRÉTRAITEMENT', 'Autre dispositif de prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE CHIMIQUE', 'Fosse chimique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE ÉTANCHE', 'Fosse étanche'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE SEPTIQUE', 'Fosse septique'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'pretraitement' AND nom_liste = 'ptr_materiau'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'PEHD', 'Pehd'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'BETON', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'PVC', 'Pvc'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'POLYESTER', 'Polyester'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'ts_type_effluent'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_type_effluent', 'FÈCES', 'Fèces'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_type_effluent', 'URINE', 'Urine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_type_effluent', 'FÈCES + URINE', 'Feces + urine'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'ts_val_comp'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NE SAIS PAS', 'Ne sais pas'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'traitement' AND nom_liste = 'tra_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'TRANCHÉES D''EPANDAGE', 'Tranchées D''Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'LIT D''ÉPANDAGE', 'Lit d''épandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE À SABLE VERTICAL DRAINÉ', 'Filtre à Sable Vertical Drainé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE À SABLE VERTICAL NON DRAINÉ', 'Filtre à Sable Vertical Non Drainé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE À SABLE HORIZONTAL DRAINÉ', 'Filtre à Sable Horizontal Drainé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'TERTRE', 'Tertre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE COMPACT À ZÉOLITHE (5EH)', 'Filtre Compact à Zéolithe (5EH)'); + + -- Frédéric le 29/08/2017 08:50 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'traitement' AND nom_liste = 'tra_largeur'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_largeur', '50CM', '50cm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_largeur', '70CM', '70cm'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'filieres_agrees' AND nom_liste = 'fag_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'Filtre Compact', 'Filtre Compact'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'MICROSTATION À CULTURE FIXÉE', 'Microstation à culture fixée'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'MICROSTATION À CULTURE LIBRE', 'Microstation à culture libre'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'filieres_agrees' AND nom_liste = 'fag_agree'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NE SAIS PAS', 'Ne sais pas'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'filieres_agrees' AND nom_liste = 'fag_integerer'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NE SAIS PAS', 'Ne sais pas'); + + -- Frédéric le 29/08/2017 09:03 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'da_chasse_pr_nat_eau'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'AMONT PRÉTRAITEMENT', 'Amont prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'AVAL PRÉTRAITEMENT', 'Aval prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'AVAL TRAITEMENT', 'Aval traitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'AMONT PRÉTRAITEMENT+AVAL PRÉTRAITEMENT', 'Amont prétraitement+aval prétraitement'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'da_pr_loc_pompe'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'AMONT PRÉTRAITEMENT', 'Amont prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'AVAL PRÉTRAITEMENT', 'Aval prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'AVAL TRAITEMENT', 'Aval traitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'AMONT PRÉTRAITEMENT+AVAL PRÉTRAITEMENT', 'Amont prétraitement+aval prétraitement'); + + -- Frédéric le 29/08/2017 09:36 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'evacuation_eaux' AND nom_liste = 'evac_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'NOUE D''INFILTRATION', 'Noue d''infiltration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'TRANCHÉE D''INFILTRATION', 'Tranchée d''infiltration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'LIT D''INFILTRATION', 'Lit d''infiltration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'TRANCHÉE D''IRRIGATION', 'Tranchée d''irrigation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'PUISARD', 'Puisard'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'evacuation_eaux' AND nom_liste = 'evac_hs_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'COURS D''EAU', 'Cours d''eau'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'INFILTRATION SUR LA PARCELLE', 'Fossé pluvial'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'RÉSEAU PLUVIAL BUSÉ', 'Réseau pluvial busé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'MARE', 'Mare'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'ETANG', 'Etang'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'cl_avis'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_avis', 'FAVORABLE', 'Favorable'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_avis', 'DÉFAVORABLE', 'Défavorable'); + + -- Frédéric le 29/08/2017 14:17 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'controle_ss_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'HORS VENTE', 'Hors Vente'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'VENTE', 'Vente'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'DIAGNOSTIC', 'Diagnostic'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_reamenage_immeuble'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_immeuble', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_immeuble', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_immeuble', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_immeuble', 'NE SAIS PAS', 'Ne sais pas'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_vi_dest'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_dest', 'STATION D''ÉPURATION', 'Station d''épuration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_dest', 'ÉPANDAGE', 'Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_dest', 'TERRAIN', 'Terrain'); + + -- Frédéric le 29/08/2017 14:17 + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_coher_taille_util'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_coher_taille_util', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_coher_taille_util', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_coher_taille_util', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_coher_taille_util', 'NE SAIS PAS', 'Ne sais pas'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_aire_etanche'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_etanche', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_etanche', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_etanche', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_etanche', 'NE SAIS PAS', 'Ne sais pas'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_aire_abri'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_abri', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_abri', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_abri', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_abri', 'NE SAIS PAS', 'Ne sais pas'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'vt_second_type_extract'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'ABSENT', 'Absent'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'STATIQUE', 'Statique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'ÉOLIEN', 'Eolien'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'GRILLE', 'Grille'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'CHAMPIGNON', 'Champignon'); + + -- Frédéric le 30/08/2017 12:04 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'traitement' AND nom_liste = 'tra_regrep_mat'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'Beton', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'PVC', 'PVC'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'traitement' AND nom_liste = 'tra_regbl_mat'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'Beton', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'PVC', 'PVC'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'traitement' AND nom_liste = 'tra_regcol_mat'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'Beton', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'PVC', 'PVC'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'filieres_agrees' AND nom_liste = 'fag_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'MICROSTRATION', 'Microstration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'PHYTOEPURATION', 'Phytoepuration'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mil_typ'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_typ', 'ZÉOLITHE', 'Zéolithe'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_typ', 'FIBRE COCO', 'Fibre coco'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_typ', 'ECORCE DE PINS', 'Ecorce de Pins'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_typ', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_typ', 'XYLITE', 'Xylite'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_en_dest'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_dest', 'STATION D''ÉPURATION', 'Station d''épuration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_dest', 'ÉPANDAGE', 'Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_dest', 'TERRAIN', 'Terrain'); + + ALTER TABLE s_anc.filieres_agrees ADD COLUMN fag_commentaires text; + DROP VIEW s_anc.v_filieres_agrees; + CREATE OR REPLACE VIEW s_anc.v_filieres_agrees AS SELECT filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, filieres_agrees.fag_commentaires FROM s_anc.filieres_agrees LEFT JOIN s_anc.controle ON filieres_agrees.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_filieres_agrees OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_admin; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_user; + CREATE OR REPLACE RULE insert_v_filieres_agrees AS ON INSERT TO s_anc.v_filieres_agrees DO INSTEAD INSERT INTO s_anc.filieres_agrees(id_fag,id_controle,fag_type,fag_agree,fag_integerer,fag_type_fil,fag_denom,fag_fab,fag_num_ag,fag_cap_eh,fag_nb_cuv,fag_num,fag_num_filt,fag_mat_cuv,fag_guide,fag_livret,fag_contr,fag_soc,fag_pres,fag_plan,fag_tamp,fag_ancrage,fag_rep,fag_respect,fag_ventil,fag_mil_typ,fag_mil_filt,fag_mise_eau,fag_pres_alar,fag_pres_reg,fag_att_conf,fag_surpr,fag_surpr_ref,fag_surpr_dist,fag_surpr_elec,fag_surpr_aer,fag_reac_bull,fag_broy,fag_dec,fag_type_eau,fag_reg_mar,fag_reg_mat,fag_reg_affl,fag_reg_hz,fag_reg_van,fag_fvl_nb,fag_fvl_long,fag_fvl_larg,fag_fvl_prof,fag_fvl_sep,fag_fvl_pla,fag_fvl_drain,fag_fvl_resp,fag_fhz_long,fag_fhz_larg,fag_fhz_prof,fag_fhz_drain,fag_fhz_resp,fag_mat_qual,fag_mat_epa,fag_pres_veg,fag_pres_pro,fag_acces,fag_et_deg,fag_et_od,fag_et_dy,fag_en_date,fag_en_jus,fag_en_entr,fag_en_bord,fag_en_dest,fag_en_perc,fag_en_contr,fag_en_mainteger,fag_dist_arb,fag_dist_parc,fag_dist_hab,fag_dist_cap,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f,fag_commentaires) VALUES (new.id_fag,new.id_controle,new.fag_type,new.fag_agree,new.fag_integerer,new.fag_type_fil,new.fag_denom,new.fag_fab,new.fag_num_ag,new.fag_cap_eh,new.fag_nb_cuv,new.fag_num,new.fag_num_filt,new.fag_mat_cuv,new.fag_guide,new.fag_livret,new.fag_contr,new.fag_soc,new.fag_pres,new.fag_plan,new.fag_tamp,new.fag_ancrage,new.fag_rep,new.fag_respect,new.fag_ventil,new.fag_mil_typ,new.fag_mil_filt,new.fag_mise_eau,new.fag_pres_alar,new.fag_pres_reg,new.fag_att_conf,new.fag_surpr,new.fag_surpr_ref,new.fag_surpr_dist,new.fag_surpr_elec,new.fag_surpr_aer,new.fag_reac_bull,new.fag_broy,new.fag_dec,new.fag_type_eau,new.fag_reg_mar,new.fag_reg_mat,new.fag_reg_affl,new.fag_reg_hz,new.fag_reg_van,new.fag_fvl_nb,new.fag_fvl_long,new.fag_fvl_larg,new.fag_fvl_prof,new.fag_fvl_sep,new.fag_fvl_pla,new.fag_fvl_drain,new.fag_fvl_resp,new.fag_fhz_long,new.fag_fhz_larg,new.fag_fhz_prof,new.fag_fhz_drain,new.fag_fhz_resp,new.fag_mat_qual,new.fag_mat_epa,new.fag_pres_veg,new.fag_pres_pro,new.fag_acces,new.fag_et_deg,new.fag_et_od,new.fag_et_dy,new.fag_en_date,new.fag_en_jus,new.fag_en_entr,new.fag_en_bord,new.fag_en_dest,new.fag_en_perc,new.fag_en_contr,new.fag_en_mainteger,new.fag_dist_arb,new.fag_dist_parc,new.fag_dist_hab,new.fag_dist_cap,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f,new.fag_commentaires) RETURNING filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier,filieres_agrees.fag_commentaires; + CREATE OR REPLACE RULE update_v_filieres_agrees AS ON UPDATE TO s_anc.v_filieres_agrees DO INSTEAD UPDATE s_anc.filieres_agrees SET id_fag = new.id_fag,id_controle = new.id_controle,fag_type = new.fag_type,fag_agree = new.fag_agree,fag_integerer = new.fag_integerer,fag_type_fil = new.fag_type_fil,fag_denom = new.fag_denom ,fag_fab = new.fag_fab,fag_num_ag = new.fag_num_ag,fag_cap_eh = new.fag_cap_eh,fag_nb_cuv = new.fag_nb_cuv,fag_num = new.fag_num,fag_num_filt = new.fag_num_filt,fag_mat_cuv = new.fag_mat_cuv,fag_guide = new.fag_guide,fag_livret = new.fag_livret,fag_contr = new.fag_contr,fag_soc = new.fag_soc,fag_pres = new.fag_pres,fag_plan = new.fag_plan,fag_tamp = new.fag_tamp,fag_ancrage = new.fag_ancrage,fag_rep = new.fag_rep,fag_respect = new.fag_respect,fag_ventil = new.fag_ventil,fag_mil_typ = new.fag_mil_typ,fag_mil_filt = new.fag_mil_filt,fag_mise_eau = new.fag_mise_eau,fag_pres_alar = new.fag_pres_alar,fag_pres_reg = new.fag_pres_reg,fag_att_conf = new.fag_att_conf,fag_surpr = new.fag_surpr,fag_surpr_ref = new.fag_surpr_ref,fag_surpr_dist = new.fag_surpr_dist,fag_surpr_elec = new.fag_surpr_elec,fag_surpr_aer = new.fag_surpr_aer,fag_reac_bull = new.fag_reac_bull,fag_broy = new.fag_broy,fag_dec = new.fag_dec,fag_type_eau = new.fag_type_eau,fag_reg_mar = new.fag_reg_mar,fag_reg_mat = new.fag_reg_mat,fag_reg_affl = new.fag_reg_affl,fag_reg_hz = new.fag_reg_hz,fag_reg_van = new.fag_reg_van,fag_fvl_nb = new.fag_fvl_nb,fag_fvl_long = new.fag_fvl_long,fag_fvl_larg = new.fag_fvl_larg,fag_fvl_prof = new.fag_fvl_prof,fag_fvl_sep = new.fag_fvl_sep,fag_fvl_pla = new.fag_fvl_pla,fag_fvl_drain = new.fag_fvl_drain,fag_fvl_resp = new.fag_fvl_resp,fag_fhz_long = new.fag_fhz_long,fag_fhz_larg = new.fag_fhz_larg,fag_fhz_prof = new.fag_fhz_prof,fag_fhz_drain = new.fag_fhz_drain,fag_fhz_resp = new.fag_fhz_resp,fag_mat_qual = new.fag_mat_qual,fag_mat_epa = new.fag_mat_epa,fag_pres_veg = new.fag_pres_veg,fag_pres_pro = new.fag_pres_pro,fag_acces = new.fag_acces,fag_et_deg = new.fag_et_deg,fag_et_od = new.fag_et_od,fag_et_dy = new.fag_et_dy,fag_en_date = new.fag_en_date,fag_en_jus = new.fag_en_jus,fag_en_entr = new.fag_en_entr,fag_en_bord = new.fag_en_bord,fag_en_dest = new.fag_en_dest,fag_en_perc = new.fag_en_perc,fag_en_contr = new.fag_en_contr,fag_en_mainteger = new.fag_en_mainteger,fag_dist_arb = new.fag_dist_arb,fag_dist_parc = new.fag_dist_parc,fag_dist_hab = new.fag_dist_hab,fag_dist_cap = new.fag_dist_cap,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f,fag_commentaires = new.fag_commentaires WHERE filieres_agrees.id_fag = new.id_fag; + CREATE OR REPLACE RULE delete_v_filieres_agrees AS ON DELETE TO s_anc.v_filieres_agrees DO INSTEAD DELETE FROM s_anc.filieres_agrees WHERE filieres_agrees.id_fag = old.id_fag; + + -- Frédéric le 30/08/2017 16:46 + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_rp_tamp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_tamp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_tamp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_tamp', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_tamp', 'NE SAIS PAS', 'Ne sais pas'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'cl_classe_cbf'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'ABSENCE D''INSTALLATION', 'Absence D''Installation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'ABSENCE DE DEFAUT', 'Absence De Defaut'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - DÉFAUT DE SÉCURITÉ SANITAIRE', 'NON CONFORME - Défaut de sécurité sanitaire'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - DÉFAUT DE STRUCTURE OU DE FERMETURE', 'NON CONFORME - Défaut de structure ou de fermeture'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - INSTALLATION IMPLANTÉE À MOINS DE 35M D''UN PUITS DÉCLARÉ ET UTILISÉ', 'NON CONFORME - Installation implantée à moins de 35m d''un puits déclaré et utilisé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - INSTALLATION INCOMPLÈTE', 'NON CONFORME - Installation Incomplète'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - INSTALLATION SIGNIFICATIVEMENT SOUS DIMENSIONNÉE', 'NON CONFORME - Installation significativement sous dimensionnée'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - INSTALLATION PRÉSENTANT DES DYSFONCTIONNEMENTS MAJEURS', 'NON CONFORME - Installation présentant des dysfonctionnements majeurs'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'INSTALLATION NECESSITANT DES RECOMMANDATIONS DE TRAVAUX', 'Installation nécessitant des recommandations de travaux'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'ABSENT', 'Absent'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'INHABITE', 'Inhabité'); + + ALTER TABLE s_anc.controle ADD COLUMN cl_constat character varying(255); + ALTER TABLE s_anc.controle ADD COLUMN cl_travaux character varying(255); + DROP VIEW s_anc.v_controle; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Frédéric le 31/08/2017 11:07 + CREATE OR REPLACE VIEW s_anc.v_param_admin AS SELECT param_admin.id_parametre_admin,param_admin.id_com,param_admin.type,param_admin.sous_type,param_admin.nom,param_admin.prenom,param_admin.description,param_admin.civilite,param_admin.date_fin_validite,param_admin.qualite,param_admin.signature,CONCAT(nom,' ',prenom) AS nom_prenom FROM s_anc.param_admin; + ALTER TABLE s_anc.v_param_admin OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_admin TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_admin TO anc_admin; + GRANT SELECT ON TABLE s_anc.v_param_admin TO anc_user; + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_conforme'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_conforme', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_conforme', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_conforme', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_conforme', 'NE SAIS PAS', 'Ne sais pas'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'ts_val_comp'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NE SAIS PAS', 'Ne sais pas'); + + -- Frédéric le 31/08/2017 12:27 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'vt_prim_type_extract'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'ABSENCE', 'Absence'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'CHAPEAU DE VENTILATION', 'Chapeau De Ventilation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'EXTRACTEUR STATIQUE', 'Extracteur Statique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'EXTRACTEUR EOLIEN', 'Extracteur Eolien'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'AUTRE', 'Autre'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'vt_prim_ht'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', '<40 CM AU DESSUS DU FAITAGE', '<40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', '40 CM AU DESSUS DU FAÎTAGE', '40 Cm Au Dessus Du Faîtage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', '>40 CM AU DESSUS DU FAITAGE', '>40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'AUTRE', 'Autre'); + + ALTER TABLE s_anc.controle ADD COLUMN vt_commentaire text; + ALTER TABLE s_anc.controle ADD COLUMN tra_vm_geomembrane text; + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_geomembrane'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geomembrane', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geomembrane', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geomembrane', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geomembrane', 'NE SAIS PAS', 'Ne sais pas'); + + -- Frédéric le 31/08/2017 16:51 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'filieres_agrees' AND nom_liste = 'fag_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'MICROSTATION À CULTURE FIXÉE', 'Microstation à culture fixée'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'MICROSTATION À CULTURE LIBRE', 'Microstation à culture libre'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mat_cuv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_cuv', 'PEHD', 'Pehd'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_cuv', 'BETON', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_cuv', 'PVC', 'Pvc'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_cuv', 'POLYESTER', 'Polyester'); + + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_bons_grav boolean; + + -- Frédéric le 01/09/2017 10:43 + ALTER TABLE s_anc.traitement ADD COLUMN tra_longueur character varying(50); + ALTER TABLE s_anc.traitement ADD COLUMN tra_profond character varying(50); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_inf_perm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_inf_perm', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_inf_perm', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_inf_perm', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_inf_perm', 'NE SAIS PAS', 'Ne sais pas'); + + DROP VIEW s_anc.v_evacuation_eaux; + CREATE OR REPLACE VIEW s_anc.v_evacuation_eaux AS SELECT evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,evacuation_eaux.evac_rp_bons_grav FROM s_anc.evacuation_eaux LEFT JOIN s_anc.controle ON evacuation_eaux.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_evacuation_eaux OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_admin; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_user; + CREATE OR REPLACE RULE insert_v_evacuation_eaux AS ON INSERT TO s_anc.v_evacuation_eaux DO INSTEAD INSERT INTO s_anc.evacuation_eaux (id_eva,id_controle,evac_type,evac_is_nb,evac_is_long,evac_is_larg,evac_is_lin_total,evac_is_surface,evac_is_profondeur,evac_is_geotex,evac_is_rac,evac_is_hum,evac_is_reg_rep,evac_is_reb_bcl,evac_is_veg,evac_is_type_effl,evac_is_acc_reg,evac_rp_type,evac_rp_etude_hydrogeol,evac_rp_rejet,evac_rp_grav,evac_rp_tamp,evac_rp_type_eff,evac_rp_trap,evac_hs_type,evac_hs_gestionnaire,evac_hs_gestionnaire_auth,evac_hs_intr,evac_hs_type_eff,evac_hs_ecoul,evac_hs_etat,evac_commentaires,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f,evac_rp_bons_grav) VALUES (new.id_eva,new.id_controle,new.evac_type,new.evac_is_nb,new.evac_is_long,new.evac_is_larg,new.evac_is_lin_total,new.evac_is_surface,new.evac_is_profondeur,new.evac_is_geotex,new.evac_is_rac,new.evac_is_hum,new.evac_is_reg_rep,new.evac_is_reb_bcl,new.evac_is_veg,new.evac_is_type_effl,new.evac_is_acc_reg,new.evac_rp_type,new.evac_rp_etude_hydrogeol,new.evac_rp_rejet,new.evac_rp_grav,new.evac_rp_tamp,new.evac_rp_type_eff,new.evac_rp_trap,new.evac_hs_type,new.evac_hs_gestionnaire,new.evac_hs_gestionnaire_auth,new.evac_hs_intr,new.evac_hs_type_eff,new.evac_hs_ecoul,new.evac_hs_etat,new.evac_commentaires,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f,new.evac_rp_bons_grav) RETURNING evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier,evacuation_eaux.evac_rp_bons_grav; + CREATE OR REPLACE RULE update_v_evacuation_eaux AS ON UPDATE TO s_anc.v_evacuation_eaux DO INSTEAD UPDATE s_anc.evacuation_eaux SET id_eva = new.id_eva,id_controle = new.id_controle,evac_type = new.evac_type,evac_is_nb = new.evac_is_nb,evac_is_long = new.evac_is_long,evac_is_larg = new.evac_is_larg,evac_is_lin_total = new.evac_is_lin_total,evac_is_surface = new.evac_is_surface,evac_is_profondeur = new.evac_is_profondeur,evac_is_geotex = new.evac_is_geotex,evac_is_rac = new.evac_is_rac,evac_is_hum = new.evac_is_hum,evac_is_reg_rep = new.evac_is_reg_rep,evac_is_reb_bcl = new.evac_is_reb_bcl,evac_is_veg = new.evac_is_veg,evac_is_type_effl = new.evac_is_type_effl,evac_is_acc_reg = new.evac_is_acc_reg,evac_rp_type = new.evac_rp_type,evac_rp_etude_hydrogeol = new.evac_rp_etude_hydrogeol,evac_rp_rejet = new.evac_rp_rejet,evac_rp_grav = new.evac_rp_grav,evac_rp_tamp = new.evac_rp_tamp,evac_rp_type_eff = new.evac_rp_type_eff,evac_rp_trap = new.evac_rp_trap,evac_hs_type = new.evac_hs_type,evac_hs_gestionnaire = new.evac_hs_gestionnaire,evac_hs_gestionnaire_auth = new.evac_hs_gestionnaire_auth,evac_hs_intr = new.evac_hs_intr,evac_hs_type_eff = new.evac_hs_type_eff,evac_hs_ecoul = new.evac_hs_ecoul,evac_hs_etat = new.evac_hs_etat,evac_commentaires = new.evac_commentaires,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f,evac_rp_bons_grav = new.evac_rp_bons_grav WHERE evacuation_eaux.id_eva = new.id_eva; + CREATE OR REPLACE RULE delete_v_evacuation_eaux AS ON DELETE TO s_anc.v_evacuation_eaux DO INSTEAD DELETE FROM s_anc.evacuation_eaux WHERE evacuation_eaux.id_eva = old.id_eva; + ALTER TABLE s_anc.evacuation_eaux_id_eva_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_user; + + DROP VIEW s_anc.v_controle; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux,new.vt_commentaire,new.tra_vm_geomembrane) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux,controle.vt_commentaire,controle.tra_vm_geomembrane; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux,vt_commentaire = new.vt_commentaire,tra_vm_geomembrane = new.tra_vm_geomembrane WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + DROP VIEW s_anc.v_traitement; + CREATE OR REPLACE VIEW s_anc.v_traitement AS SELECT traitement.id_traitement,traitement.id_controle,traitement.tra_type,traitement.tra_nb,traitement.tra_long,traitement.tra_larg,traitement.tra_tot_lin,traitement.tra_surf,traitement.tra_largeur,traitement.tra_hauteur,traitement.tra_profondeur,traitement.tra_dist_hab,traitement.tra_dist_lim_parc,traitement.tra_dist_veget,traitement.tra_dist_puit,traitement.tra_vm_racine,traitement.tra_vm_humidite,traitement.tra_vm_imper,traitement.tra_vm_geogrille,traitement.tra_vm_grav_qual,traitement.tra_vm_grav_ep,traitement.tra_vm_geo_text,traitement.tra_vm_ht_terre_veget,traitement.tra_vm_tuy_perf,traitement.tra_vm_bon_mat,traitement.tra_vm_sab_ep,traitement.tra_vm_sab_qual,traitement.tra_regrep_mat,traitement.tra_regrep_affl,traitement.tra_regrep_equi,traitement.tra_regrep_perf,traitement.tra_regbl_mat,traitement.tra_regbl_affl,traitement.tra_regbl_hz,traitement.tra_regbl_epand,traitement.tra_regbl_perf,traitement.tra_regcol_mat,traitement.tra_regcol_affl,traitement.tra_regcol_hz,traitement.maj,traitement.maj_date,traitement."create",traitement.create_date,traitement.photos_f,traitement.fiche_f,traitement.schema_f,traitement.documents_f,traitement.plan_f,controle.id_installation,controle.controle_type,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,traitement.tra_longueur,traitement.tra_profond FROM s_anc.traitement LEFT JOIN s_anc.controle ON traitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_traitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_user; + CREATE OR REPLACE RULE insert_v_traitement AS ON INSERT TO s_anc.v_traitement DO INSTEAD INSERT INTO s_anc.traitement(id_traitement,id_controle,tra_type,tra_nb,tra_long,tra_larg,tra_tot_lin,tra_surf,tra_largeur,tra_hauteur,tra_profondeur,tra_dist_hab,tra_dist_lim_parc,tra_dist_veget,tra_dist_puit,tra_vm_racine,tra_vm_humidite,tra_vm_imper,tra_vm_geogrille,tra_vm_grav_qual,tra_vm_grav_ep,tra_vm_geo_text,tra_vm_ht_terre_veget,tra_vm_tuy_perf,tra_vm_bon_mat,tra_vm_sab_ep,tra_vm_sab_qual,tra_regrep_mat,tra_regrep_affl,tra_regrep_equi,tra_regrep_perf,tra_regbl_mat,tra_regbl_affl,tra_regbl_hz,tra_regbl_epand,tra_regbl_perf,tra_regcol_mat,tra_regcol_affl,tra_regcol_hz,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f,tra_longueur,tra_profond) VALUES (new.id_traitement,new.id_controle,new.tra_type,new.tra_nb,new.tra_long,new.tra_larg,new.tra_tot_lin,new.tra_surf,new.tra_largeur,new.tra_hauteur,new.tra_profondeur,new.tra_dist_hab,new.tra_dist_lim_parc,new.tra_dist_veget,new.tra_dist_puit,new.tra_vm_racine,new.tra_vm_humidite,new.tra_vm_imper,new.tra_vm_geogrille,new.tra_vm_grav_qual,new.tra_vm_grav_ep,new.tra_vm_geo_text,new.tra_vm_ht_terre_veget,new.tra_vm_tuy_perf,new.tra_vm_bon_mat,new.tra_vm_sab_ep,new.tra_vm_sab_qual,new.tra_regrep_mat,new.tra_regrep_affl,new.tra_regrep_equi,new.tra_regrep_perf,new.tra_regbl_mat,new.tra_regbl_affl,new.tra_regbl_hz,new.tra_regbl_epand,new.tra_regbl_perf,new.tra_regcol_mat,new.tra_regcol_affl,new.tra_regcol_hz,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f,new.tra_longueur,new.tra_profond) RETURNING traitement.id_traitement,traitement.id_controle,traitement.tra_type,traitement.tra_nb,traitement.tra_long,traitement.tra_larg,traitement.tra_tot_lin,traitement.tra_surf,traitement.tra_largeur,traitement.tra_hauteur,traitement.tra_profondeur,traitement.tra_dist_hab,traitement.tra_dist_lim_parc,traitement.tra_dist_veget,traitement.tra_dist_puit,traitement.tra_vm_racine,traitement.tra_vm_humidite,traitement.tra_vm_imper,traitement.tra_vm_geogrille,traitement.tra_vm_grav_qual,traitement.tra_vm_grav_ep,traitement.tra_vm_geo_text,traitement.tra_vm_ht_terre_veget,traitement.tra_vm_tuy_perf,traitement.tra_vm_bon_mat,traitement.tra_vm_sab_ep,traitement.tra_vm_sab_qual,traitement.tra_regrep_mat,traitement.tra_regrep_affl,traitement.tra_regrep_equi,traitement.tra_regrep_perf,traitement.tra_regbl_mat,traitement.tra_regbl_affl,traitement.tra_regbl_hz,traitement.tra_regbl_epand,traitement.tra_regbl_perf,traitement.tra_regcol_mat,traitement.tra_regcol_affl,traitement.tra_regcol_hz,traitement.maj,traitement.maj_date,traitement."create",traitement.create_date,traitement.photos_f,traitement.fiche_f,traitement.schema_f,traitement.documents_f,traitement.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE traitement.id_controle = controle.id_controle) AS id_installation, ( SELECT controle.controle_type FROM s_anc.controle WHERE traitement.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier,traitement.tra_longueur,traitement.tra_profond; + CREATE OR REPLACE RULE update_v_traitement AS ON UPDATE TO s_anc.v_traitement DO INSTEAD UPDATE s_anc.traitement SET id_traitement = new.id_traitement,id_controle = new.id_controle,tra_type = new.tra_type,tra_nb = new.tra_nb,tra_long = new.tra_long,tra_larg = new.tra_larg,tra_tot_lin = new.tra_tot_lin,tra_surf = new.tra_surf,tra_largeur = new.tra_largeur,tra_hauteur = new.tra_hauteur,tra_profondeur = new.tra_profondeur,tra_dist_hab = new.tra_dist_hab,tra_dist_lim_parc = new.tra_dist_lim_parc,tra_dist_veget = new.tra_dist_veget,tra_dist_puit = new.tra_dist_puit,tra_vm_racine = new.tra_vm_racine,tra_vm_humidite = new.tra_vm_humidite,tra_vm_imper = new.tra_vm_imper,tra_vm_geogrille = new.tra_vm_geogrille,tra_vm_grav_qual = new.tra_vm_grav_qual,tra_vm_grav_ep = new.tra_vm_grav_ep,tra_vm_geo_text = new.tra_vm_geo_text,tra_vm_ht_terre_veget = new.tra_vm_ht_terre_veget,tra_vm_tuy_perf = new.tra_vm_tuy_perf,tra_vm_bon_mat = new.tra_vm_bon_mat,tra_vm_sab_ep = new.tra_vm_sab_ep,tra_vm_sab_qual = new.tra_vm_sab_qual,tra_regrep_mat = new.tra_regrep_mat,tra_regrep_affl = new.tra_regrep_affl,tra_regrep_equi = new.tra_regrep_equi,tra_regrep_perf = new.tra_regrep_perf,tra_regbl_mat = new.tra_regbl_mat,tra_regbl_affl = new.tra_regbl_affl,tra_regbl_hz = new.tra_regbl_hz,tra_regbl_epand = new.tra_regbl_epand,tra_regbl_perf = new.tra_regbl_perf,tra_regcol_mat = new.tra_regcol_mat,tra_regcol_affl = new.tra_regcol_affl,tra_regcol_hz = new.tra_regcol_hz,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f, tra_longueur = new.tra_longueur, tra_profond = new.tra_profond WHERE traitement.id_traitement = new.id_traitement; + CREATE OR REPLACE RULE delete_v_traitement AS ON DELETE TO s_anc.v_traitement DO INSTEAD DELETE FROM s_anc.traitement WHERE traitement.id_traitement = old.id_traitement; + ALTER TABLE s_anc.traitement_id_traitement_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.traitement_id_traitement_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.traitement_id_traitement_seq TO anc_user; + + -- Frédéric le 01/09/2017 14:36 + DROP VIEW s_anc.v_controle; + DROP VIEW s_anc.v_installation; + ALTER TABLE s_anc.controle ALTER COLUMN cl_classe_cbf TYPE character varying(100); + CREATE OR REPLACE VIEW s_anc.v_installation AS SELECT installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,v_commune.nom AS commune,v_vmap_parcelle_all_geom.section,v_vmap_parcelle_all_geom.parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation FROM s_anc.installation LEFT JOIN s_cadastre.v_commune ON installation.id_com::bpchar = v_commune.id_com LEFT JOIN s_cadastre.v_vmap_parcelle_all_geom ON installation.id_parc::bpchar = v_vmap_parcelle_all_geom.id_par WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + CREATE OR REPLACE RULE insert_v_installation AS ON INSERT TO s_anc.v_installation DO INSTEAD INSERT INTO s_anc.installation (id_installation, id_com, id_parc, parc_sup, parc_parcelle_associees, parc_adresse, code_postal, parc_commune, prop_titre, prop_nom_prenom, prop_adresse, prop_code_postal, prop_commune, prop_tel, prop_mail, bati_type, bati_ca_nb_pp, bati_ca_nb_eh, bati_ca_nb_chambres, bati_ca_nb_autres_pieces, bati_ca_nb_occupant, bati_nb_a_control, bati_date_achat, bati_date_mutation, cont_zone_enjeu, cont_zone_sage, cont_zone_autre, cont_zone_urba, cont_zone_anc, cont_alim_eau_potable, cont_puits_usage, cont_puits_declaration, cont_puits_situation, cont_puits_terrain_mitoyen, observations, maj, maj_date, "create", create_date, archivage, geom, photo_f, document_f) VALUES (new.id_installation, new.id_com, new.id_parc, new.parc_sup, new.parc_parcelle_associees, new.parc_adresse, new.code_postal, new.parc_commune, new.prop_titre, new.prop_nom_prenom, new.prop_adresse, new.prop_code_postal, new.prop_commune, new.prop_tel, new.prop_mail, new.bati_type, new.bati_ca_nb_pp, new.bati_ca_nb_eh, new.bati_ca_nb_chambres, new.bati_ca_nb_autres_pieces, new.bati_ca_nb_occupant, new.bati_nb_a_control, new.bati_date_achat, new.bati_date_mutation, new.cont_zone_enjeu, new.cont_zone_sage, new.cont_zone_autre, new.cont_zone_urba, new.cont_zone_anc, new.cont_alim_eau_potable, new.cont_puits_usage, new.cont_puits_declaration, new.cont_puits_situation, new.cont_puits_terrain_mitoyen, new.observations, new.maj, new.maj_date, new."create", new.create_date, new.archivage, new.geom, new.photo_f, new.document_f) RETURNING installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,( SELECT commune.texte AS commune FROM s_cadastre.commune WHERE commune.id_com = installation.id_com::bpchar) AS commune,( SELECT parcelle.section FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS section,( SELECT parcelle.parcelle FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation; + CREATE OR REPLACE RULE delete_v_installation AS ON DELETE TO s_anc.v_installation DO INSTEAD DELETE FROM s_anc.installation WHERE installation.id_installation = old.id_installation; + CREATE OR REPLACE RULE update_v_installation AS ON UPDATE TO s_anc.v_installation DO INSTEAD UPDATE s_anc.installation SET id_com = new.id_com, id_parc = new.id_parc, parc_sup = new.parc_sup, parc_parcelle_associees = new.parc_parcelle_associees, parc_adresse = new.parc_adresse, code_postal = new.code_postal, parc_commune = new.parc_commune, prop_titre = new.prop_titre, prop_nom_prenom = new.prop_nom_prenom, prop_adresse = new.prop_adresse, prop_code_postal = new.prop_code_postal, prop_commune = new.prop_commune, prop_tel = new.prop_tel, prop_mail = new.prop_mail, bati_type = new.bati_type, bati_ca_nb_pp = new.bati_ca_nb_pp, bati_ca_nb_eh = new.bati_ca_nb_eh, bati_ca_nb_chambres = new.bati_ca_nb_chambres, bati_ca_nb_autres_pieces = new.bati_ca_nb_autres_pieces, bati_ca_nb_occupant = new.bati_ca_nb_occupant, bati_nb_a_control = new.bati_nb_a_control, bati_date_achat = new.bati_date_achat, bati_date_mutation = new.bati_date_mutation, cont_zone_enjeu = new.cont_zone_enjeu, cont_zone_sage = new.cont_zone_sage, cont_zone_autre = new.cont_zone_autre, cont_zone_urba = new.cont_zone_urba, cont_zone_anc = new.cont_zone_anc, cont_alim_eau_potable = new.cont_alim_eau_potable, cont_puits_usage = new.cont_puits_usage, cont_puits_declaration = new.cont_puits_declaration, cont_puits_situation = new.cont_puits_situation, cont_puits_terrain_mitoyen = new.cont_puits_terrain_mitoyen, observations = new.observations, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, archivage = new.archivage, geom = new.geom, photo_f = new.photo_f, document_f = new.document_f WHERE installation.id_installation = new.id_installation; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux,new.vt_commentaire,new.tra_vm_geomembrane) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux,controle.vt_commentaire,controle.tra_vm_geomembrane; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux,vt_commentaire = new.vt_commentaire,tra_vm_geomembrane = new.tra_vm_geomembrane WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Frédéric le 12/09/2017 10:20 + ALTER TABLE s_anc.controle ADD COLUMN emplacement_vt_secondaire character varying(100); + DROP VIEW s_anc.v_controle; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux,new.vt_commentaire,new.tra_vm_geomembrane,new.emplacement_vt_secondaire) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux,controle.vt_commentaire,controle.tra_vm_geomembrane,controle.emplacement_vt_secondaire; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux,vt_commentaire = new.vt_commentaire,tra_vm_geomembrane = new.tra_vm_geomembrane,emplacement_vt_secondaire = new.emplacement_vt_secondaire WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + -- Armand 19/09/2017 11:28 Possibilité d'utiliser des images + ALTER TABLE s_vitis.feature_style ADD COLUMN image text; + CREATE OR REPLACE VIEW s_anc.v_composant_type_feature_style AS SELECT s_anc.composant_type_feature_style.composant_type, s_anc.composant_type_feature_style.feature_style_id, s_vitis.feature_style.draw_color, s_vitis.feature_style.draw_outline_color, s_vitis.feature_style.draw_size, s_vitis.feature_style.draw_dash, s_vitis.feature_style.draw_symbol, s_vitis.feature_style.text_font, s_vitis.feature_style.text_color, s_vitis.feature_style.text_outline_color, s_vitis.feature_style.text_size, s_vitis.feature_style.text_outline_size, s_vitis.feature_style.text_offset_x, s_vitis.feature_style.text_offset_y, s_vitis.feature_style.text_rotation, s_vitis.feature_style.text_text, s_vitis.feature_style.feature_type, s_vitis.feature_style.image FROM s_anc.composant_type_feature_style LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id; + ALTER TABLE s_anc.v_composant_type_feature_style OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_user; + CREATE OR REPLACE VIEW s_anc.v_composant AS SELECT s_anc.installation.id_installation, s_anc.controle.id_controle, s_anc.composant.id_composant, s_anc.composant.composant_type, s_anc.composant.label, s_anc.composant.observations, s_anc.composant.geom, s_anc.composant_type_feature_style.feature_style_id, (SELECT get_composant_value AS draw_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_outline_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_dash FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_dash AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_symbol FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_symbol AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_font FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_font AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_outline_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_offset_x FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_x AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_offset_y FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_y AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_rotation FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_rotation AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_text FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_text AS text), s_anc.composant.id_composant)), s_vitis.feature_style.feature_type, (SELECT get_composant_value AS image FROM s_anc.get_composant_value(cast(s_vitis.feature_style.image AS text), s_anc.composant.id_composant)) FROM s_anc.composant LEFT JOIN s_anc.controle ON composant.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation LEFT JOIN s_anc.composant_type_feature_style ON s_anc.composant.composant_type = s_anc.composant_type_feature_style.composant_type LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id WHERE installation.id_com :: text ~ Similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login :: name = "current_user"()), NULL :: text); + CREATE OR REPLACE RULE delete_v_composant AS ON DELETE TO s_anc.v_composant DO INSTEAD DELETE FROM s_anc.composant WHERE composant.id_composant = old.id_composant; + CREATE OR REPLACE RULE update_v_composant AS ON UPDATE TO s_anc.v_composant DO INSTEAD UPDATE s_anc.composant SET id_controle = new.id_controle, composant_type = new.composant_type, label = new.label, observations = new.observations, geom = new.geom WHERE composant.id_composant = new.id_composant; + CREATE OR REPLACE RULE insert_v_composant AS ON INSERT TO s_anc.v_composant DO INSTEAD INSERT INTO s_anc.composant(id_controle, composant_type, label, observations, geom) VALUES (new.id_controle, new.composant_type, new.label, new.observations, new.geom) RETURNING (SELECT id_installation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), id_controle, id_composant, composant_type, label, observations, geom, (SELECT feature_style_id FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_dash FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_symbol FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_font FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_x FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_y FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_rotation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_text FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT feature_type FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT image FROM s_anc.v_composant WHERE id_composant = composant.id_composant); + ALTER TABLE s_anc.v_composant OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant TO anc_user; + -- Armand 20/09/2017 10:48 intégration des images de Gwendal + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (5, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAASCAYAAACq26WdAAAABmJLR0QA/wD/AP+gvaeTAAAAZklEQVQ4je3QwQnAIAyF4V8pNHuKW7mVqKeu4ASF1xXUg/Tgg9wSviQOEBtiZo8HkDRVIQRSSsP9pRTM7PYrWzrnkOYf8n9sNf+/7GAHO9jB9mMXQIzxnRlqrfmcs2qtQ2LvHUn6AKGqheQzn0FQAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (6, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAZCAMAAAAYAM5SAAAAq1BMVEVEREQ6OjoODg4AAAABAQEMDAwTExMVFRUWFhYYGBgcHBwiIiIjIyMxMTE2NjY4ODhAQEBDQ0NERERLS0tMTExPT09VVVVfX19iYmJlZWV0dHR3d3d4eHiCgoKIiIiJiYmLi4uMjIyZmZmhoaGsrKytra20tLS1tbXR0dHU1NTX19fd3d3f39/g4ODi4uLr6+vu7u7v7+/x8fH09PT5+fn6+vr8/Pz+/v7///85WpFIAAAAA3RSTlPw8vjaXk4fAAAAAWJLR0Q4oAel1gAAAH9JREFUKM9jYMYJGJgtcAAGFClzTVxSOoKs4obYpMzkOJRN5bhUMKW0+IV0gZQGr5g+qpSZHLuSOZgF1KiKLKUtwCKhaAQW0ZMXYZE0QUjJSktL86iDpRT5pKVljFCdIawGphSkMF04KkW5lCgnNwiwyWBKGWhDgDFCihEHYAIApy5sgbTYIrAAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (7, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAbCAYAAABvCO8sAAAABmJLR0QA/wD/AP+gvaeTAAABLUlEQVRIie3QsU6EMBzH8T9tb6BQ5O4igSfwAfQFbrv59Al8BEc3mN104QF8AmcHdpObbjYgufHSUCoIDXVycAIS3fpLOn7y/acWABBK6f1isbht2/YcRkYpzeu6fqSUXiqlbqSUZ2PGdV2OEHququoOPM972mw2cr/f69PpNPqyLNNhGHa73a4ry1JPWZ7nervdSsbYA9i2XR2Px0nwZ2EY6qIoZpnD4aB93/9ATdOwKIrGfuXXhBCwXC5nmdVqBX3fe2iW+oOZoAmaoAmaoAmaoAn+R5AQotq2nYUcx4G6rmcZIQRgjD8RY+wtTdNhKtRaQxAEQxzHg1Jqkum6DpIk+bIs68UCgAvHcV7X67Vn27Yew5xzLKV8xxiLpmmuCCGjxyqlEKU045xffwPc/BMbIFw2UgAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (8, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAAICAYAAABOICfKAAAABmJLR0QA/wD/AP+gvaeTAAAFY0lEQVQ4y0WV2XPTVhjF81f3oe0D0xna6Uyn7XQoHUohkJCEhASyxw0QIIQ0hKyO90WRZVmyJWuxbEu6q3pkx+HB4/HPut8599s0deYL7Z3N9BOP19WQf2rHsnbsCe0D2EUgS1rIjzqxVPe7vPmhy/Rsj+X1UJy0Iqnu2bx54DA935cXrVieXw+l+rrD9EOwYl+cGrG4Kg5k443F9COXN+tDfmREsnjVl409sGOPX6vDkWblBJrvoXnq82ojlIdgyqEz1rzsiWIz5McmfLyH5kewfCCyzaE4w7PqLjQ/QbPQF+fwcVm90fwPrDLgx0Ys8/DYeAv2xRMqfB52iCxNrRqUPGsyOqfT/kuDlt7aLFgxGBilc03qrZq0huSEizqlKVvQqbVhUhXBo3n8nh0xYmzBQKbN4jnEStlSiza2O6y9BZbGn9UofaGTOox2180xQ7zhMjRf28x/+VWzBx8V+Bi8aI3ZvM66ayZVYD56rk80aXujTbVdsInmYos1oWlsT3xoqQ9ynekwa6N9qxktt2hl1+bu1KrJuqW+cAuBMLM9efpjOTbe2MwZsb7UDh1x+X0xso487qCabjGQCoLl75YjG9l0isHobGWlRct/1GO7Mo7lojKFmQapP26QbmV0Tjjg2ftK3MClRppgnXxPnP1SjfVMh49ZX+rHLrv4oRy1PzpjzUIg1XcWu7pTCu3znpho1lCEIs7alcEoVspKC01afaDSWx84e/WPSq6R1Mk97UJPnv9ei5tTylA6aHkP3+1QyHMmZTs9dO4LTwulTmSS5TJJRV20n5e2O1ghFEkXrexdBcKzSFIFq3gs6R6C4bznUFkEU8xIOp8RvzKQbsDkFZWJhlZ1voDVBtIK2UjTSM2e+dxThxLTIi+h2UFs9wKazVBqiJUj0DzxhZsFw1jUwUoBT7qfHO4h2V6XyDLi12windQbLut5VObBVB2aGDMPI9EdiuSCyUSfWm8zcU8hyV/XBO1DahAMl1pj9uCaBssGUcsDQZ9qVKbsb5W4m2jxbCAYMjxijxq0gzFof/YES3+nn8eNuLXvsO77Luc3TD5tEhUG/Iw1ZvcVQmY0Urvw+QBtP/ExXGwRBRVH647jQ8dfNYmGmWbQGrGHDWqjA41T/6vmowYxsTesA+dWM5nWiIaCuK/tMftTIeypRhTslmAK7SoKSB8uE6FCtTulOPzXYiIPhkoHb22qfpOLKZaHzPV4coHMrxlMv1OMWa4n5BUYuqKDndH+tUZYOY0Fdubx1kOVdpEsXhoxIbFc1d9qxF/QGS+OGTnxee1umQw2UYTUBxIx3He48l0hjnERmU81e8Lfxnx/m4/ZqcdHPqBpvzCY8VMFmn2epD7OesKc1qiFC95o8gTJ0e4p1J3R6FgTRUOnKz9XSTCFS44uqkcyCrmsXYcizAVCpA9iuwY9KtUqKo9AMhWxiHRdInV0A7sEqw54ghbvWLFsl1Lm86QO5jHZMiPRRQV5akzFTAGrzUj4qCBPL6VFgqSa+G+Qg4/08q1IDAdcKvWhiCea2My+T6WG2WYpq4DZVNpocyP1gYQlNQSHLxPjYJX6nGfBlCFP8LiGN4Cb+siNNCUbIn4jksEU2nXnmUYyaPX1XYtO49Wwjs09Ysst9mrPpjNqJDfxBth51iSZVwZZPujSuXIgt+ZbbAejklk36fMvPl/AwtxCG2fmwbCJ55CIJczedsoW8OxWh87k+nLlg8O30/iLOtnMdOh0qS9XM52JD7K2Z9En9aHcWDPHmi9NtrLv0tn6QG4tGWNNLOo09nwePtDGmZSttekC2nnx9EYz9bHZobPwsXxwq8m2djr0SaHPX/0PC/wFx40gfCUAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (9, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAADwCAMAAACaA6wCAAAAgVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcJCQkKCgoODg4PDw8RERESEhIXFxcZGRkbGxshISEiIiImJiYqKiorKys6Ojo9PT1ERERVVVV+fn6BgYGOjo6qqqrZ2dnd3d3e3t7k5OTm5ubo6Ojt7e3////+/czAAAAAC3RSTlMACREbJio0RFhgjrC4tygAAAABYktHRCpTvtSeAAAAz0lEQVRo3u3byQ6CMBRA0ao41glHHFFx5P8/UKnB0JbESpDVvZsmfTmL7l+FsPJktoZwqZgJ4rR5aaZu1dJM05rXhMwpa+x6L+MbjTQzNqYDZWKjSDNXY3os0SzOaVNnk83NXJZJvvTVeXcy7w4yzL3HYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMFWa2z5pLVfqfDiZIrvHkZyd0iZ/3aX+bnZGG81sjWmgzO876G2rrmY61tyrbA8/zww/L+6X9a/gCdNI2HFLvN6gAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (10, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAADwCAMAAABhVFndAAABjFBMVEUAAAAAAAD///8AAAAAAABSUlIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAADCwsIAAAAAAAABAQEAAAAAAAAICAgAAAABAQECAgIDAwMFBQUGBgYHBwcICAgKCgoLCwsMDAwNDQ0PDw8QEBARERESEhIXFxcZGRkaGhocHBwdHR0eHh4iIiIkJCQlJSUmJiYnJycpKSkqKiowMDAxMTEzMzM0NDQ5OTk7Ozs8PDxDQ0NERERFRUVMTExNTU1RUVFUVFRVVVVdXV1eXl5jY2NmZmZnZ2dqampra2tubm5wcHBxcXF0dHR2dnZ3d3d4eHh7e3t8fHx/f3+IiIiJiYmQkJCRkZGUlJSZmZmfn5+lpaWqqqqsrKyysrK0tLS1tbW7u7u+vr6/v7/CwsLDw8PGxsbHx8fJycnMzMzOzs7T09PW1tbb29vd3d3e3t7f39/g4ODh4eHk5OTn5+fo6Ojq6urs7Ozu7u709PT19fX39/f5+fn7+/v8/Pz9/f3+/v7///99n/+NAAAAGXRSTlMACBMiLjIzOVZcYWZrbG58gYiN5+7v9PX2h/jTiAAAAAFiS0dEg/y0z9IAAAHTSURBVHja7dzXUsJAAIXhWLH3tiL2jr2hIoi9YUNRFHvsvVew5cUNDFE2GjY6GcaL81+ym48h9weOU0xHgovg/pZWSrcgVRwWJVaxBErRKV+MjeZIiIKVUGVqpiRH+Yo5l7dOKafy44yoQGl+Jc7/fiIFefuU4pUfp0pvNoWhmD6/uOiPyuOqhfrtI5ve3yqXSxYDIQWNnzWITmn/yr1q5YW3N4rP1Nn3XoOe8WyM1oifts/uvatQdsbrxcvN07uv396Td2vMKJ61zhyzlLNeUmhzXwlKnbvMejJ8w1AcZOhOCN2FlbiZiltg5YACBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQNFUWWYqU0xltU1vXjhVFt6PnJ35XTxDESYKCck3zR++/UA885NN4ny0ZFFgKYKXt/vHrzb3LUVcu6y+yXGn8yiwTmWtat8O5jrEBwy1A4NSfdV6cWXbs3DydUvNwvdhbaiMWvgaRzc81A2Va+Nt0rImZSBP8mPVm2Vtls+/UXKyfGVXySunlEr5cV5WoFzNduWJiqVTSpLyxcT4f7X9D6VUWKX04fhPhA+QrPUPGVzHrgAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (11, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAADwCAMAAABhVFndAAABmFBMVEUAAAAAAAD///8AAAAAAABSUlIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAADCwsIAAAAAAAABAQEAAAAAAAAICAgAAAABAQECAgIDAwMFBQUGBgYHBwcICAgKCgoLCwsMDAwNDQ0PDw8QEBARERESEhIXFxcZGRkaGhocHBwdHR0eHh4fHx8gICAiIiIkJCQlJSUmJiYnJycpKSkqKiowMDAxMTEyMjIzMzM0NDQ5OTk7Ozs8PDxDQ0NERERFRUVMTExNTU1RUVFUVFRVVVVdXV1eXl5jY2NmZmZnZ2dqampra2tubm5wcHBxcXF0dHR2dnZ3d3d4eHh7e3t8fHx/f3+IiIiJiYmQkJCRkZGUlJSVlZWZmZmfn5+lpaWqqqqsrKyysrK0tLS1tbW7u7u+vr6/v7/CwsLDw8PGxsbHx8fJycnMzMzOzs7T09PW1tbb29vd3d3e3t7f39/g4ODh4eHk5OTn5+fo6Ojq6urs7Ozu7u709PT19fX39/f5+fn7+/v8/Pz9/f3+/v7///9btoh2AAAAGXRSTlMACBMiLjIzOVZcYWZrbG58gYiN5+7v9PX2h/jTiAAAAAFiS0dEh/vZC8sAAAHrSURBVHja7dxVc8JAFAVg6u5UtpS6u7tAjTp1b6lTd3dq+dvdMElhMw2bdjKdPpzzECbcmw/Y94PBoJoQ4h0/w++il9ImyMn8EyVYNeGMEqK+GBxoID7irfhKgm5KVICYoHNl1hnlVDmOD5AS61ZC3efjLyizzygu5ThGPtlojtL09cEZv1QeVy3Mbx/YdP1UuVy0mAlJq6KpKKuk13LqZPes3GtWXp32KvpMqX3vTbwdJ8viy/PGYBF9t2Fy70ODsjNcRpdrxnffpGVJoXFtDZXQWd3EMU856yTpXY4rry/uUcScL7SbSP8NR5kifXfsIbIKzYWVOLiKQ+Ao8g4UKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBYpOyhJXGeMqq/Wm9rlTdeXjaLYltdXJUYSRdEJSm2YO379RXpyj1bQ+mjUv8BTB5bS7y69djltGuV6wipXjltkjqZ3Ka9W+H0w30gfMxb02m62ONNNrd6GJtmw75k48W1oavg9rfTlMw7dkcOOZ2dDYNt4mtWtyzORJOdbcWdan+fwTJckoJrFAmVxGyVeOU4xSknXrlUeoJo5RItUXI8L+Vfffl5JnlWP6i/9E+ARyC+mJ1xaq5QAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (12, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAADwCAMAAADFPuEOAAAC6FBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAACzs7MAAAAAAAAAAAAAAAAAAAAAAAAAAABDQ0MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAADBwcEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABqamoAAAAAAAAAAAAAAAAAAAAAAAAICAg9PT0AAAAAAAAAAAAAAAAAAAAAAAAlJSUAAAADAwMbGxsAAAAAAAAAAAABAQEAAAAAAAAAAAAICAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQECAgIDAwMEBAQFBQUGBgYHBwcICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8QEBARERESEhIUFBQVFRUWFhYXFxcYGBgZGRkaGhobGxscHBweHh4fHx8hISEiIiIjIyMkJCQmJiYoKCgpKSkqKiorKyssLCwvLy8wMDAzMzM1NTU5OTk6Ojo7Ozs8PDw9PT1BQUFERERGRkZKSkpMTExOTk5PT09QUFBUVFRVVVVWVlZXV1dYWFhaWlpbW1tcXFxdXV1eXl5iYmJmZmZnZ2doaGhpaWlqampsbGxvb29wcHBycnJ0dHR1dXV2dnZ3d3d5eXl6enp7e3t9fX1/f3+AgICCgoKFhYWGhoaIiIiJiYmKioqMjIyNjY2Pj4+QkJCTk5OWlpaXl5eZmZmbm5udnZ2fn5+hoaGjo6OlpaWoqKipqamqqqqsrKyvr6+ysrK1tbW2tra3t7e4uLi5ubm7u7u8vLy/v7/BwcHCwsLFxcXGxsbIyMjMzMzNzc3Pz8/Q0NDR0dHS0tLU1NTV1dXW1tbY2NjZ2dna2trb29vd3d3e3t7g4ODh4eHj4+Pk5OTl5eXn5+fo6Ojq6urs7Ozt7e3u7u7w8PDx8fHy8vLz8/P29vb39/f4+Pj5+fn6+vr7+/v8/Pz9/f3+/v7////LZK5cAAAAUnRSTlMAAgYHCAoLDRARExYWFx4eIiYyM0BBREVGTU5QVV5jZnByd3mFiIuQlJmdnqGiqqyvsLG0tba7wcnM0NTV1tnb3eTk5u3u7/Dz9fb3+Pn6+/z+u7MCVAAAAAFiS0dE96vcevcAAAPZSURBVHja7dxnWFNXGAfw66jWumhRautAqdStrVVU3Iq7FH2DApqiyFCDKy7ciMQdZ4WqXYq4cVEbFW1xtlQcaK0b94oLReF8lQdv4Ca5Nzdwow/q//8lT+655/xyznmffHw5zv7UJ0Eacq8rb4zZw/gkvd8MFSQCpkDx5KhPF/H0DLZMgJDxtxru2kUqvYkjL4ltfsEsEyNkllsNl5M8Mc+iySSk89n+OpjHackJsbrRKuGtqkbrfogzpKRnOYB5eObAthWzxvrxS/tp82J6REGT5/288+AZY2GYUs7V3FrqtAH8UoOn6uM2hdP4q/kbvDmFhu/M2WKEmn/HX9uikburi1Mxu5jiVWvVbd7Om587ZPrS9XtTb2QzdjyEoo3Cm3g0m4KP5Xw+vfSPIX5JZLjpRLt5fl2nZtUPZJjKPrnvtmrs/lVKembeovsDKPa5+Y0/X0X+SYLvxk+rudXzaNMjF/tchvGi2jUqVShmUWkbVKpEq8piib6quGzLSivxcRXX2t+SLGNdaZkx1P8vJpIDalqYIVZpXoVgHugo9AQTzamhFHnXMcz1STTuCpPI1Qk05qIjmDQNzbzHJGOMppBU5UxqEM15zGwkYxGpDytmtgRvyGa2kzhwnWJmxAAmG41aOaOWZ0aAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGTBFgNoYlyylHh6xRzOxTqU/aVs4G0e+KGbaVBv1nS7kUSvFMOcN+ofBr0sptLcVkO4LJ0lPEfSnl0VSa/4I5gmHPdDQzQ1x5Gk2RT5hjGPZwCs19IaZkLabx+R0WlTLs1ij6UYz5jTSChqSKGXY+hDZbKzto8P+ssMyHIgw7pVbtsVSSVAHHmChTppsc08CHvDt41HOr7vKlWS/IQ/38jpgrf/v5/mn2oFxp589c3Ru36uxNfZrIMCWbte3FN18Nm6Zfs+vIBb7IDGT+d3B6IO0yVfW5w3+sXRrV0Yef2L11s49kmFzKySXnV3UK5Gf11+piE5LTVlPoxXzlchj9ei7FEKefkdem1ufVKTiVsFrQZjvdzPR/d8cvmT6MX8VXTd8v0PNZEEiB/vxA35FRy9YZjl6oyEnFrubAmbdyewNrfS2aPmtymuwaDqUZRSqtMIwp9+fSymQ+P9HsO5bjb13jZgXMdx7iaa+zTLiQ0VgNt/CQSnfiOr+JFuE9uPLOdqepkPnG/nnOn5TlCpB3rUt8hOm6JxbNDv4vAbh9gN4i7/56AAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (13, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAB9CAYAAAAiAXSMAAAABmJLR0QA/wD/AP+gvaeTAAAKVElEQVR4nO2de5RVVR3HP/PkMYyMwCRBRJqPiQaETEFBGQgWFSVQWSq1fBWrVi4wKyesVqOhi7KWprZc0YMWy7A34srKUktbqaWihoiGIYLxVAuJgpDqj+8969x7OXPvOeeevc/Zp/v5a+bemXN+s2ff3/7t7+/32wfcYSjwaNpGxKUxbQMi0AaMTNuIuLg00E3A4bSNiItLA90I/CdtI+Li0kDXZ7Ql6jPaEvUZbYn6QFui7josUZ/RBhkOdAEDcHxGZ52LgU3AAWA7sBe4BfgkMA84Oj3T8kkL8F7gaeBS4GvAWmBGmkblldOBB9I2Ii7NaRtQhS8Bs4FnkfsYAZyF3MmOFO3KHe3AacD5wHeAncCDwB5gf+G9OgkzA7i36PsBaRkSh6yHd8WUx9EH0zIkDi4NtNNxtEsDXd8ZWqI+0Jaouw5L1Ge0Jeoz2hK5mNEXADcBrSnaUo1cDPQaYAxwHzA6PXMqkgvX8QowH1gJPALMSc2i/nF6RgdxJhLZl5MtH34REpacJGggfwecCkxH4nqHVYv6Jxeuo5y/Aj3AZuCPQHfZ73wXOMakYQE47ToquYaDwBLgi8A9wDmF168AjgVeLHzfYsy6Upye0WGZhGb3D5H4Pqrw+jjkz5ss2PBx4GYL9zFC2FTWY8BM4Ck04IeBQcCPgCux85F22nVEyRleBawGXkB++w/AE8hf28Bp1xF2oM8DJgOnoFxdE7AUuNyQXQCvQ2vBZnz35OyMDss6lO4HtTfsABYCG4BvYGbrPheVF+xEGfBdwF+QVHA5cJyBe2aKNcBXCl+3Az9Gu8mxBu/ZBlxfuNdlqIBmtsH7pU4zWvmLM9ANQC+aeW8zeO/PAssMXt8ZepAv7UWDXyvXAtuQ0LUSxfJrgDNwuDsrKcagiOQ29HGvhWa0GM4EPoykgfWF6+8EZtV4fecZCHwL2Ai8KcHrXg18PsHrWcWEOncAzcDrgfuBBQld1+nwzqQMugLVMN/EkZJrHzAl4vVc3bCMQ59u43SiheznqHD8ncDz+EXk7SGv82Xg04lbZ5b3ICX07bZu2Ixm9XNI9Tuj8HoHsAU4IcQ1vorZnWiSNKK/dyNwoveCDV5F4tM+YLB3cxS2/RTVO1fDFdcxGPg+Sp5MBf4MdlNVlwH/AKYBn0Px8XFIMwmDC4vhWHzZYA7wsm0DJgK7UVwMEqcOovM3XhvyGjcjTTqrTEFrz6I0jbgVuKTwdSsa4MVoF7kN32dX4hbgo0asq50LkdCWqU1UH/ArfLc1F8323iq/twL4iDmzKtKAdPehZa83IYFrA3B8pQukUU7QjGaAt7DdiWb0QjTzB/fze2kuhv9F68uKoteGAj9D7nAKamhygiFotX4M35cXsxL9g2zSDbyl8HULWuiWACcBz6AQzka+1AiLkL8rr5ZaBXzIsi1nog2Ht2C/HkUSL+KvOU4TVC11K3IvtlkKPIQW8cVokHcAw1KwxQijUU/hHWgHeRtwbgp2NAK/RInoR1Au80aU7Yl0kaziVUs9hzLuHaSzGA5HC98JSAZ4ARURHU2VSMNFLkXy65WW7/tmJA/0oVrEPQQv1LniN8hH2mIeyry/v+i1q1C1Vq5ZC5xt6V59SFWcFPDe8DgXzPrpBsXYEJUGAd8G3og2UdsDfualOBfO8mJYThNmF8ORqKn/VeSPgwY5Ni4NdCPmZvRbUXb9dtQ4dcDQfZzgbswU6CxEi95cA9d2knuJf4bS8Rx50JWXbtoMjK/BrlC45DpqWQzPBn6A//e2Fb6fjFJO62u2rgp5H2iv7eMGtJBejZ9uegUJV7GiiDzzAH7pcBhagK34O7lO5ItfJoV0U55n9CHgGrTRGQy8C3/fcFeypuWLh1EYFpVVqL5iIxKGPoNUQVvdZIBmdJfNG9ZAHB/dgUT7Mag0bROqeNpHCsU461CaaKDtG0fkCWBChJ/vQsUry1H4thvVwYH0CuMhXTkD0f4+6TLbpFlPaQdvJWahIpbirPki4HEyMKEWIb01qTLbpHmKcBOhF+kU0/p5b0SSRsVlKsogZO1kA1DW+aQK77eicoAncaRjqxNtd+8k+HzmsGW2SbOJ/lNHr0GtF7ejsgVn8MpsN1G6aHwKtU2kwWaC00jdqP+wj2SalFJhIUqvX4CqcbaiGQ/6eJ5q0ZYtHNnLOB9FE+dZtMMYE1Emei++lDgAVRR9wKId21CqHzRz+9CiF7VFI9OsRjPqPpSJuBH7x+5sR5uPQah07GGye9BWLM7Fjz97UQj4PLX3EUZlJ0qWrkNVS6nHw0kyChWyeNngkchnv4R9BexvBVuS6szNFJPQse+gP+4XqC3iRBSvrkIfZRscAj5m6V6pcj5SvTypcQg6geZRzJ5s4PF3jiwEzyWj0MagmOKTDUy3FezDsc1IgRGozzIRekj2ZIMg9tN/N0BW6UYbreuSvGiSJxsEcQC3nlTxQRQ0nFPtB+NQLLkmnVA4hOWsSEy8MoYtaLNnFE9ynR/wXlxR6jDZUxTLaUMBwkOE75+smako7i2WXOegovKoNJD99uSx+MfTWXdxxZJrF9K6vS6nowjf9d+Eig+zylko8lqSphGe5LofFbJ4rEblAGFoAf6dsF1RWUawWnkhqhd5h1Vr+mEJ6i7dhRS/Syjd/FRjIPAvM6aFZh5SMb1kiNc1+zT+aQ2pcjLy1aPRKrwNze4oxrWhzlXbdFCqdV+LqlqHITniHjLSBufp1l5/YCtSAp/El1zD0I5q5WzTgZId3lrShErT9qDZnJmOiU5Kj+dZhrTkJiTcbyWccN+B1Ls0OA0tdN7RcLsLtpg8TLEmJlCaCgN4N/Lb1U4tGEa6VZ+fQBr8DtTVO4PS1uVM0U5wGUAYybUTzaQ0aEEH3e5FFV0eX0C5VKdop7Lk6p3wa5tOdHbfWpSvfBY9zdlpKh0m62V6bDIOlVsUHxVxOlIpsy4FhKIHX3L1GIP8uy28tSOojCFWQ2dWKZdc34DUMBv0IqkgSneB0xRLrrNRNZLp+32PHJYxhKEBxeHbKRzUZ4hjgN+TwzKGqExAmoIJTkExci7LGKIyDolScWknOOOzAC1676vh2rliPPCnGn5/IqU7uQb8Q2mjtGvknpORGBWV4hzjFSjF1IG6Zn+Lxep/VwLvuO3JP8HPQl+HttHPIJl2Dv6D1YyTGZmvCnHP6liKjgjagIpvugvXugMdQlunjMnoYx+Hi9AGZBeaxcWypzXy7joaUYPREJR9vwvtOG8AvpmYdTliGmoGisJRKPt+N4o2HkezGxR12GwLcYbpKEoIy7EoHFyOvw6NR+6jUgvd/z0zUX1IGHrQlj0oazMX+eg6/TAL+HWIn7sYZdmDumZTxaXwrtJi2Ax8HZ1VNx2VymYKVwa60mno3k7vn0hDTqP+oyquh3ddKFx7ED3FJ5OD7BLzUJ93MbPQRiSNM6VzywL0BCIP77EiznTNuuKjPdfRih58MxFtyxM9P9QkLvnoFlRUOAjVIzszyODOQHuaxf04ekirK88Q6UYzeTF6+Ixz/A9ydQhOZE5PVwAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (14, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAB9CAYAAAAiAXSMAAAABmJLR0QA/wD/AP+gvaeTAAAG/UlEQVR4nO3deaxcVR3A8c+b14VYeFQLsSxKCmqrWEmtVrTRmlJKq0JQYjQSgs9gFUXqBk0kcYkiT0WDO7igJQpuVWMVjQvuuyYaUNtEMCAVhFSDkrigxT9+M3lL5y1zuXPunOf5JpPm3pm55/d+87u/7ZxzS158Gw9rWogqtJoWoEeWY0nTQlQhN0UP479NC1GFouhE5KboFg40LUQVclN0sehEFItORLHoRBRFJ6K4jj6xEI/DSPs4W4sealqAWXgsPolH4F4sw6fxO/weP8fNjUnXA4Nu0TfhJFF2Px734Yft47NwenOizW/+gUOaFqIKw00LMAtn4AvYiifiyfipCIh/l2lgHESGsRrPxkVCsTfgVvwTr21OtPnNAeMBfHGTgsxnhmTsKgY965hItjk0RdHJyEnR2Zbf5KXoYtGJKBadiGLRiRhWLDoJLcWik1BcRyJKMExEsehEFItORLHoRBRFJ6K4jkQUi05Eseg+sRib8EgskrlFD/ICmmOxE8fjaOzHofgM/oDv4geNSdcjg2zRt+MUrBAKvgB/EquTRrCmOdHmNyfjx00LUZUFTQswA6fiOtzSfv0bRworvwV/xH8ak26esRxPwdn4CO4Uvvk2XNqgXPOap4sNnVkyyMFwKiWPTkSuefRh2J2TonO06ONFprS3aUF64Rn4StNC9MDpIng/l8FO76aS0yz4DrwEW/Ar8lJ0DrPgh+CjOAHrcUfnjRYuwxHNyNUTgx4MH4pviSJqgwlKJhR9j9iusDa5aL0xyMFwLX4mGl7n4l/TffCpoqTdkUauSjwPn2pw/EvwhC7nn4N9IljPiWNEKvIJPKgW0erlBbi2wfHPFHsal7aPWxhrn1s925cn5tH7RJm7X+zlW1GnlDXQRDAcEQqGL2KX2GC6RNxd69qvG6sOcI5wJadNOb9c7JBqgnPx8cRjPljoYUv7eIHoh+/D+9SUta0Rt8WYsKYWvonX1XHxCozi6gbGXYc/izv8SULJ94iuYm0cgW9gN94s0peOuxnFK+ocbBbOw4cTjjeRi0QP/E5sxjPFXsdldQ4yjGtEfrixfe4k3CVq+VRsw1UJx+vQwrvxN5Nd19vxwjoHGhFPEhgT83hn4zd4UZ2DzIHz8YHEYx6O68Ud/XAxKXxWvwa72rhvXCmykr3iWRopuQDvTTjeSvF3jhnfM79RuI/au54bhG86vH38LDGNtBvfEWVnKi4Ut3AKNooS+rwu79XqlzuMiJRO+987RBU5JKrIW0UkTsGr8K4E41woMov1Ccbqyvl425RzW03/y9fNa3B5H6+/UATbG6UN8nPmBPxaCLmoj+Nc7OAfui6OxPfEs0EO7ccAdTj1m4X7WIQf4bgartmNfrVJTxQ9nhtEg+jePoxRO9vEsq1T+nDtS/CWit89DKu6nD9DVH3PrypUk0xsuda5iPL1eFPF764RAe6oCed2iLrg5AcoV6N0Wq7Xmfxg7cWqFzpvxBt6/M7EXP9i/ESkqteKRv3RFWXpmX4tN+i0XO/CL/Do9vnLHNwRnCtVJmc/rz0LjXfgr/it8PVPE25u3nCOqKbeanLxs15vld6leu8cnih+7MeI2ZHbRWXbVKu372wWTamd4i5aJvz45h6uMabaVNtoe6z9ok+xTvzwSSc2Uiw3GDJebKzFl8Wtuwtf7+E6VSZnW6JnsVTkybva568QLddNPV5voNkuctSW8LPXi1niXhvn78Sre/j8EnxW9GSOEQtZRtvvDQkfPW84SpTondv0UbhbWPjdeuvnXoFXzvGzx4lq9WPGn4+3WuTMK3sYMxsWGFfyQpGBbG8frxIZwFXm1nJ9j7nN6GwQPnh7l/fOVPMU1CCyHp8zOaUcESnY900uJrrxfrxsls+MCqvdMsvn/i/ptFxvM7O1fRAvnea9YdGr3iPcU2EGtoqcd7oU7kN4cZfzS/E1MXH8kP6I9sAZpIXoXzW+MajbaqluleEqUUrvFRXnX/osY2UGSdHEJPA6408+n1hUTF2ptEmkbpeLwFe2wlVkm0gNO72Ra0Q5T7iXzrRaFgzyE9F/KZ7xv1Ns5jxWTPe/XGxbOFV7NX2hHlbgSjHNtAdfEo38Qp/YIwJm6vUktZDTHpabxETCfU0LUoVByzpmYtD3sMxITooe5D0ss5KTootFJ6JYdCKKRScipy3KB5GTonPYojwtOSm6uI5ElGCYiGLRiSjBMBElGCaiuI5ElGCYiGLRiSjBMBElGCaiuI5ElGCYiGLRiSjBMBElGCaiuI5ElGCYiGLRiSgWnYhi0Ykoik5EcR2JKBadiKwtOicOGOz/FnBGcrHoFu5vv7IkF0Vn3VAiH0Vn3VAiH0VnnXGQj6KzzzhyUXSx6ESUYJiIEgwTcb/YD54t/wPiKFn7oB7n9QAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (15, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAACgCAYAAAA1tf01AAAABmJLR0QA/wD/AP+gvaeTAAACXUlEQVRYhe3YO2gUURgF4C/rC7WIbwWjBsEHiAFfiaBYaBWxUCMEVGwsBEFCCksllVhoaxpBEAsRtFMrMYqijREVC6MQTECTiG8bgyYWdwYnuzNuxGVNyJ5q7j9nz7ncvezZ/6cQ63Elv5hLIc7C3NEQh1FVUmIqym/diHMwOUMxh7PYi/1ZxOXCoXejDl/TrFrwES8StXp0xYs5uIYH2Id7mIQ29GBHDhvxEH3YjjeYHpE3YQNuwe1o0zFOYDDaRsExwQxcRC+e5r+Mz7EWdzATh/Eti7gZ59GEL2mW8TleTtTG2+2pWI8lxYp1ma1Lr1ixLr31bBwsRtyGx0KSpWIVPuOV8NueipV4JqRCdVSrRnvSugX3cQHvItUGdAqxYg6uRoXVWIbXOI1+7I6VnqBdyD/Ygu/oQE1yX7WJ52a8xwdFcvAldgnROwJxcrVGG26IPpSqlo8aIWFHYAzfnrFqXXrFinWZrUuvWLGeONalV8wnTilmPRVncPNPijkhWRdiT5ZSa0Q+lKitSBLi3rATP6JaFY7jbUzaKrSgbZiGn0LedOAGFsAxoXlsSqgMYUBeb3gKS6PnOBOHhQ40FWvxHJciYip2CiF+NFpnEtdhTWI9ZJQJW0DM+goLLsY/XbO/UqxYl9m69IoV64ljXXrF8WTdKLRZmeiPCN1CBqXOSOuEFJunyIx0AJ+wKKplzkhrhfFnjcSMlJBQXcJgN+4N+/AI1zE/Vrtr5Iy0WQjNk0bRGw5gcfJl2oy0Xpi6puIAjiTWvfL61iz0YEmadVFMqIv7HxQH/f5/Bn4B5q+9MnbdQp0AAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (16, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAADyCAMAAACMA5A4AAABcVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAAAAAAD///8AAAAAAAAAAAAAAAD///8AAAD///8AAAAAAAD///8AAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcODg4QEBAYGBgaGhobGxscHBweHh4yMjIzMzM8PDxERERHR0dRUVFVVVWXl5fS0tLh4eHu7u7////UDmQgAAAAZnRSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHCIqMDIzNDc4OjxBRERGR1FUVFVZYWhseIKNl56hq7G4u8DCxcfNz9HS1t3h4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pj5+vv8/f7/xtnRAAAAAWJLR0R6ONWFagAAAdFJREFUeNrt3E9LFVEYx/HveGewwShQzDDj+mdjGLgQWqRCbXopvb1eQLt2gSCRi6uQCGqgQaGZ1zviTAunmy3Mc4K5CH3P6g6cM59znud37nJaxI8Xr46/Ri0YYgBDRETkf0KSuOmTz4F06LyCo7fBq9LIg4/2f57QFALZPQDKb8QhM1MRLUySuszjq2GbOl4jBSaf/Es388BV5VpdrvXvgW++86yflIPNoKOvVJflqjjrBCJXCtsLWtNa8cbfNqQiGdBJom98cVbvsEmkOmn8JF/eASNL23tQNob0OsAcRccIe+NFTJeIyECRisRyiRhheyJihEVMlz0RMcIiIkZYROT3KI2wiH+QIiJGWMQIWy4RIyxiuiyXiBG2JyJGWETECIuYLhERIyxihC2XiOkSETHCIkbYnogYYRHTZblEjLA9ETHCIiJGWMR0iYgYYZHbhqSLMEy+eLTTwMsfTkDOg7Hk9eXzh/fXzZy9C5Qbvx7b87Smuod8/ngzsrBcnwTuQ9G9fubES2C/j2RtIG9zGFaoEegWKWSQdCOK8GkLHj8Nm5tnUBVpfKXLXXjkPWnwnsBp1JdDIZsP/37ojwvo1cjfxv4b/tzF9HRESE4BfgLwgmpwh+j0ogAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (17, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAADyCAMAAACMA5A4AAABgFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcODg4QEBAREREXFxcYGBgaGhobGxscHBweHh4gICAxMTEyMjIzMzM1NTU8PDxERERFRUVHR0dRUVFSUlJTU1NVVVWXl5egoKDS0tLh4eHu7u739/f////CiuP1AAAAYXRSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB8yMzU6OzxERUZHSVJTVFVZYWh4fIKJjZeeoKuxu8LExcfMzdDS2OHj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+lY+8aAAAAAFiS0dEf0i/ceUAAAIsSURBVHja7ZxBbxJBGIYfYIFCWtpGGypiNV5MFC8qJtoYTfzfXvQuJkZjYox6aLQklFJrMFTWQ8vWA2x3KzWlPHOa7MzHs/N977xM9jA50rcnz3e7qQKy/IcmRIiQeYJk0k2vPQSC7CCE3ovEUUHKha9G3R+cFQSKawAMt0gHuX41RXYzh1UMWXucKKLQbREAtVunqeZCwqhh6yhdb3oJf7n0IFLK9odERdwMD9MV8utjQkj9uJssJrd5oTZjEglfu1IZjFZ//LT6dNQrb78e/jMkf2esNm9G3fXWxNiQTNLN+PnTSF2Pomff3o16z7JT2fGDL5G6+ntHbxg9I5y6rYQ7Z1P4v1r7JYnf/9SQxLv24v0zhmQ8SAg57+oKTzq9WRMhMwwJyZguIbNskEpYiC5sTXRh1SVEgzRdQnRhIUJ0YSHzpy4/2QrRIIUI8ZgqRBc2XUI8pgoRokEKUcK6sBBdWIjqmo0vEhZeCZsuIR5TrYkQDVKIEvaYKkQJCxGiC1t41WVNhChhDVKILixECevCQjRIIUp4ztOlC0+3BQ0oUGr0vk6YcGORPMXG7/fjh+srUKBea38fM7h+GUpcWgmaAHd5OwlSvQ1sbPQnQCpNgPu8GgdZbgLcI4Aq/NyLWezyAsP25OFSBTqDCYOFVdjtB1CETByknI+9YHKpCEudmMHFvhI+h/sEunAQN6WXI+4W2U455mrmnQHsE8BJdwvvxw8fxMUPewB/ADUkiW8VgfpNAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (18, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAADyCAMAAACMA5A4AAABrVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcODg4QEBAREREXFxcYGBgaGhobGxscHBweHh4gICApKSkvLy8xMTEyMjIzMzM1NTU8PDw+Pj5ERERFRUVHR0dRUVFSUlJTU1NVVVWXl5egoKDS0tLh4eHu7u739/f///8cU6VMAAAAbXRSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB8iMDIzNTY4Ojs8REVGR1JTVFVZYWZobHd4fIKIjZeeoKuxuLu/wsTFx8nNz9DS1tjc3eHj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+1//Q7wAAAAFiS0dEjoIFs28AAAJxSURBVHja7ZxBbxJRFIW/KUNhlEYImjZYKNQYNTGhiRs1SqKNC+PCX+tK/4BommhqQoxarS5QKrRFGih2nosaHMpAZqg0Ys+shvvmzjfv3jOHl1m8COGPB48a9VAJM5zAIYgggpwmiBXu8sx9wJ7pGmg8CZxlh5x4qnf6g0lBILYAgPuZcJBCPkQLrcMuGi7cC/ZQ9TI2kLs+TjfjAbPc8u9yvdgOeue7PaV8exVo6qvmsFyGvUpAyOKf006gnMjqSb0n9tiZkZz3V+v7MSDZa9mOv0FkHnuve7v73B0b4lzhTJB5XbbKvnGDFaRcn754a3Szd1p96b3qYeRYPdlb61NXu4npWDGX7sbkGm+2AJqTVFftKZC49f4DmIlBOhXgEu1KqKz/4p/RYGkhIcg0qMuMWsGpJ4JMMcRgqVyCTLNBSsKCyIXVE7mwJXUJIoNUuQSRCwsiiFxYkFOpLn2yFUQGKYggWqYKIhdWuQTRMlUQQWSQgkjCcmFB5MKCSF3//hcJNV4SVrkE0TJVBimIDFIQSVjLVEEkYUEEkQur8VKXeiKIJCyDFEQuLIgkLBcWRAYpiCSscsmF/+JhFyFOorjz0WdweY44TvFgffQ9FtMwy1K2+vXIwMI8OMyn7RLADdb8IBdXgHy+7YUsrRBheY6N171QqgRwh2dHIekSwG1syEBrZ8hDphzcal8kmgOcHJveoJOCWtcnf/Y81Ns2xMAaBjkbHdxc8t0byBf7QskYJGs++ckYnGuPsW/qwSbk5MITfE+gAfvDhhtRBnaPnb06sH9oLQG7fvlb+9DEhlF7C7d8YoXCQOjnsHu42wC/AAZFmk8b/3SnAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (19, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKIAAADzCAMAAAAy/j17AAAB7FBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMFBQUHBwcICAgKCgoODg4QEBAVFRUZGRkaGhocHBwiIiInJycqKiouLi4xMTEzMzM8PDxCQkJERERGRkZVVVVnZ2d/f3+KiorFxcXR0dHS0tLh4eHu7u7////i+3YgAAAAhHRSTlMAAQMEBQcICg4PEBUZGhscICEiJyouMTM3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFFSU1RVVllmZ2hsc3R3eX+Ch4iKi4yPl5iiqaqrrK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJzM3R0tXX3d7h4+Tp6+3u8fL09/v8/f4xnLpLAAAAAWJLR0Sjx9rvGgAAAxhJREFUeNrt1r9rE3EYx/HPJZe2SWMgiRiHgIMKdoqIZNBC7BAHwTgI3RxcBDfB/0T/BRHBVUTw9yCCOCgIrdafqNDQapu0DZeYNA4X01jvLodeSNR3ll76/X7vXn2ee54+YQX8OX62+SHYO4Y08h+IECFChAgx+I8R5M0uTEpGaLMt6dJaYHc1gyRGooPIjhlsUrI2bbmmQInJc+3FYG4Wk2F0Xp/Zup8DidB603PDp3uSKZk7lAj8Hd/jc98u7+W0TVxX64r7pv1Hnsz5dZ2Ody9vfPFz4GTqVtmr3ZxJ2oluqL3gvm236gt+ia2ty7mKnwN1vV707Ijtv6MvmgO6bzzc86VZHRrROJX7qSDHty7P9/5+9dnT1WFF8bAifrZFj70aGlHtm73fZmLdy6u9FT2bcTvu5x/wn76Lj3u/TGvDLj9Ln3sr2hqlcvk66hV9baJ7WRtR4kemboi/33SIIkSIVPQgJCQaIkSaDlGECBEikw6JhgiRpkOiIUKkokk0wxhEmg5RhAgRIk0HIsMYiabpkGiIEKloEg2RSYemQxQhQoRI04EIkWGMpsO7CBEiFU2iIUKk6TCM8S5ChMikAxEiRJoOkw5EiFQ0iYYIkaZDFP8VIsMYRJoOiYYIkYom0Uw6RJGmQxQhQoRI04EIkWGMpkO5QIRIRZNoiBD/k2GMpgMRIkQmHRINESKTDlGECJExgkRDhAiRpjPgYBFFiCP/MT1X96aVUCJfeemwltonQ8rrRc3zFmMHpYwysbfL2598SMoqmX+31I9YkKFQQeV5p9ViVlIut+REPHBCklHS+z7EkiTN6O797U8uSdK0Ht52OVmQIaOgslmUFCrq0bzzvnRYbbc/Mx6TKvX+iUpJVtXpJdsp1Suu537ITOmBlJly2zceUdNtbXJCavQnRqJSyIloRqVwxeOkLTOlO9LRqZEsFFtG06EvSpLWTLXc1ioNaaP/I+pVyXJa+FaVGr6IF6Uxd6LHWcvyFYXNFbcBaKXPSVtmSkn3PdftIDvG8fmbTiy9H2Ndtn/+Eu5GZ8Hj77Rl3wGBdbHmA50TxgAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (20, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAVCAYAAAAuJkyQAAAABmJLR0QA/wD/AP+gvaeTAAAAcUlEQVRIie3TsQ3CQBBE0Wd0oggqQM7ogRZclDuhAiQyh+4EEdECyQUWyYZ7wb4KfjAzYcdmDDOs2RUH6ym74N9wQRNe+GaHdOeGD57ZJd294Y1Hdkl3G25DFRSplwXqZaEKitTLAvWyUMMVS3ZId/kBVZATgfBYkSMAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (21, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG0AAAAdCAMAAACXBBKlAAACnVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMAAAAAAAADAwMAAAAAAAAAAAADAwMAAAAAAAAAAAAAAAAFBQUFBQUCAgIAAAAICAgKCgoEBAQEBAQKCgoAAAALCwsJCQkMDAwHBwcRERETExMPDw8VFRUAAAAPDw8QEBAAAAAPDw8AAAAPDw8MDAwAAAAODg4REREODg4AAAAODg4QEBAAAAALCwsLCwsBAQELCwsuLi4xMTEyMjI0NDQLCwsgICA5OTlFRUVISEgaGho3NzdBQUFJSUkJCQkhISFYWFgKCgoQEBASEhI0NDRKSkpNTU1bW1tcXFwLCwsQEBBRUVFVVVVbW1sHBwcSEhJBQUFMTEwHBwcLCwsvLy9nZ2dpaWkHBwcKCgpWVlZnZ2dpaWkGBgYKCgqDg4MAAAANDQ0PDw8RERESEhIUFBQWFhYXFxcaGhobGxscHBwjIyMqKiosLCwyMjIzMzM4ODg5OTk7Ozs9PT0/Pz9AQEBBQUFERERFRUVGRkZKSkpSUlJYWFhZWVldXV1hYWFiYmJmZmZsbGxxcXF1dXV3d3d4eHh9fX2CgoKFhYWIiIiJiYmKioqNjY2RkZGSkpKTk5OWlpaYmJiZmZmampqbm5ucnJyioqKjo6OoqKiurq6wsLC0tLS4uLi5ubm7u7u8vLy+vr7AwMDBwcHDw8PExMTIyMjLy8vMzMzNzc3Ozs7S0tLU1NTX19fY2Njd3d3h4eHj4+Pl5eXm5ubn5+fp6ent7e3u7u7v7+/w8PDx8fHz8/P09PT29vb39/f6+vr7+/v9/f3////BpMUZAAAAfHRSTlMAAQMFBggJDA0ODxATFhkbICIvNTg8PkNERUZLUVJVV1haXF1eYGJjZGp0d3t+f4WGiIqPkZqkpaanq62vtrnH0tnd3d3e4OLk5eru7+/v7+/v8PHx8fHy8vLy8/Pz9PT09PT09PT19fX19fb29vb39/f39/j4+Pj4+fn+xis6UQAAAAFiS0dE3ulu4psAAAH6SURBVEjHY2BAAUzC0nK4gQQfqmoGRk2X/BrcoNJDl4UBN5DyiolMxg0iSq25kJUz2yXuu3oPN7h+OMmBE6dl8jn77+EFNyucOZDUG+XevkcAlNvgsow7+gghzffKTBDqWbLPEFR/o4Afh21KUQQ13zsdhFAvFExY/b1QWRy26VcTobuUG65ezJ8I9SlqOGwzXkGE7nQ+0mxLVR+1DQrubp89ZfqqS/htOzF7MhKYf5Fc2050Tly7c+vcxk34bLvWtno3EljQS6Ztp5s3gunj7evx2HagH1VX7XXybJu6HMo42XAOt217J6Hqqr9Mlm0n2+Bl07wlZNmWYaUNB1IMPIJwYIpp24Y5cObOKRDbRODqFYixLc/WEA5UGOyd4MBnMYZtyxfCmUe7wFSVG1y9ZyGVQ3LzTDhz2zSax9vZRnjqmrUSt237JqBqq7tKXpqcOR/KONh0BbdtF5r2HEECW9rJzG+XOhbdAtE7WnbhK0u29XUjgcnHyC1Lrsxonb9sSU/HITqVyifXLFq6584Iq3FE/YhQH6tKpZaCYAIR6gPEcdimGEZEK8gbSYPrboLqTwWx4rCN3ZdwCy/TAEmDRMJJAsrPx2jgbL3KxBNw7LUiRzZkDcpxWevW4wHFaTp4WuaS7uEheEBgiQUXqgZeLTNL3MBcTwBVOQCzdoLRWBgR+QAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (22, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABHCAMAAAByDuTxAAACE1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQAAAAAAAAKCgoAAAAHBwcHBwcLCwsMDAwAAAAMDAwSEhIAAAARERESEhINDQ0RERETExMTExMNDQ0AAAAQEBALCwsMDAwMDAwLCwspKSkqKioJCQk9PT1AQEBGRkYHBwcQEBA+Pj4HBwcNDQ0PDw9dXV0PDw9dXV1sbGwEBAR2dnYDAwN+fn4CAgJ6enp8fHwAAAAAAAANDQ0REREUFBQVFRUXFxcYGBgZGRkaGhobGxscHBwdHR0hISEkJCQlJSUqKiovLy8zMzM4ODg6OjpERERHR0dJSUlPT09SUlJTU1NUVFRVVVVWVlZXV1dYWFhZWVlaWlpbW1tcXFxdXV1eXl5fX19gYGBjY2NoaGhra2tzc3N1dXV3d3d6enqAgICCgoKHh4eIiIiJiYmOjo6UlJSYmJiZmZmbm5ufn5+goKChoaGioqKjo6OkpKSlpaWmpqanp6eoqKipqamqqqqrq6usrKytra2urq6wsLC0tLS3t7e5ubm9vb2+vr7AwMDHx8fLy8vMzMzNzc3Pz8/Q0NDS0tLU1NTW1tbX19fZ2dne3t7f39/h4eHj4+Pk5OTl5eXm5ubn5+fo6Ojp6enq6urr6+vu7u7v7+/x8fH09PT19fX39/f6+vr9/f3+/v7///+tSQXhAAAAQXRSTlMABAYHDQ4YGRwfMDJAQkVGXmFmcHWNjpWqq7a9wMHS1dfY3+Pk5+nu8PDx8vPz9PX19fb29vb39/j5+vv7/Pz9/tqx/6wAAAABYktHRLBDZK7EAAAB7ElEQVRIx2NgQAYS3AykAmneUS2DXAsnM16VTAJSKpaO+IGDhoIYF1wHn6pOxbRVG4BgIpgEg8j2DShg/YI+OwNJVogOIeOuDZgAXQsIrDRXYgPp4DebtYFILRs22MsDvcis1o1NbkNUGzbR9XoiDAyCuhtI0LJhhjYjg2wzSVo2aPEwqM/DLhXdil3cQpjBdi1pWopFGRw3kKalRJyaWmJaBqmW2Gb6alkzddKkSTPXkaBlsU9gUFCQXxhhLXFNUEZTDDgJuy4hXkttMpjymk8LLfGNg1RLQsPw0ZJYTzMta0nUMjvFw9EncxGUl1QHZTRHg5Oly1JMLb1uRcs2LMjznISmZam/MxA4RWIm/qXu/WC6w3c1qpYN65YDwUosuTI/C1aAlYGp5FqCGTm0B8qoSSJWS/AEKKMzglgtKeVQRkEOsVp6AtaA6RXeUyBG1BAulJLDlwPJhSHZG4jWsjbHNSM3xaVwPfFaNmyYW11UvxjGSa3GqQVXLYZLC7AWw1VX4tICrCtlcBTXaVXYxTV5cNb7OLRMB9b7uFoX2LWsNxQBtZNMZhGvxUqOGXdLKb0SS0vJVIkd3h5rmLMcDSSWogksmWwDb49BWn36aMDaEsG2NQISGopIrT6sgJ0FwVbmILmVOqplKGgBAPVQCGKcUH86AAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (23, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABbCAMAAADqb0MHAAAAxlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQADAwIEBAMICAYJCQcMDAwNDQ0QEA0REQ0REREiIhopKR8sLCIzMyc7Oy1AQDBHR0dOTk5PTzxSUj5VVUBiYkpmZk1mZmZqampyclZzc1d2dnZ3d1p8fF6Dg4OIiGeJiWiNjY2VlXGZmXSZmZmdnZ2qqqqwsLCxsYa4uIvExMTMzMzd3d3u7rTy8rfz87j397v//8H///95aDwRAAAADnRSTlMABAgJERhAd3uEiPf4+4PZOr0AAAABYktHREGJ3mxOAAAA7UlEQVRYw+3Zxw6CQBCAYex97b27YlcExF7f/6Ukc8CbjMnErGb+w54m34HAJrtoGqagSGmEMfcNLoYpLjKouagmKEu63Ny/qcgjpjrA3f27iQJiaoXhFlLKgci5qzQIuPbr0fRJuKUDzYi4wwPaMvdv3OYIrYk40td42PKaEHD4mGOOOeaYY4455pj7Bc7QvUwVz2QzGxrzMYW5t5xzgmwVz2Sy7qWrtwVczl5XFbeAcg0q8VfB3De53gjqqrij7CzLMhtNd7X2RDsK4UXvp1zVv4rIIqaKwJHeuYcxRUQaNRfinzM/xgWSCdzgE0VwRvKSChnKAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (24, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABUCAMAAAAbOfHSAAAAllBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwIEBAMICAYJCQcMDAwNDQ0REQ0REREzMyc7Oy1AQDBHR0dOTk5PTzxSUj5VVUBiYkpmZmZyclZzc1d2dnZ3d1p8fF6Dg4OIiGeJiWiNjY2ZmXSdnZ2qqqqwsLCxsYa4uIvExMTMzMzu7rTy8rfz87j397v//8H////0qm4rAAAACHRSTlMACEB3e4j3++IoGz4AAAABYktHRDHZ2x1yAAAAsElEQVRYw+3Ytw7DMAxFUaUzvSdKdXqv//9zMTgoozk8GE7w7qCJOIMgaKBzlnJSdsDIpcEVLBWlYprLO0FWirllcnOpGab6yr2Se0rdMLW2cJH3fizV+PQbANf7Xs0Iwq0O2gLEXd7akdy/cfurtgVx0Gc86YZmAM4eOXLkyJEjR44cOXLkyJHLOHe/hR5ZXMu0OlqTmwpyaXLDqTbI4pbntAudf/+DaqNqKIfcuX8A+a31sJLyZOwAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (25, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAAICAYAAABOICfKAAAABmJLR0QA/wD/AP+gvaeTAAAALklEQVQ4je3OQQEAIBDDsA6luEUWuLg+WBQE6k8Bjp2wBLh2wrLsgCnAthNVsx66VQIswVoi8AAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (26, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAA9CAMAAABm4ZILAAAA21BMVEUAAAAAAAAAAAAAAAAHBwcHBwcAAAAODg4ODg4AAAAHBwcGBgYLCwsAAAADAwMAAAAAAAADAwMEBAQFBQUHBwcICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8TExMWFhYiIiIxMTE1NTU3Nzc6OjpISEhNTU1OTk5TU1NVVVVeXl5paWlxcXF7e3t/f3+Dg4OFhYWIiIicnJydnZ2fn5+oqKiurq6vr6+5ubnAwMDIyMjNzc3Y2Njd3d3h4eHi4uLk5OTl5eXm5ubo6Ojp6enr6+vx8fH19fX5+fn///8534OPAAAAEHRSTlMAAQIDiYyQkJHa3uLn/Pz+8x73tQAAAAFiS0dESPAC1OoAAAC4SURBVDjL7dTHEoIwGEbRWLFCRFGDYO8VFXvvvv8TiaPizwRYuHGTu/vmrJLJBCGYN4xc8sWZumg0BhMsK4LwGraEY8UjfHfsxtRZt0NttHPQfZXkJCVbP9npRhXxs2T+YKPFFxpcoXUu409kQWknYarYpbSGvzUpbQFtUzomJso6pRfFVPVKn2iaeWN6ZndXOkkZJskT+3s+9kqFcv/MXt0fVIM14BjwKMCBQgJcnJ/9z7+qJ2jdD3F8A5VuUKenAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (27, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAAICAYAAABOICfKAAAABmJLR0QA/wD/AP+gvaeTAAAAPElEQVQ4je3OMQ2AMBQFwCvpjgr8MKMNZV2R0TTBBW/gn4JrGDj8y8KVTpRSymcaNuzpSMDsOHGnJwHPCzquBThmuaVjAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (28, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAAAmCAYAAABedGw2AAAABmJLR0QA/wD/AP+gvaeTAAAJFUlEQVRo3uVae3AV1R2OKK2i1mqttdPX1LbTqdbnVFvpONahY+sfVKW1nTIq+AKnPlMqdBAlTsWQZM+5lAKaKgURcvdeWvDVDBQVxSCgyd3dBCpKEau22FGUVFAM4O33nd1Nls25+7i5N4bpmTlDOHv27Dm/x/f9fr9za2oG0OqKdcNMW2wzbWNM2nezlhiftcUvaqrUsK/7TEvcX3OwNhxgS9YxpqZ/z8iajni4evsyDChuw8Es2JU4wPy07+UsOQPvdlVtX5b8VdYy3h7iwpMX5p1Z39QfQMzLOuJp3bP8prpP5J+TR/j/b+lqOm316rrDlGBtcTUEu7tYLB5S7r6yXeJLOcu4RKs42/gR1i8utzKfjlsnb8svtHTN+tygCJP4icPPyRcy5+Zs+SQ2+X7WNmo5fuAB5CT017UHt8UdcMnNXMPsavwa1ujmGi7GNv2AB3+oPfP5WAHaYorpGHM13vJrroG+OL9JHhd8tsRq/IZ65mTOilqbisa8Np5xMN38XxQcP64OZ4s96HbeypzR59LGJRj7KGiZfRbbeGLOEo/wec6RO4h5ze3Nw31r48FzVub7kUJ1xCjM249/by7lTXj+Gvo7UNoV/ji/g7F9wP+fxWEx5v2XihhMwa6hq/e6si1PAeG8gPEPKOh8Pn8o3VtZRkfmWxHrrKBw8e5r8IILAhHFBxi7stR7Le3G8ZjzBt5ZFunK7TOPgYCbXQsVeb7nfXcb9xmBwxcrpVtyXMWFly/M/iwFVEIgCyiUsOt41vsh+jq6mtrcRjlai3WO8UseGK5/HazjUSVgCGGR03Qk/n4RY3fp3iP24uCtFE4SnFSKcOSPPUX8hyEg/n4Clv5H3dwlBeMrtHIYzoOLnYYv4u8/04sqyJ7iGbjLczpycjFSbNEqpFOeimcdtLqcI97L0josOfaAzXdmTsLznXDRe3u/Bwul66FvhQDW4b2HSljTbVQeiOWcNOehEgLWuxVQ9EwJXF2D53+ngpd01h+rYAmEV0GLNU7Gos+j9+CgM30MdAlGjuW4z+T93gWuuhhlFJUQ2n//5WBE4MFGYcG2usM1xNKG5/vR/6FJHkbi+V7fjelRJL/WLbM/mTwBkWPBD7thODv7G4zxO5Kx6TR9O+Cd7zBEqygchMnJLIjTXeJo+i41mXeavhp1gCwF68gX0pCCh7HL0XccSHjyOJeMjEf9UIwKc+FEjEwVK3eK60hgVLJap0N+3SO7/RD69Qfs1zUCkWTdNArWk9Pzc09ULlLI/FCLU56rw9I3EC/TkgIihdFc/5HNDUf34qotHmM0QuwPKWFPkPUTwZyL/0Uq18P0Hdjrh+jLNXximprxfjJCvIt5rxLPy7Vej5zEe7CeCbrg31NCu9kpr+LBKQCfFIDbCxPCUJGRhRc63agsrCDP1xz8JWD59FQwp6IFrA8hKDjhXi3RAwUpwwnG5PCGe/C8M3I9rgHM9rG5PFJzxPdohdjEfhx4Uf/MRkpaK7HPw0QFGUFSiPsGsVfFqLa8lNaFdfbhwA+UILNW3T70ezeuzW+ae5QrMONtld6inkFjAfOPJJeoGNcWzxIeXNiT12BsV1QmiP3VhbG5PGIDOeHjXdlQHOm7OrR3WcA9ilDCorQfZniE96aRxBSB4MDoDWHCw9gf0NcmEaoiPg+PPWI2XTJ0s76g4TCtpvXmNooLlHEgqdHCFuBQh80DSRIaAAVWv/gPZbmQBe8my5fKkKKSEFgVhbpdKQjK8tZ/hWlvgMlrOScm9T1TYbEjfhN4z8S+GN6tCKfjVJ5vvcrTSmSCFDaevcnUuZLZ10Sye1+aKNfrQijiE2LGxWmLKnk7swDCfAXC+Ik/xvqBR2K9yQSf8/+lIGbx+tmfYszNFDq4Bwj1bijuZbx3QkkSda3xVa7fYhs3aaKXFarm4cFLRZr30SLTRK/U1+3jUkiwDJ3M1OvbcpouCXEjBGOCn0y0WMY45apITEoYAC3zn+FijFdF2xWncFcxxnbiaChs/C2jJJ9gK5dAuIRUpIu7RKOv+qu4FVFC+puE6CTEg54n+G0l2I7+3/eEh4KLPK9/5CHPj8LOEGH/NZgJEhaIzWbIiisjWIQY0GIP3LXbLMHYfmGZ2JhasAmSELUH4Cb2ACyUd2pCtt3h8WDNNkkVzbP62Uzv+feyDXM+4yYq8i/Vq3Ih51ahSQTG+IVl5t2pkhK3glUyCQkdvC1Yl32svXkExjbCYv8WJqYQRkZW0QJ1k1tJUoQNQNTjJNCkBaCyr19Y6Yq0bJUuAjIK8jtlrE9vmBhv3cbCYLWNlSsI9d9x1X8Vj4ewMyoTRHquCkCmZZxd3bosarIMR6LmeIXlvdD0z9ML1rAY1iW4SeittkGglxNX/fpuDEE+XqqKpssEMX8PSasasrwIfYLfa41xSx9cP/Pd4Jiu/6ltxlu3zbp6edy8cBfLJnewx80bP2XMA9mCsW/khWdMX9LeuOf25utbk6x/18Kbnpq36s6tcfOOOnbEDTCij+rNSeuHDR82Me05Ql3buGiz3y8ae95KxILFI48eMT84Hu6NSye9MfXeCS9GzdH1mxuusOe0Tnsrbt45o05lSFe8b9X0d8XDU7YPH37o/UnWv3LyxWsXtM14P8nc+Wvu3nXV1DHr0p5B0xMQjHf9wupXtEuzwCxXl5mEdCe57fDKh91RUURcFS2u8B+8jqpqYzTgXQiOjjyAZUxmiDKQJCQR0VnGLWUU84tJgnzvOmplzWA1lSsjHIm2DPFTBvLhdDeueXXdImPaShFdqSpaokzQ6n+rUU3BrmWFKV5Asp7pYZq1vYiiJ8nBeenHnj7DE/ewSBMPG+ryc2/wiqrKgpWLmPJVa/2kVu5W20ShWvvwM0EayaAI1i3yGptrPuaWlOjKbWkywcoIFvdNrHWW+g3CYLU0RDcA5e1MkglWJjLg769Qvgte8n0cra/aFk90AxBsATWJxpr/p+b92KIn/OOQinqFJZdWtao1VBvDIYZFVROsuq7pu46qZGNtMz9Ue322dvvtzRNfqkDaqe2XXjvqyZm5Sa9XI6XlL2EuG6q9vqV21byVd7w8wCJJNfv4gxIK+Jtd/lpmKO/xf00jMjjkqWN8AAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (29, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAlCAYAAADFniADAAAABmJLR0QA/wD/AP+gvaeTAAAEZklEQVRYhcXYb0gbdxzH8U9+l9z9zvvl7kzFIlLc1FBGC6OxVsemlDnGRK2Q7kEZGwNBHypUsJOOgZQ+WB8VtjE21tIyNlhFZJphpYMx1nZMbUNhSF3RDmG0UFMbk/uf5PZgVcTW1auN93523C/ci+9dkl8SgPckAG8qitLO83y9aZovOY5DC4UCRwjJ8zxvCILwt2VZf6ysrCQA/ALA8HKBgIe1ryqK8ollWa319fVOa2tr+MCBA4G9e/dCVdW1RcvLy5ibm8PMzExhYmIik0wmQ4IgJNLp9BCAWS+4/6syEon8FIlEtDNnzuQfPHjgeun+/fvu6dOnc6qq6pFIZATA7m1peJ5/nzGWGRoacgzD8ITZmKZp7uDgoM0YW+E47ujzeEhpaelX1dXV2dnZ2W1hNnbr1i1XkiRHFMVheHh8iKIow83NzdlMJvNCQat1dHS40WjUkGX54pZgqqpebGpq0i3LKgrIdV03Ho+7ly5dcg8ePKjJsvzZE1NZf8Bx3Ieqqh5NJBIiz/NbnexzFQqFMDk5WSJJUhfHce9uhqoUBOHzRCIhybJcVNBqkUgE4+PjJZTScwDKnkCpqvplf3+/sG/fvh0BrVZXV4eenh6qqurZjef2l5aW6rquF+052vhMjY6Orh2n02mXMaYDqAEeT0pRlI8HBgZ4URR3dEqrybKMvr6+UDgcHlxFMcuyOru6ujhfRI/r7u4OOo5zDIBAALTEYjG7vLzcTxOqqqpQW1ubB/AGYYy93d7eznwVPe7IkSMSpfQtQil97dChQ+TZLyl+DQ0NHGPsdWKaZlU0GvXbAwCIRqOwbbuGWJbFdu3a5bcHAFBWVgbHcWSSy+WClFK/PQAAURSRy+VCJBgMOobhabdatHRdRygUsoggCNmHDx/67QEApFIp8DyfIYIgLNy+fdtvDwBgbm4OHMf9RQzDmLpx40bBbxAATE9P5zKZzO9E1/XL4+PjGb9BADA2NqbZtn2FAPg5mUwG79275ytofn4ed+/eDQD4jQAwBUFIXLhwIe8n6vz58w4hZBjAmmO/qqqan/spSZI0rN9PAfizUChcOXXqlOPDkHDy5EmLEDICYH7juUpRFLWbN2/u6KSuXbvmiqK4gqft0QH8Y9t2d2dnZzadTu/AfP77sIzH45pt2x8AWHoaCvl8/vulpaVzLS0tGV3XiwrSdR2HDx/OptPps/l8/sdnrQ8oivJDLBbTUqlUUW5fW1ubu2fPHnPLv5BXYYyxLyoqKrSpqakXCrp69aobDodNSunXXkBrcRz3HqU029vbaz569GhbmFQq5fb09BiU0gyAuGfMhnarqvotY8w4ceKEvbCw4Alz584d9/jx45YkSYaiKN9g3btss7yM72XG2EeFQuFYTU2NG4/HpcbGxuBm/+Rdv349NzIyoi0uLiIQCHyXzWY/BbC4lQt5v6dAEEAjpfQdxlizaZqvOI5TEggEAq7ruqFQSKOUzmaz2V9N07wMYArrvjq20r8LM1xM6OxyVQAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (30, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAA9CAMAAABm4ZILAAABRFBMVEUAAAAAAAAAAAAAAAAHBwcHBwcAAAAODg4ODg4AAAAHBwcGBgYLCwsAAAADAwMAAAAAAAABAQECAgIDAwMEBAQFBQUICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8QEBARERESEhITExMVFRUYGBgoKCgwMDAyMjI1NTU8PDw+Pj5BQUFCQkJISEhKSkpLS0tQUFBTU1NUVFRVVVVaWlpdXV1eXl5gYGBhYWFsbGxycnJ3d3d5eXmAgICFhYWHh4eIiIiKioqMjIyNjY2Tk5OUlJSVlZWWlpakpKStra24uLi5ubm6urq8vLy+vr6/v7/CwsLDw8PHx8fKysrMzMzNzc3U1NTY2NjZ2dna2trc3Nzd3d3e3t7f39/g4ODh4eHk5OTp6enx8fHz8/P19fX39/f4+Pj5+fn6+vr8/Pz9/f3+/v7///+d8R9MAAAAEHRSTlMAAQIDiYyQkJHa3uLn/Pz+8x73tQAAAAFiS0dEa1JlpZgAAAEsSURBVDjLY2BABkycDHgAM++oLB5Zbh5kwI/C42IQiEIGIcicMD4GgWycIA1dNh23rLemsICwlh9W2UxTCQEgEBS3xCZrLSkAAZJ2mLLx4gIwIJGAIeuEkJV0xZA1EkAAMwxZfSRZYwxZG1G4pJgDhmyoBMJVEZg+MoE5S8IMi39TNCAeltJOxRaSGU6KMjLSSi6ZuGIhJjgOXxzhj8EBkc0KdLByDMIhG6kqJSwgIqUei002XFYIHFbC8tGYslkqQtBwFlbFlPWShseRtD+GrIUQXFbYCkNWDyltGGLImiMkBS0wZN2R7PXAkE1WhMsqp2L61weWcsQDsIWVpxwo4Uko+GIP50RnHTVdtySqxaA9MjBA5tjyMbCyIwEOfmQeO8to+UyuLCMbKh8AiWlOchTD5RoAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (31, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIcAAAAnCAMAAAASJavWAAAC5VBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMAAAAAAAAFBQUFBQUDAwMFBQUFBQUAAAAFBQUAAAAAAAAAAAAICAgJCQkJCQkMDAwMDAwPDw8QEBAODg4QEBATExMQEBAQEBATExMUFBQTExMTExMPDw8ODg4SEhIUFBQODg4UFBQQEBAAAAAODg4UFBQSEhIODg4AAAAREREAAAAMDAwNDQ0PDw8AAAAMDAwODg4MDAwNDQ0MDAwNDQ0NDQ0KCgoNDQ0AAAArKyssLCwyMjIMDAwwMDBGRkY7OztHR0cJCQkLCwshISECAgINDQ0cHBwjIyM3NzdAQEAICAgSEhIUFBQWFhYYGBgiIiI7OztAQEAREREeHh44ODhCQkIAAAAICAgJCQkKCgoNDQ0HBwcJCQlgYGBhYWEHBwcKCgpiYmJra2tsbGwFBQVvb29zc3MEBAQFBQVycnIDAwN0dHSFhYUEBARxcXF+fn6Xl5cCAgKTk5OXl5eMjIyOjo6ioqIAAAALCwsODg4PDw8REREWFhYXFxcYGBgZGRkfHx8hISEiIiIsLCxAQEBERERVVVVYWFhcXFxeXl5gYGBiYmJlZWVra2tubm5vb29wcHB0dHR3d3d4eHh+fn6AgICBgYGGhoaHh4eIiIiJiYmMjIyPj4+RkZGSkpKUlJSVlZWcnJydnZ2enp6fn5+goKCioqKlpaWmpqanp6epqamqqqqurq64uLi6urq7u7u9vb3CwsLIyMjKysrMzMzOzs7Pz8/Q0NDT09PV1dXW1tbY2NjZ2dnb29vd3d3g4ODh4eHi4uLj4+Po6Ojp6enq6urs7Ozt7e3u7u7w8PDy8vLz8/P09PT29vb4+Pj5+fn6+vr7+/v8/Pz9/f3+/v7///9QQp5IAAAAmHRSTlMAAQMEBQYHCAsRExQWGRsdHh8iJygvODk+P0RMUVJUVVdZYWFjZGtub29wdX6BiouQl5qjpa2vsLKzt7m6wMPExMvLzdLU1NfZ3Nzd5OTk5eXl5ufo6Ons7O7v7+/w8PDx8fLy8vPz8/Pz8/T09PT09PT09fX19fb29vb29/f39/j4+Pj4+fn5+vr6+/v7/Pz8/P39/f7+/hSH1qwAAAABYktHRPbc20phAAACP0lEQVRYw2NgwAI4hAgBHg5s+hiY1ZxiJ80gAPoibKQZCAMh0+TGfEKgutNZClOroEfWuRefvhEA75+cyLDgIOQMhbTep98Ig3dn0o2Y0LRyBU38Rhz4WG/LhN8ZUrl3iDTrbZEBml6T9m/Egs+ZqnidwRp2iWizXuWIoujlrnpDtN5vV3zxukM2gXijvk0zRtErF0+C3m/F/PjcYTiVBKNuBaLo1WgmxR1RYvjcYXmSBKNe1aDo1e4ixR0xkvjcYXWaBKPeto66Y+i54/OD+yjgA0XueIkCXhHvjoOzFi5GATM3fCXbHTvmoILZ844Q6Y7rix+j+ej10qPkuuPskkdoht1ddIU4d+zdiBGNR1eT6451BzAM27yLOHfs3IKh9dQKct2x5jCGYdu3jrqDJu4o8fdGAp4M7JzIwJo0d6Do1SHJHXGKKA1NBpdIZJBKkju6UfSW94+mj0HvjkOrMLTuWU+uOzbtxjBs3T7i3PFswbYzqGD/3GvkuuPq/GMXUMHBuQ+JrOfur1+OCtZeJr++vbh8GSpYeW20HTTqjqHtDq0WUtwRLY7PHWbHSTDqeTaKXvlEkvqVAvjcoTeBBKMue6Ho5aklpZ8djLefLZHyhXiz2vRRNZv3ED/uUKqJ1x2MrpOJNutmJR+qZt7wKcSOw9Q5suAfhxFOmk6kWTfyVNA1i/iUnSMibp6dKLDjJDQuJRpQeOr2fULg3vmmCmVMzWzq7h0zCIIGexlGwuN0rEoOfiGEQKibLg8DNQEAVhAzSqB/Sh8AAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (32, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABbCAQAAAC2PzESAAAAAmJLR0QA/4ePzL8AAAdJSURBVBgZ1cELbNSFAcfxX/+9o+09+363UFSIOLXOGXW+4qJkMU7NmI8t0/jasjicGy6b2XzExejmskxDnBNFRaEVoSKI6OSVaQF5FVuLLc/CRFEUaXuP9q7X+y7OGUXau//9//+r9vORY7rk1jgUVYHGjKFxydC4ZGhcMjQuGRqXDI1LhsYlQ+OSoXHJ0LhkaFwyNC65ZFeZJqlBRerR3cpRXP3q10HtVI/iypocWePTd43z/ZdEp7lUG5tiVLiLjUK3SwOJI0NHEnsTu3IPewo+Vmt4pV5Xt74BJuhy/8vu2IlHZsWWc5jRxOjgH8kf9AUjnkMT/qJp+hrVeR/ODzf2PZI8hHmbmDlYGAnu0LVyacydUrLMN/Dr+F6sSPAKZ4f9H7lvVYHGTIn/qaLQQ4l+7NnMJf3eD3SFxkCO55ZAaFa8H2esZXK0ZIOmKKtKg2u+E9qBk+I8MFwQdd+srLkw8Mk9Qwmc9xYNA0VLFZDz3L8oCb1BtoT56YB3n+rkKMPz6Amhg2TX7GHvETXKMTmBZ74VOUT2PZEsCGmGnJH3xsTBfsbCh9QzYUBTZZ/3z5MHymki+w4wlcdoTvoOq172uG+oiBygmxqeJrveZQpz+NT9Q8Gd8sqGEz2Rt/lUNzXMI3t6mMwcPndDrHiRLPP49zUn+b8uaphHduylgcf5wiBTI/k/lzX+f86I8CVdVPMMzttLA09wtG0URHSCLDitKNLL0dqp4FmctYcG5nKsB4YL1yljRnDHgiTHaKeC+ThnD5N4kpEMcXxIVyoz+TeeFkkykrcoZwHO2E0DTYzmNXwfKF8ZcPkPrWc02yinCft200AzqUwPGbfKvNwbzwuTwjbKacKeXUziOVLbgvewJsgkw39gDam1UUYz1u1iEgtJ76xQ7nUy6eIp/aTVRgVLsGY7tSzEjGUEu2ROYcvsJCZspYIlZG47tTyPOcMURzRNJnjyo4cwZysVvEhmOqllEebdGsu/TybMOKcP0zZQylLM66SGxWRiPcH9Si8w7+EkGVhPKUsx521qaCEzSQqjqlc6gfc6yMw6SlhGeh3UsZzMXRbStUqj2juQJFPrKOElUuugjpexYjaF85XGZRf0YkErJSxndO3UsgJrtlK4X6kZd8yKY0krJSxnZFuoYgVWDeAaUq5SKXpuDla9QRkrOdZmqngFO0rDalAqJR1rse51yljF0TZRxavYc0avLlIqgfd3YsfrlLGaL2yiin9h19UhXa8UjGGvX3acpyZdpTX6zCZdrqc1XXYVuuRTCkY83y97LlKzrtJaSRv1QzVruuwLuuRTCkbCXSC7LlazrtSjmqEmXSAn+FyGVykYuYm47LtYd2mmfqfz5YwEyYRScLliEXe+7Nqgv+pB/Umn6gI54UhcF+okjcrljkdUInv+rWu0SOfqJM3QCzpf9vUmtFVvanRFe9qwZy2VtPKZVyhnA/Z9v08/Uiolry7EjjVU0soXVlDOm9g1uU+NSiXvwfuSWLaGStZxtBWU8yZ2DOOOy6uUbv5xGItWU8l6jvUy5WzEuv/gO6I0vl3fjyWrqGELI2uhlI1YtYTSVqVh5EXfJ3MrqWELo2uhlE1Y88tB1++VTmnrIjK1klq2ktpiytiMFcf36Qyl47rjpkEy8hq1tJHeIsrYTKY+Ji8qt9Kq8w7GMO8lqmnDnEWUsYXMPJIsXCwzituXY9YyqtmGec9TSTuZaOzTdJnh/tXVEUxZSjXbyMxCKunArP14++WSKUWeyEHSW0o1b5G556iiA3NujwVmyyzv328fJI0XqaYda5qp4m3S+whvVBUyrS4QCZPKEup5B+ueppJO0rk3HpivTAQX3BljVC9QTxf2PEUlnaTyMf6opigjxb6+bkbWwkS6sO9JKtnO6K6LBmYrU+7bzg0xgibq6MYZc6liOyPbiO8T+ZUxt7+nOclXLKCebpzzBFW8w7GGOCWUe5MsmeaN7ODL5lPPDpz1OFW8w1fNHAi8KKvct0wLxfncs9SzE+c9Th27+LIl+A4qKMty/KtvifI/zzCRnWTHHOrZzed2UxTR2bLF42+/MwbzOI4esucx6tnNp/ZTFpnwE9lW5Tl4Q/I49pFdD1HPHnqZGvbcI0dcnzN87zBZdz+n0xgJzpVDynWm/93fxsmybsqjvrvkqIrgzpmxIbJnM8XRvN/Icf7C1xrDPWTH7IQnnDtDWZHjmuWNNA/jsF4uDfk6dZyy6EzPu98L7cUpw8xNFod9D8utLMsz/pjXf3ckhH2rOKHPu0WNGiN1/sW+yB9iH2LVMC2cHPIeyr1WORpTk71zCwauibxKgszs4/5ETSjQpWvk0teiwritqDMY+dlACx+RToI2/pY8tdfT55+rc+SgHFkx0bii6NLBM0uTZ+Wc4ptqTFFQARVKCqtfIe1Xj3bF26Ib8/LeG1oZfkFrNSxH5ciOE3Wq62T/6clpCe9QQbxAcscnDLoH8g4MdX6yTV3aoJCy4r+mkPLtYKzILQAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (33, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAACKCAMAAABfJxzNAAACi1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGBgYICAgAAAACAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPDw8AAAATExMAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwAAAAAAAAAAAALCwsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAREREAAAATExMAAAAAAAAAAAACAgIAAAAAAAAAAAAAAAAHBwcAAAAAAAAAAAAAAAAAAAAAAAADAwMODg4AAAAKCgoAAAANDQ0AAAAMDAwAAAACAgILCwsKCgo7OzszMzMBAQEkJCRBQUExMTFeXl5mZmZ2dnYBAQEhISFXV1cZGRkfHx8AAAABAQECAgIPDw8QEBAREREUFBQZGRkfHx8iIiIoKCgrKytERERSUlJTU1NWVlZYWFhZWVlfX19kZGRubm54eHh5eXmDg4OHh4eIiIiKioqRkZGbm5ugoKChoaGnp6epqamtra2xsbG7u7vAwMDMzMzOzs7d3d3i4uLm5ubr6+vu7u7v7+/w8PDz8/P+/v7///8WkrW8AAAAqHRSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcZGhscHR8gISIjJSYoKSorLS4vMjM1Njk7PD1AQkNERkdISkxNT1BRUlNVVl5gZm93eHmAhoeIiYqRmZyipKqrq66ur7KztLi5urq7vL7AwcPGxsfIycnKzM3P0NLT1dbX2drb29zc3d7f3+Dh4uPj5ebn6Onq6urr6+zs7e3v7+/w8/T29/v8/Pz8/f39/v7K2eTBAAAAAWJLR0TYAA1HrgAAA51JREFUeNrt3PtbS3EcB/DP1koZclmiSBcqlyQy95DZlmVsKLnkMkkSYi4Jc8mYNaJccr8ruYvc7/cQEv059lRbj2xtPW1nO/t83r/tp/O8nufse873/f08B6AxSWWOyl5gV5Iu1DsmNQdJTnKSk5zkJCc5yUlOcpKTnOQkJznJSU5ykpOc5CQnOclJjkn+7I6VfPJ0+ZOXNRZz/53Hy99aNj0mOclZLg8QNmTW5WpTHiCRT1Y1JP9qpSn32iX/Uoz1bn99cSLW//nx/JTuSFe4zsqCESyVv6m1mId2r3CTDIoObJQ/vWElH+xe2wPTNwxEumPhiA9LuUj3agNylwQh3aV6y/QJWPfnsZrZnZA2E12UO+OwdjKJhXJvG1eeMsOZmeayNqpPRk5461eeV/XKeXl+xHU9HEdyVNK6/H298/LdhXKAqHVpApxy8JXrxuGUA4zco+TjlIP/nE2DccqNzzeDzAunHPouzwrFKQeuxCDCKQeIVlsoqlDIwVfxf1GFQw4wStuyqMIih4D5LYoqNHIAUdE/RRUiOYSsUAXhlANPqkvAKQcYmmcuqpDJwU+xIw6nHGCMtrGowieHngtyIpiRhwnN4biD3Ph8M0gYkSdfOtOUcq57yKH/2jQBA/LpL0y/r7mLHHgy3UqccgDhqUe/ccrDDtz95UR56XqNRnPMLC/XmLLFxXIf+f7VTr3bSxcZx592NcuXqUxxrTxGnRqIcYXjK3aPZ+Sp5m7y+G3KroBQbjxhHs3Ue3vylbNNKXO9fIJW3pGxHUvvIea4+r1dkLJ5GMr9uUgr88XYTAQvzB2EsYfjiAulPIzda3jmqiiMfbuX1CDmYjxjicxS9cN4ruYj14s4GM9SY9RpvTCen/MVukSU0yLG3Uk3jHMyXZQFY1FOhSXsU/pjnIcTpOQNRzn9KdLJ/TDOvQanb4y1cWWPlHPEBqmt8XaPlEdkrom2vVn3PLmXtEjCs6OfmXv6hPNy8hDz8sjsjDC7GrkooTMT1wZ5XaWVVLVB7iMvEXOAFWmW/6yotpiPt+yXx6gXhwCwTn7TMumH3XK+Qp8IgFAer0kNBIzyYr2IHeQeoQ2Zed70wZxv7b7bWZLsxoP0kuumbyTdrkAid8IKR3KSk9zt5eWWv69R4fHyP7VWUufpcoamRUhOcpKTnOQkJznJSU5ykpOc5CQnOclJTnKSk5zkJCc5yT1Bfu6rY/KZbfKpW7c7KEtZIv4LggGBcPuv3WkAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (34, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKwAAACnCAQAAAAm/3+QAAAAAmJLR0QA/4ePzL8AABISSURBVBgZ7cELYM6Fwsfx77P7DbvJZiJ3SiKE0BKl5FopQnW6yKXScUm96oQQh4oORTk6dCqEQkWRkktoJUIxI2a2GWbm2Waz5/du1mPP8+zZ1eNo7f/5cIVVpz+z+ZpDpCIySeQHFvEsN2IoIx8e5ztSWMVoulCPSoAX1WjL35jPYaL5B6EYSsWTESSwhh744JyJNszlBJPww1BCHdjHOlpQvHD+QwwdMBTLjQnEcy8l14mjPIOhSCF8xTeE49xEquJMBDuZiglDIQLYThqROOfNGfxxLoSfmITBKT828iZtSKQ9ztzMjxSuGgd5EIMTC1mICehMAs0p6FlmAUG0ZxBvso44emGrCYlcjcHBILbjQ55exNGQfFW4mSd4h2+J4yw/sIMJ3MU1OBrNSgx2GpBILfI9xGH68Riv8SWxpBPPAsbQjdqYgNHsJIiC3NnL7RhsfMZz2JtLNst4nh7UpRIbmYmJfC/zM4EUNJBvMFzUkRg8sfcUUewkiDx+rGcebliZmE4PCvLgKE0w/GElg3H0LkOZxvcEkMePDbyLieJMYxyGC2qRhB+OtnMzJt5hHT7kCeInXqY4kWzDcMHzzMJRJbJpBriziE/xIE8wbSiOF2Z8MOT4ns44aswxDlMb8ORz3scNW03oSr6bsbeTGzHgz1m8cNSPpTxMNOGALxuYja2RvI7VVSRgbzn3YKA93+MonGm8BDzDLwQDlYliIvkm8hJWDdiPvbkMxsCj/Jt8VRnCtxzne7qTazJbCQBC2csYrGYzDKuWRFGJG2mO1UyewcA/eAWrv3GSBXTFk3hqksvEv5lOrggO8iR55tKP1rzBWN5jF+dIYxcTsZrFMAxMZxRWnniSqxonsDLhTZ66xPM1C9nCcczsIpUveZzOtMKErY94EAMzGI6jO9hHdQqaRhZvEkl1cl1DAndR0GY6YGAiY3H0HJvZQyiOZjKDE3TB6i4SqI09N84QjIHhzMTRBzzCq+wiGHubuYXbOEk7rAZxP/YacghDjq58haPdNAfeYCsB5PMmjQCgB0k0pzAjmIshRy0SsOdNGt6AOx+zgnw3kckwcg0gnoY49y3dMFywn6bY8mAAebx4lHyPsoxDPEGuoRyhFgU15SgeGC54kzGUxGyGU5+j3E+usewnDEdzmIjhD02JwY3C+fI6W9nMNtoBLUigDbmmspMgbDXiJCEYLtpODwrnx7O0w4+zRJCrOY3IZWIB6/Eh31LGYbBxN7txp2jNiSGG6tjyYBaNsOrNHnww2FnPCIr2BPMZQjRhOFebOFpicFCX4zSiKHMYBrzALoIpqAo7GYzBiUeI4SoKt5225JrBdBwFsI+ZGArxKjsIpTDD8MK56mwjnukYCjWJX6hL6dzCEcbizyYmYCjUkxxnICZKxp+pxHM3ua7iGE0wFOom9rCe5hTHh0HE8hFhWO3hOgxF8GI0cXxKT3xwrilTSWA5LbAVRwSGYnjRl884xWpe5H5a04IWtKArz/AfDhLNROrjyIwfhhKpQm+msYxtRBFFFGt4m6E0wBlvMjBcBtU5huEy6MoX/MWYuJ6+jOddVrGWlcxhLHcRyv/WP5jAX8jNvMVRfmcZrzCIbnSmB8P4JxtI5TueJoj/lZX05C/BRB/28CujaYAzvnTlA07zL0L4X4gngr+AFmzjB+6kOGG8wTH+xuUWwTHKPQ+mEMcATJRMfbbzCQFcTj1ZSTlXlXg2EIxzwTSnIE/eYQfhXD4TeJlyLYK9fMU+gnFuLNNx7kV+IYTL5Qvuphyrxn6GA1PYhDfObKUjhRnHRjy5PJKoRrkVwI+MJpcby1mECUehJOOFlS+NiMDWcqZyOdTiCOXYAt7GypdtjMWWB1fTjbk8x79Yyc8kkUE0E7AVRCw34Xr3spxyqy+/4Eu+cI6wkGeYxkdsIo5s4tjCYl5jOL35gkk4048oTLjaq4ylnKrMUVph704sLOV5+tOeuqzjLfKFEk1/CjLxI91xtbV0oZyaxDwcPchm4riaPH5sYQL5biCeZhTUl29wLROnCKZcCuUkNXD0Nk/zAjsIIE8ov/E0+W6lNQV5kkQtXKkeBymnRrCQgn7jBmAun+NOnobEcyfFeY+huFJfllBO7aY9jmqTTQfAk/VMw6otoyjOQBbjStMYQ7lUl1hMOOrFVhJpAASzn8GUXCOicaVv6ES5NIR/U9BrPMdjxBAKNCSRTtgay6NY+dEVW15k4IGruJFCFcql+TyOLU86MIoo2gIz2IAXEEkCDci3mL5YdeRb7MUTjqs0Yr+u1iFtVW95UK5soy1WfVnJGfbwJil4Am6sYD65HiOGUKy20QargSzEXgx1cJUBIauUpGxJZ3VKryiccuMY1bEazMNUB7rwNXkC+ZVO5HqD7/AiTwLhWL3AVCJoTghWMdTFRRosnpIui6wylK7v1UfulAMZeONoIuOw8sadXG6s4EOuI5IHWMZ41rCXjfxGBueJ42e6Y3WSEFxCN7c9/60KSFOshsuXP7ls3HD0Az/ii6NKZHGSDXzMLF5mFIk8TyPCcMeWL2m44wK6Iys1QKlyIkvn1Ik/uTR8sefDGeazHDfsVeUMcfTCqgPxVMfRjezCBdRHZ3epsRyd1xnLos0vNmYA89jIUU5xilPEs5n/8CT1+dOIpSb2OrAFT9bzCvb68BktSKIVVhNZjaPBLOCS6QmZpfkaKEfpminf85xhMU9xGzUJIoggIohkCItIYhMP4c2fwEYisTeWqUAw++iPrTmMBO7jKDXI48EQHC3iIS6RRumsctyvKbKVoucVpB6aI980quOMB7ezgmM8jTtX2Gyexd4iupKrCfE0JN9p5pDrZX7EH+d8OUE1LommyByr6WouL3VVvkUKUz9FK9fQdN/pFK4V3xNFQ66oB1mKPR+sbiAQqxqcIJonARPvsww3nOnP51wCeRz4dNK5axWuMdotszpouHKZ9bDqa7OsflLgEYrixtMk0pMrKJRT+FK8ASylEYl0AnzYwkSciaIHZVWZQY0SAy2DtFHZynNaLTRBiWqtAUpVvvPyysSPojXjCAO4gj6nL0UZyvtsZwHDgEgSaAiEcoCBOLqTXzBRel70YRUnWfjupoxM2Tmm2qqmqXJUJY1qFKc+h+nDFdOVHyjKKJ6gGYdpTK4hjCfXtRznVmx5sodulI473VlIEqt4iEBQhMyyE6drNFQF+ZwjkOI1IYG2XCEmdtGdotXhOFvwxVYv4ggj34uspDTaM5NYNjGcCC7Sm0rXRefUVpNU0BH5p1Ay3YnGjyvkNg7gS1Ee57/M4RPcsNWTcKwiiSeckqnHOPayn3E0woGqKlUXPav7ZVFB07OrLKak/ss/uWLe4y2K8gGP4ck6JuFcHeLpSvGqMZwo4pnCdRRCE2SWLJJWq47MKihTNc7SkZKqyglqc4X4s4eBFMZEArWBqhygBwWF8SuDKVolBrGJZObSHjeKIF+dkDIs59RAK+TMq1mBX1Mak5nBFVOfo/TGOU9mkKce1+OoPicZT+Hc6cR8TvIlD1OZEtAwZUandM7sJGdWZPsdJ4LSCCMJf66YZsQziNLqRRLLOUB9nGnJ6xxjK8MJo8TkqcMx/d2y+mVZ5Ghmlt9pWlBan9GHK6ge+3iXSpRUFeZylFuAezjGLdhqz0xi2cRwIig1tfe+nV8CNzdOXSGz8qTqE11/pspP1KT0hvIeV1Rl5vE7D2CiOB48RizzCCFPFxKJYh0r+IC5bCOO12lB2b3HU8C9wTu9MmuntDpZ64xXZsiP9MZEWVxLNFdcJFv4kUfwpTBXMYpoPuMmbIXRgs705EEGcRtuXAp3kriaPJVpRmeux5+y88BMAH8Ct/EpKXzGSDoQjhu5KtGYexnPFk7yNk25nG5gL661h2v5kwiiPzNYyyHOI8RZ9rGcsbTDg8vtcRbiWt8SiYF/MgbXWkMXDHxIf1xrHZ0xsIpuuNYObsTAGrrgWieoioFl3Isr1SARQ445DMGVerIaQ44RvIkrzWWEwtSOCq8L33KpImhHZ9oQgjtx1Nf7OioTFZw/Z6hEWXm7DQnc75/eJLltSuNk73P++9mtGkrXWXWkwltPT8qmpV9C5JmvlaU8ZjVVcPqnR3VOFn1BhfcwqykD927+5qUW2fhSjZWuc7ogTVdRwflzgoaUVuuAtG2ylaVm+kgXmTWSCm8Miykdj8q/fyx7k3W37MTJRAXnywFupxTcH49MlZ2NitAx2UlRJBVeR34nhBIL2r1atg4qQuvkwKJPMTCZTfhQMn6emZnKd1R1NFtOpCmYCs+NpXyODyXR9JoUXRQlf02QU2d1JwY8+YivCKJ4LRsk6w8fqqp6qbXOqIA0rZYJQw43XiWaVhSnfrVU5UhUfzXQDkmj1UapsnXeogPyx3BRD2J5izCKYvJJPaDJCtbTSlcuiwapszKU71y6rsFgpzLTOMk8OuKOMyZaee310z3ap3zZ6qteylIes+XgAAxOhPICuznBMkbTm5bUpS4t6cUoFhPPQd4JN5tlL1N3a6CyJaVZ1q3FUIS6PMIMVhFFDDFEsYqZPEYj0KPp6RlylKZIDVOGdicuccdQenpNqXIqRS01MmtrNQylJTe9r7Mq1LFz3tE8h6G01E7ZKoxFZvUnghiexFBamqZU5clWik4oWRlK0Hb9Vy+qG7nqEks/DKWld5WsPVqpyXpEkaoldxw1IZ5uGC6DmzjOrTihMAyXpCMnaIcDvaxs7dAD8sJQZj1IohkXyU3zZVYus8xaoOsxlFF/4mnIBfLQcqUp33mZtV+D5IuhDIZwmFogD61QugpKU7LGyQ1Dqf0f+9vX1DpLupywZCtD38gXcKcmdahDHapgKAn/1+ubT2TKCYs+zur+OgOYww7MxBJDDDGkEMsqnuMGDIVTkGXvk9ltlCpHFn2lTjJZWMtjNMaLfNW4k6lEs5un8MVQkMIUo8xs9VNnZcjWV2qqFlqgT1XlMCacMdGB5cTxMCYMtlRfx3VeOTLVTb2UpTzx6q0mWqM816XQlcLdwGbWE4HBSk2VrGz9IU23aqCyJa1SmF5RlqymWgJmUxQTY4jnVgy5FKLTsshGsm7QQs1WuLbI1lqFRlGcOzhOFwwgTx2VA7NeVX3FyN5WhfxK8VqTQCsMoHuUKjtzVEexcvSFQr6nJLoRSxgG0E5ZdNF6VVOMCpqU7TeLknmFVRhAtylVf0hSmNbKmbopdKBkPNlBXwygjcqWsiXdp5fkzJcKiMWNkmrPIbwwqInSpXjLBjVQhgpKVvVUulIaX3M/BtByZf89qZ7lIxV0Vq1TfWdROn34GgOotuJCBridn5R5Xvb2qt7ZwIW4UTpeJFMVwwUf8lLAz3VS5ytJuTK0Rn3MAcmeAymLpQzAkMOH0wQB3aus8Tjnlemb4Z0Rst1jJAGUzXBmYchxFxvIF0AAl+ZWvsOQYxLjcKXaHMKQ40vuwpUqcwZDjhjq4Eo+pGPIkY4vrlSJVAx4cB7XqscBDPiQgWt15BsMOdLxxZVGMgNDjlhq4kpLGIghx1fchet4c5qrdJ8aU+FN4wUuTQjdeYYRPEAturJJATqr5VR4d7CRsmsbuM0/vevpYea/p/dJCTZ7nGW6xihD6QqigvMlmasoC68q74anvm/JlNVvClTDVHOmJLNGUOHNYzSl511lW4+0VNm6T1OUoXRdcJAKrwW/40MpVVrWw5wtW2tVU2m6KFWtqfA+YSSlc0cNc7pspaqOPpONbC2mwmtEEnUohcDdK2TLonv0uBykKZAK7+9sxouSqh9oPi9bL6itMuTgrIZS4ZlYwnxK6uH7UmVjsq7VcTnxGwZ82cJs3CgBj4kvZ+sP2RqpRoqTU8kYclRmI0upRLHcxo9XnuPqpkglyymz2mO4wJd32EtrivPUo2mSRYtUQy/qvJzJytBgDDZ6c4R51KUoLWulfK6b1U675Fya0hZjcFCJ8RxnOT3wwpm6vOSW1UjLZJFz2Uo4LV8MTlTiUdaRzFqm8SR96EMfBjCZlcTzOzPcJg5Nt6gwKZYlzTAUwZdIhvMOS1jCEj5gHH24GhSu7efOqxBmvf8UhtJTHSUqW4U4Y9n+DobSUxMly6JCnMtM/1ImDKWnKUqXU1kZltM6pAAMZSFPrdEZSRalKEmnlKk0RWu1ZupZ9VIohrKSj1Zqs+ZptO5TS4VShP8Hl9nNvcVhrA8AAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (35, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAABmJLR0QA/wD/AP+gvaeTAAADe0lEQVRYhc3ZWWhcVRzH8U/GTGuruBBxAbWJYFItGosiimIX0Wqr1AUERWlxqeBSArXg2ieF6IMofVJREER8ENGK4lK01SgqCIoLWrWidakbRa1bXB/+E00ykzv3zrmT8Qv3Ze45//ube875b7fL/5vdsQBLML/DWuqYIcQN4138hh/wF57soK4J7INn8Qt2YBR/j7t24pKOqWvACvxkosix62cc1DlpjTlPY8GfdFJUFjeLPTom9A+sh+4Eo7PRj15Ua9fv2IYP8F0LNk/BZbgNqzFL7NcnWhHbhwuwVLiSj2vCRmv3K5iDAXyGp/AQXsth+0zch7Mxgi9wC3bFi0VEHolH8DXuEO5lVsb4Co7CdXgfr+OMjPHL8Q1OmPT7miJC98Jd4u1djJl5J46jSzj1F7ARcyfdPwvbccwU8w/O85D5+BC3yn6LeenCSrG859d+Owdf4ugUw6fXjCxNMTIF/XgPD+MriWF0oViWY5NlTc2VwnPcmWLkEHyufqOXyQrxMhaLs7C8FSPdwsVcWp6uOlYKPzx2yAbFHi4cStfgsdJk1XOF8L0Dk36/Bo8WMbS38KFzytFVx1XijfY3uFcV6eCCvMZuEP60HazGpzg0Y8yFIto1pQtbMS9dVx1D+EjzFesWe7fpyh4nwmHZXC+CSq4IJML42maD1om0rExuFG6pyCk/VVQLmWzAshZFNWIdtuDAgvP2ECVNJltEMCiDYbyD/Vucvw0HZA34XuSMqQzjLeyXYONVkVo2pFsI/TXhAURmfxpOFv66VXaKXkFDKvhTWnmzViTWS6QJJfoGo1kDtqMn4QFzpS39eN5WH44nMILjS3pYCruIbTBjqgEV8W8Gp0tRBgMiLE+5DSrYjEXTpSiDxdjUbFAPvlVOnZXCc3IGpw24qL1aMukTB72aZ/BCEXkqbRSUxd24qciEjbi8PVoyGRR1355FJs0TTj1vSlcGVVH3tdR7vRYvyfB1JXM7HhcFQGEqovnwQKsGCrBKNDtSoqeZon//oNZ6W3kYEsl5KVuuintFytZbhsEau+F+vKK8fOJfVome15CcPjCDZaImW699K6ZPND+24mrsW2DubPGd4GW8gZNShBQ5REeIrsq54mA8gzfVd757cbhIxE8U8f4ePC2+EUyL2DGqonxfhMNq4npEirfDf98URvA8fkwROJ5/AOqhsnLG2td5AAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (36, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAA2CAYAAABumXGkAAAABmJLR0QA/wD/AP+gvaeTAAAE9ElEQVRo3tXaa2wUVRTA8f+9d2ZbatG0VCHSlviqVIwgoFAfkYCChrcSLD4IVd4QRAFLCkpFCM8QXoqAUNIoVIWyMWgwGIwGE1ALiagBhSgIJoLAClZoZ2eOH7oboEJb2m27c5Pz/fxy577OGYjduBkYASzDWDsJJBzFsk9hrHMY6yza/I1l/wxsBKYC9wKKOBitgalY9g+AoI1HelYFOf2FgROE3OnC8ELhudeEJycLPXKFOzo7JF7nAIKxTgIrgS7NkXwmsA6lHIztkjPAY8o64f0jQjBUe2z5S5izTRgwXri+VRT0DdCzKZJPAN5E6UqSUxzy5grv/Va3xGsCzSgRbusUwZjPgHaNBeiEZR9EG4+hrwolxxuWfPXYekbILxZSWjtoUw6MjDVgGFqfJ6O9w9KvY5t89dh4VOg5zAMEWAMEYgGYDHg8MNCl5I/GBVwaY5cI2rgYswNIbAhgLODRf1zVdDcVIBqztghWwMVY2+s7I4NQyqPv6OYBXAaxXbQuvtZzpTPanKd7P4+tp5sPEI3JqyWyRgrqCkjC2IfJzA436RqoLQa/JCjlAjm1E7RegRVwWbE7fgDBkLDlpHBrRxc78CuQVPNZoJRH3pz4AkRj5R7BWC5QeDWAwlh7SG/vUHoqPhHBkPDUy4LWF652qvcAhIJN8QsIhqruZ0ktHWDp/wnGfEpGthPXgGgMnSZofR5oVe1WqjzGLBZfINb9VHXth0mXIvKxbJdNx/yBCIaELo95WPZ3FwmWvZeuvT3fAIIhYeJKATwgAyAVlMeE5eIrRPEhASVAHsAAQFi111+IYEhIv9MBNgDMITnF8R0gGBL65Akm8AvAh2TnhH2JeHG+oLQDVmA/jz4vvkTM/CByuzX2SYZO8ydiyVcRhDblDC/0J2LV3ghCKZdRC/yJKDoQRegK8ub6E7F2f3RNWCGeKfAnYvnuCMIK/M7Aif5EzNsenQnzBd37eb5EXCwgsJr0rEpfInKnC8Y6AzARbby4qmzUNbr29jDWlwD3AELhVn8BSk8JCUlhYBaAQZuzDHnFX4hFO6ProVf0WVREWoa/1sXgSYKxTgNWFNEPkEYv28eyl3FTZiWw/tI3dgBjTtBnhD+22tc3Rz+lR6oXbWZgJ4QpPhz/iI49wmhr35WKZ2loU07/cfENmPtJdBaevlopswBtXN76Nk7XwmnhlrsdtFVWU6+iBcY6RocHw3HRl7jSc7SqTPNwbcX9XoDHqIXxBXi7TLATwsCKujZalmHZLgs/jw9AyXEhM9vB2Idq601cvuUqs4uWqZWs3d/814v7nwijzT/AXdfaeLwRYx8hra3Dmu+brzv00GAPpcJA3/q2gNth7KOktHGa/DQvOS50fdxF6TAwpOE/o2j9I4FEh/zipgG8s09Iz6pE6/JImTUmIxmlSgGhR67X4J9SaroTjVksBBLDaHMk8kyI6VDASLQ5R8tUh1ELhM0nYgeY/bFwe+dw5BxYA9zQmL8LtUXrDSjlktrG4dmZQtHB+iX+0Z/ClHeF7G4uIFh2WaR32GQjG62L0LoCbTyy7guTO10oLBXWH7hy0puOCQt2CKMXCd36eiQmO5HkdwGDmvN3uhRgPEptQ+t/I5ezqu/6+lYVpLW9QEqbClokV0aaIgLKQ+syYHZ99v7GHjbQIbIlTgPeAOYD84B84AWgW6y/9/8ArurQVh9FLAoAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (37, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABmJLR0QA/wD/AP+gvaeTAAADUklEQVRYhcXYXYycUxgH8N/Mblu7o2nLWuuju3ohUlRs4oKi0hLVopVmJVJSIa7EBUHVheBiQ4QUd0gQ3CmiSZM2tGmbhlaDcCVVH2V9x6oQIurj4nmnO6bnzOys7uw/eS/m/T/Pc/6Tc87z8Za0jj4sxWLMx2mYVjx/4kt8jF3YjI8msEZTlLECW/AdnsdqnIXpdXbzcBXWYz/ex63oOlpiFuID7MSV6GzR/zy8hK9xI0oTFTIDj+FTXD3RIDVYYGwb+1p1noO38ApmoVL8viVjP4zXMtwleA9nii29HyM4J2VcTrybja3YgyH8jI5C2MzMoscWfqntmFFwXfgbD+IuvIFzM/H+47wLjzczPAoYwlfilmbxBDb4HwevRdyB3SJlHIGL8In8tkwWXsW6+pclvItr2iwG5uJbdTfvWuyoM1yHJZkgl2JthuvDw8VC4+WH8WSt0XaRiauo4Cc8mwn6HEbRneCWi9t0XcY3xffix2JdA6Ic1B+sk8WtS6ELJ2U4onw0QorfiNUdYrv+EIerFr/gr0zAQ/i1wYIHmwhK8cfgsrK4XduaBGgHtuFieAeDU6vlMA7CDyK1zyqeHE5tEqwRP1PUx0a+JdFV+F3UtN14O+Nwumi+7s3wd4tzNT/D7xQFNoUBcYYfwPbOQtk/eEFcxxRG8AzezPBb8bToFlN4URzaFL4pYm/BIiLfVDLG7cbesvj3/VOtpMBAGfvk976d6CEar1NEo7R5SuWwDLPL4kAunWIxcIXQAj7EBTVkZ0HemXFeK25cR4IbFKPPwoxviu8W+bC32lM/hdtrDMoiWTbroVOCqj10rjCn+JtF6fi++qJL9LcLMkEmExUckGj414gGPzWJTCYeEYnxCJSwCfe1UcwSfIbjcgY9YlIdaoOYM0RSzh3+wzhbdJC1DX9JFL/zMz4rcFuG68dDOKFOzAFc30xMFYP4Qny1IBrz3/Boxv71YoHUPLdGFO3Li9+LRBG+YbxiqphrbL7vFxl9esa2ghMbxJonUsUwPseFrYqpYhruEVu4vhDVKipiQh0RLUrPRMXUold8mhkV08FNomnLpYg+rBLXeRQvi7PZFK3O8N1YKWarxeK67hcz1SEcLz4elI19C9ogJtNx4V/KcJmDxXBZUwAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (38, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABmJLR0QA/wD/AP+gvaeTAAAF+0lEQVRYhaXYTWxdVxEH8N97jmM7iZ3EdhOnberaISQ0DbSlICi0oYCggJBYQBcIiSI+hYSEkPjYFAlYsGDDggUCIbULBAjxVVhUSDTiS6hSJQQNSlpBISUFJ07S2HHt2PliMXN6j29ek1qM9HTvu2/Omf/M/GfO3NexdunDa3EP9mISA7iAFRzFU/gt/oxLa9m8swbd/fgE7scsHscT+GeCHMPz2IlX4wC24If4Dg6vBdjVZDd+hf/iW3gTtvXQ24k7MSKiNo3X46u59ie4+f8B0sFnc7Mv4i0iTbuvsuYVeA/2tEAP4HOYwaeuZbSXDOJhTODDggcj+fx0fs601gyk/s68/x3Ot3Qm8WPBsY8Kzq2Sbg8wG/FrLAlvLwuOHM+NYBSbWw7sSL2n8XfcinWtvY/jg9iKR3PdKmlHqA+P4Cw+IsLeze8nU2cE43l/Kr3cXunN5m83C1I/iYtpvOi9gG+KSL4/nX4RQC1fEWH/Bm5KAzUYWE4DG9LT60RqajBESodEChd6gH4EH097f2xHCu7Cv3A9duHduKOXYsqEIPkBUVEvJbfkXrs0ka33OIbbyoO+6vpLPIgTIoRHsUmEuk3gEp3LoiGeE1Fb7qE3kNdhHGn9viAq72v4Hg2pPyD48ER+n09gh9LwZMvIRN4fEwSW3g+39Lbn/SE8J4jelp9jvSigFyP0EL6NZzEnypoo91OCoOtFNAqYufxtWURqSFToBVFd2yu906KLjwhKnMjfNuZ+J0V/eqgrcrwNz2CxAlPkvKiUGzW5PpNgVN/Lups0nKqdI6K5jH0JpoD+hWiqk334mMjl71N5yZUH4lB6fWOCPupKOSfSdEPqnxZ9py2nU+dVmgZ7SpB+tIt7NWdVf6KuG9qmfHZecGxAlHJbNom0zgkO9mcUeunNi9Ru00TwMdzbSS9uFXmcSO9WBPuHRJ8hOPC8qLr96cCxykjROyMa7pb8flw0QoL09X6l8R4WPP1NJzcoizsVqH6RuosVmCJDCeq5jEhtpLSI0Raobg/niJmKOHLOdluGLmdk1iWw8TRY6xA8O4RXakq5BsPqA3hakL08r/c7koHYjRe6rmxmwyIyy4LAg3ofwuXA3SG4026exfglEa1xQfxeeodFS7jQtbqZlYPzkgjhrGas6PbQWxKT41ZNf9LSK+fXmXRu6CX0TmLjOpHn4Vw4lgqnRKr60tBgXmcEgWu9+fzsz2czed1c6f1DcHKk2mepAjOWNjp9eEB0zgVRigUMwanF9GpQkLLMMAUMUZVzgqArgoNt5xbTwcF0alm0haJ3Hd7Qh9cl+nOiW7c7dQG1XZTpelHu8y29AupO0SCXRBpqvRrUROpdTNDvxEoXB8Xx8ZSohCumuPTofH6W9OYBkfYZzTDfBi1BdgTvxkVm5vE2HOyIHD6Tm2zNSDypqb4t+VxGYKOI6KKGL1Kn6K3kfkesHu7q/UZTbz6vf5Fn2TJuFyR8TOR/SoRxuDIym4CWRKgHRQUutMDMalK1T3TpQuDauWcTyCA+KZrsT8tMfRt+JlK3JOafKfxHpGk2DRfpF/1nXd6Xt4sTLb2tovr+JlpJ6dz1ftNihD2Ap8s8NCNe6vYJTnVFfm8Q/ajNhUsJ/HpRHf1iAlho6Z0TPeiu3HO5h3MPirffh1k95D+O7+Kvgh9nc+FYbnLZatksUjaUeiuaQ7SWoQSzR8zsNafeii+LiXWxx1rvEyX9Rs3oMCVSWoMfE6GeFuQsr87tV+zRXD8lRpa7NWmbFLx5Ry8gtXxeVMeO6tkUXqPp5gVMAT3QA9RYBWZDPhvHm8WhfAifvhaYIl8Q4+be6tm08HBX3m9orRkQpT6dBttgitwj+PaZlwumyP2iyh4QjWxcVMJ9ek+CRAnfnkbvsLqBdjTl/d61gimyR5TkH8Qr75SYf3q9zkjQe0VabtG8GB7IfQ66+kvly/rDqosP4UtihPiBqMSTor/UYIZFNc6JP63ejneJtvB1/MiV1bpmQLXu3eLfi/tEL/q34NpiGi0de1eueRTfx5+uBaTI/wC0rYTPw6jzlwAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (39, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAACs0lEQVRogdXZTYhOURgH8N/M+FjQjMl3ptgoUkgJ2SFRLGywYSV2vsrGQsmKyVqhhEQUG8nKpCwojO9CIiv5KDaYMsbiUOPtnvvej8x5/evU7Tz3/t/zv895nuc+523DHdz0f2IBHEm9ihrY3p56BXUxqsA90/G4AvcPfBk2nuPe7/GoAl8migjowMSK/FOHXa8adv0SJ3EKHypyg1RbaDYO4wW21CFKHQMTcAan0VaFILWAP9iKo1UerCPgqfDWYmM0Jgu5ehuu4mcO3x6sq7KQZnWgB0MZ40mF35qH/gjfEB4qt5VGvA48xXLcj9jnY20ZwhQx8BUbhTqRhdVlyFIF8StcjNhWliFKmYWuR+bnKhEHKQX0R+Y7hPpQCCkFfMqxTSpK0iqFrBEdRW9MKSDvA/FLUZKUAhZG5r/hfVGSlALWROYfYbAoSSoBs4RiloVrZYhSCBiL88LHXiMGcbYM2UgLmIkbWBqxH8frMoRFWso6aMM0LMEGbBI8kIUX2F/2B+oImIOPOfYOdCrm5ddCL/C57CLqCKjT7A/HZeyQ/zKi+NdbKIbvwsKP4VYdolRpdIzw8t7UJUoloF2oAw+EDq0WUVXkNfWj0I1Fwv7ui3BMFPqCxVUX8a88MChklH4ht6/4Pd5l3DseV/x9ilcYI7mF+rBMtogZOFGFdKRj4I1Q0LIa+vXYXJYwRRDfRm/E1otxZchSZaGDslNoD3aWIUolYAAHIrZ96CpKlLKhOSek4kZ0C+ekhZBSwE8cith2K3i0kvpU4pJsL3QJIpoitYDaXkgtgHwvNI2FVhCQ54VdmnihFQQQvPAsY74Le/MebBUBeV7YKaTWTLSKAML/BTEvRGOhlQQ0i4VML7SSAOJe6BSJhTZcwNsc0jGyO6av4n9S1EGPcADWiAHcbZib8gscgnaa6T6wwwAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (40, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAKCAYAAAAZ1GZPAAAABmJLR0QA/wD/AP+gvaeTAAAAw0lEQVRIidXUMUoDQRjF8d+a1UbZGwRSxz6kT2djJ94gxCJ4k5TewVS5goVVDpDaVggEYlBMsha7whLEJrNZ5g8Dw/D4vveY+YZ4uMcj0qaNhGCEHd4w+EtwdlI7x5HgC23M8IpuVRBbmKTcX6KHOZ6Q/Qqea2r+jXXAetfoo3Vw/oENHlJMAzasco6rgPUyxW0chtljhWXAXrUzxifycm3wjjvl84txZraKUBN0FGOSE9efneACLxhi0ayd47jFzX+CHzs9HZIQeRR5AAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (41, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABCCAYAAADE+oEAAAAABmJLR0QA/wD/AP+gvaeTAAAGWklEQVR4nO3caaxdVRnG8d85t6O3toXblhZLRZSKASnSOjSINRhbRFHQoiIGYxwgxCnhg5ggUUFFE9CiVGscGzW0OAQHEOOAylDEEjWOhaq0CAgCVeOQNIofnnPa29tzzzzc3dt/0rRn773Wec/bNbz7Xc9aFJMSTse12IlHKn/fggsxf5xyK/Ax/AL342H8Hp/Hi3tq8QTkaNxa+XMOnoRDcCROxSb8Fa8ZVWZe5fq9uBTPwqLK9WNxAX5WqfNpffgNXWcZ1smP+Dsek1ayFReLk0azHA/gjdIqx2MFfoNLsBR/wuWYWadMCa+t1P/S1n7G4BjBRuleH8AzMVS5twCrsF5a1gfxOBwm3fdFTX7HPGzHo3h1C7adKM48qYUyA+F4aSHvx3CDZxfhi9JCv4XLWvieknTV9a2b6FT5T2hk38B4irSqM1ssdzl2Y1YLZV4iQ0a5xe+qslGGl74wB6/HDdiGf8o4t0t+xCdxcuXZ6biz8nyrXIgNLZa5WpzZLsfJ5DSlgzoaMixd82/4Bs6W2a7aYkbEge+SUOMOfAFfb/P7voLnt29u22zFyl5VfjLuwZewuMkyp8lsvMkEHndqcB1+LlFAV3m5zGir2yg7C9fgNon7isA7ZcLaLmPmvG5UepqMGcs6qKOMj+D8bhjUB9biMxJ/XoG7cUwnFS6WmG/Cx1ZdpiyTZJXzJOpY2G6FN+CiDo06ULgM31f/zaomz8YfMLXbFhWUIZmAXtVqwevwpq6bU2zWSEzcNHMkuJ7RE3OKS0kmnj0Tb6PXp9X4Mf7TQ6OKyGP4Jl5YvdDIkavww15aVGDukLQeGjtysUw0B9mfP0t2Co0duQAP9tSc4vJvoxLFjRw5RxITB9mf+Xio+qGeI2dW7p+lWImGfvFE3Ff9UMuRyyXd9ah0bZJnPMi+nCIRDfZ35EWSX/yeOHEdpvXNtOIwLEnjrbVuXixT+mGjrq3Eu3tvV+F4D36JT429sVpybiN9NqiIHI6/yHr4vUal1YbEiasGY1ehmCXd+R2Vz+/DldWbr8CPBmBUEfmoLOhVOUpCoCGyKHXeAIwqInPtFTJU+R2WlfEc/KTvJhWTXfjvmGu3YGVZBs+dfTfpwGEbjixLbu1/AzamyDyCQ8vYgSMGbEyR2Y2pZcn0HjtgY4rMfDxUFjnIOQM2ZlBMxzM6rGOhBOiGRYd4dIcVFpEjZGj7hPoi1HrciudVP1xQuTA2RpoMzBYN5hatS1JmS752j4ighOvlJbxdPWGRKYmUZovWcq/n46tjLw6LM7ebnN28LE75eJPPl/BbPLfWzY2SrLwPN4m+8c0mj+ZnRDROJzbx7BuM80Z4gmi7Z0ifXyuZjQ04txtWFoS3yv6deiwSeWPNsPFz9qaHJjMz5W1lvNzsbPzUOKKyknTnJT0xrXhsxutqXB/BzWrslKjO0ItEhrGjZ6YVi5tFhTeak0Q4dSfeMl7BE7SorjrAWYMbK/8+XsbM+3HGeAWqWx92O6h/HM1umbl3SE9dJ139X+MVqDryAclLlioFJztD+Ie0zLuaKVAdIx8Wjc8JvbGrcMzD7Zp0Ivu+Dl5v3625k5mnSkzdFkskC7Sg0YOTgNvwgk4quFR2MEzGxEWVJaJ7mt7owXoMiSM3m7y68fWyG7djpsnr4ja8TDHDorkiR2yVp8uk25WtclVOwQ9k3LxJWumV9QpMIM6UbS2t8HhZ7O/ZhPsEGXjPklZahNNILpFt0M0yV1Ji63pjzv6skbDg0H59YZtsEWc2w0r8Ch/Wxra4TrgC3zFx13dmiLRkJ74sG+bHngIwVXrWtSLNO7uP9u1hihzUscnEnIheKQmHYVlTuV0WqLbK8RB3i5R7i+RfWzkno+tMk/WNG41/6tMgKMuGy9PHXD9EtPHL5a1ldp/tqktZ5NL3iMCglSB+RAb27+ruEHGuqMMKyQox/td4u2SRajFFzsPYIEmSqySs6pZGfakoHjpVTgyUksSdn5WU3B+l22/G10QRvEtmx/fKOWbs3avSTvA8moWyNHrAbYc+RkKlM2S8Wm78Qb163lm7quGjJJDu22FHE5mlcijcNUZtlGxAWdaWH8TbemRXIZmJD8n4ebW01FoT2JMlbLlLxAzH9cvAevQ1km+Sw6WlrZVjD7fL+/6wpLiG8G18WmLBCcH/AWgDJibw/+pdAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (42, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAALCAYAAAAjg+5nAAAABmJLR0QA/wD/AP+gvaeTAAAA00lEQVRIid3VvUoDQRSG4Sd/rm0glemttEux6AWktkkTrAUvQrBPaWOvfbrcQMBSCCh6AxYWIZBCi/xYzIqptnJ32LzdYc7A+8GZOVSfLl4wwVlkl1I4xgJbfOEeR1GNSuAEj1gJwT9xi4OYUmVwgWch9BYzDHcbarjODveFQwyQZvUGU1zhrYY52nHcSmWBUROvaEWW+W8SnKKe1WuM8RDNqCAauMGH8Ew3wrpK8y5VlT6e/H1Y77iMalQQibB7v4WgS9yhE1OqSM6F0f0d315e8w9fhSj1evT/NAAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (43, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAACTklEQVRoge3auWsUUQDH8U9iRFGJV+cRUPGIFhYRRCSFhU1IJ2IjNjZ2NjaCdnaihYKIiGIniP+AQrSxETxAQZKIIAHvNPEgnrEYZ3mEZDf7dnbeIPnCD+btws73B2923r5Z5klLR0GfsxR70Y9t2PrvtZwpjGEYTzCE0YLOHU0nBnELkzLJZjKC01hbtngHDuJZhPRMmcQlrClDfjvuFyQ+PRM4gQXtkj8ubqo0m4fYUKR4B86VIB5mDDuKkr9WsnyecfS1WuB8Ivk877E5Vv5YYvk8o+huVr4XXysgn+d6M/IdeFAB6ekZmGuBQxWQnSnPZXf/unTiRQVkZ8vhRgUGKyBZL48aFbhdAclG2RkKh3NqiSYulIQcCAdhgX4sLtcliv3hICywp2SRWPqwKB+EBXrLd4lioWB5ERbYVL5LNBvzg7DAygQisazOD8ICyxKIxFJzDQv8SCASS801LPAlgUgsn/ODsMBYApFYaq5hgeEEIrHUXMMCTxOIxPAGH/JBWOBe+S5RDIWDsMArvCzXJYo79d48Jf1yuV4mZKvmWemRfcemFp0tV+rJ51yugOhM+Y71cynQI7uppRaenotzkc85WQHhMO+wopkCnbhbAfEp/MK+ZuRz1uFtBQqciZHP2S7bJU4lf6EV+Zzd+JRA/ga6iihA9nt5pCTxP7JpU9QT1BrduNlm+Y+y3cG2MiBbzhYp/lP2pHJVu+VzunBEtmPcivg3XJV4R2QXzuIxfmssPS7bgz2K5a2evOgLpRtb1P+rwWvZhTrPf8FfD5l+V+osDOIAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (44, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABJCAMAAACkceCXAAABp1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIAAAAFBQUJCQkKCgoLCwsNDQ0REREaGhodHR0iIiIoKCg5OTlOTk5TU1NVVVV3d3d7e3t/f3+IiIilpaWqqqqrq6u7u7vPz8/U1NTc3Nzh4eHs7Ozu7u7////DaMdAAAAAb3RSTlMAAgQFBgcKCwwPEhUWFxgaHyIlJykuLzM0NTY3ODw+QUNERUhJSktOUVJTVldYW11gY2RlZmhpamtsb3Bxc3R2eHx9foGChIWGiImKjY6PkJOUlZiZm5ydnp+io6Slp6iqq6ytrq+ztLW2u73Izv6Mc+l5AAAAAWJLR0SMbAvSQwAAAhVJREFUWMPNmOtXDWEUxh/UKUrOiZROB4kS6iDdSKHLqTipkGucY5cdlVsd90shJH+09/StmVlrdsvzoefDfJg181vz/mZmr71fPJMTuCVd6JNrOCMPUSsSLRc5hIycxnW5gm65gVMyXRAXqSiZkgbclU4MyDBa5QGOiezZJ5LYNiXNGJc5UJPFeSbuogNSM8GEdbPd1TFxV43udu02P58lA49NlyVRzMRlUcHFeRZbVBmY27PB5wtC3B14salEN959GDUe3PO/Qfn6KejsHy8ui0g47kcut/Aql1u24KbDcd/errh8WArHxXzugnDv88ePBlwpmpk43z/xv7hRpruDFnfuzeZjeLP5emz57oLjw01a3NlxWfQycecs7uy4fD0m4tJsdy1MXIrtjoprZ7tLMHETW9pdo6vHVHdkHHWxxVxc3NVj6mLJn3GGiavhuou4eryV3aW5Pxm5BPRyCxTZXXs47ueX9axYirulXVz87PJmyeJujNnfpdjtYiMTN8JttWEaBF6+c3ltwLV4J8Yg3Or39fyyuIt7cWv2/PY3s9QRz1eiCmObyvaNdyeM47F5JyDCxVF3ecq4uBiOchdL3jSibmkdYT/fBSYsw3aXYuKSbHcjTNiwGxo1jS59hOOqZftVEztmNIk7ehn9ehNn9QlqVfdGVesh2oFRHUKP3sdJndlZpVodeapNuKeXMKjjaJv/BxWywWDbnQzgAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (45, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAbCAMAAADWDFZiAAABPlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAXFxcAAAAAAAAAAAAAAAAgICAZGRkTExMGBgYAAABhYWF5eXlISEgAAAACAgIPDw8QEBAREREVFRUWFhYYGBgZGRkcHBweHh4iIiImJiYsLCwyMjIzMzM1NTU4ODg5OTk7OztDQ0NGRkZISEhLS0tPT09QUFBTU1NUVFRVVVVjY2NmZmZvb295eXl7e3t/f3+GhoaNjY2SkpKTk5OUlJSXl5eZmZmbm5udnZ2lpaWnp6eqqqqtra2xsbGysrKzs7O1tbXAwMDDw8PGxsbHx8fMzMzX19fc3Nzf39/g4ODj4+Pk5OTm5ubp6enq6urr6+vv7+/39/f4+Pj5+fn6+vr8/Pz9/f3+/v7///8W/NWwAAAAHnRSTlMAFBoqLDNASVZYb3qHjpCVo6jM1eLk8fT3/P39/f5rwPUbAAAAAWJLR0RpvGvEtAAAAPNJREFUOMtj4GEAA245XIAFLM/GySAHVSmTiR2IQVRy8Q1dlekhTvae0USo9NMytHO0UbeKIaTSVTMERCXZa0TgVxmkBrPXTTsVr0p9L7gDjTzwqYxUSYerDDDCp9LXHBE8iQpoKqWEwEBUVRcIDKwRKjPkdUBCksJgeRFeBmZWMOCXDgMCN1OEynglkEiYOAdEASMDA7LtcUopcJXeZsi2IwDU7+bOMIVpOv54VYYrh0JdaWuSiVdlZoCKSzKQirLUSyCgMjPcRMHYQlfRISmTkMrMzNhAn+Bk9LSEVSXW9DloVMq6YwcS6CrZBXEAASaoCgAbT+ih0Sd8dQAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (46, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAALCAYAAADP9otxAAAABmJLR0QA/wD/AP+gvaeTAAABUklEQVRIid3TP0vDQBjH8d+JPZtqjkvoUl+CFDNkEPoK3EQ6O7jY0aGDg0OWvAOhFFz6BjraRdC1BCJSCg4uZigI0lJireRC+jj4Z6rdkkA/490zfJ+DA9abxjm/kFIGnPNI07SZYRg3AOy8w7JgCiGe6vX6zPd9mkwmNBqNqNPpLEzTfC+VSmd5B6ZKSnnfbDYjWiIIApJSfgA4yLszLfvlcnkWRUv3JyKidru9kFLe5h2alvNGo/H57/ZENB6PiXM+38i7NCXbhmEUVg0IIZAkCV/XB3j2PG++amAwGEDX9ddNACcAdrPpysxWv9/nw+EQ1Wp16YDrunOl1DUDcAlAzzQvA4yxvUqlctjr9QqWZf2dK6XgOE7carVewjC0WI6NqSsWi6eMsatarZbYtr0ThqHqdrtJHMeP0+n0GMDbWj/ADwHgCN/fPAFwB+Dh9/ILDCays+jcv9EAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (47, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFMAAAAdBAMAAAAkzk0vAAAAMFBMVEU5OTk5OTk6Ojo3Nzc5OTkLCws4ODgAAAABAQECAgIGBgYMDAw3Nzfz8/P5+fn////Sr5mlAAAAB3RSTlPv8vLz9vj+adiFDAAAAAFiS0dEDxi6ANkAAAAzSURBVDjLYygnFhQw1P9HAq+QOX/3I/P+M4wqHVU6qnRUKY2UFikhAYkUJI7yHCdkuQAAIOpSoQ3mN0oAAAAASUVORK5CYII='); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('bac_degraisseur', 5); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('brise_jet', 6); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('chasse_a_auget', 7); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('cours_deau', 8); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_3_branches', 9); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_4_branches', 10); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_5_branches', 11); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_6_branches', 12); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_drain_epi', 13); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_drain_patte_oie', 14); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_drain_simple', 15); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_pente_3_branches', 16); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_pente_4_branches', 17); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_pente_5_branches', 18); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_pente_6_branches', 19); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epurateur_prefiltre', 20); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('filtre_compact_bi_cuve', 21); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('filtre_compact_mono_cuve', 22); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('filtre_vertical_draine', 23); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('filtre_vertical_non_draine', 24); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_buse', 25); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_etanche', 26); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_ouverte', 27); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_plante', 28); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_septique', 29); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_toutes_eaux', 30); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('microstation_bi_cuve', 31); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('microstation_mono_cuve', 32); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('phyto_epu_agree', 33); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('phyto_epu_non_reglementaire', 34); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('poste_relevage', 35); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('puits', 36); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('puits_infiltration', 37); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('puits_perdu', 38); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('regard_divers', 39); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('rejet_exutoire', 40); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('resurgence', 41); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('sens_pente', 42); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('te_regard_collecte', 43); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('tertre_infiltration', 44); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('vanne_alim_bi_direction', 45); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('ventilation', 46); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('zone_compost', 47); + SELECT pg_catalog.setval('s_vitis.feature_style_feature_style_id_seq', 48, false); + + -- Frédéric le 26/09/2017 09:25 + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_inf_perm character varying(50); + DROP VIEW s_anc.v_evacuation_eaux; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_geotex; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_rac; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_hum; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_reg_rep; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_reb_bcl; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_veg; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_acc_reg; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_rp_etude_hydrogeol; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_rp_rejet; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_rp_grav; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_rp_tamp; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_rp_trap; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_hs_gestionnaire_auth; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_hs_intr; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_hs_ecoul; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_geotex boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_rac boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_hum boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_reg_rep boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_reb_bcl boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_veg boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_acc_reg boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_etude_hydrogeol boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_rejet boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_grav boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_tamp boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_trap boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_hs_gestionnaire_auth boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_hs_intr boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_hs_ecoul boolean; + ALTER TABLE s_anc.evacuation_eaux ALTER COLUMN evac_is_lin_total TYPE character varying(50); + + CREATE OR REPLACE VIEW s_anc.v_evacuation_eaux AS SELECT evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,evacuation_eaux.evac_rp_bons_grav,evacuation_eaux.evac_is_inf_perm FROM s_anc.evacuation_eaux LEFT JOIN s_anc.controle ON evacuation_eaux.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_evacuation_eaux OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_admin; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_user; + CREATE OR REPLACE RULE insert_v_evacuation_eaux AS ON INSERT TO s_anc.v_evacuation_eaux DO INSTEAD INSERT INTO s_anc.evacuation_eaux (id_eva,id_controle,evac_type,evac_is_nb,evac_is_long,evac_is_larg,evac_is_lin_total,evac_is_surface,evac_is_profondeur,evac_is_geotex,evac_is_rac,evac_is_hum,evac_is_reg_rep,evac_is_reb_bcl,evac_is_veg,evac_is_type_effl,evac_is_acc_reg,evac_rp_type,evac_rp_etude_hydrogeol,evac_rp_rejet,evac_rp_grav,evac_rp_tamp,evac_rp_type_eff,evac_rp_trap,evac_hs_type,evac_hs_gestionnaire,evac_hs_gestionnaire_auth,evac_hs_intr,evac_hs_type_eff,evac_hs_ecoul,evac_hs_etat,evac_commentaires,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f,evac_rp_bons_grav,evac_is_inf_perm) VALUES (new.id_eva,new.id_controle,new.evac_type,new.evac_is_nb,new.evac_is_long,new.evac_is_larg,new.evac_is_lin_total,new.evac_is_surface,new.evac_is_profondeur,new.evac_is_geotex,new.evac_is_rac,new.evac_is_hum,new.evac_is_reg_rep,new.evac_is_reb_bcl,new.evac_is_veg,new.evac_is_type_effl,new.evac_is_acc_reg,new.evac_rp_type,new.evac_rp_etude_hydrogeol,new.evac_rp_rejet,new.evac_rp_grav,new.evac_rp_tamp,new.evac_rp_type_eff,new.evac_rp_trap,new.evac_hs_type,new.evac_hs_gestionnaire,new.evac_hs_gestionnaire_auth,new.evac_hs_intr,new.evac_hs_type_eff,new.evac_hs_ecoul,new.evac_hs_etat,new.evac_commentaires,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f,new.evac_rp_bons_grav,new.evac_is_inf_perm) RETURNING evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier,evacuation_eaux.evac_rp_bons_grav,evacuation_eaux.evac_is_inf_perm; + CREATE OR REPLACE RULE update_v_evacuation_eaux AS ON UPDATE TO s_anc.v_evacuation_eaux DO INSTEAD UPDATE s_anc.evacuation_eaux SET id_eva = new.id_eva,id_controle = new.id_controle,evac_type = new.evac_type,evac_is_nb = new.evac_is_nb,evac_is_long = new.evac_is_long,evac_is_larg = new.evac_is_larg,evac_is_lin_total = new.evac_is_lin_total,evac_is_surface = new.evac_is_surface,evac_is_profondeur = new.evac_is_profondeur,evac_is_geotex = new.evac_is_geotex,evac_is_rac = new.evac_is_rac,evac_is_hum = new.evac_is_hum,evac_is_reg_rep = new.evac_is_reg_rep,evac_is_reb_bcl = new.evac_is_reb_bcl,evac_is_veg = new.evac_is_veg,evac_is_type_effl = new.evac_is_type_effl,evac_is_acc_reg = new.evac_is_acc_reg,evac_rp_type = new.evac_rp_type,evac_rp_etude_hydrogeol = new.evac_rp_etude_hydrogeol,evac_rp_rejet = new.evac_rp_rejet,evac_rp_grav = new.evac_rp_grav,evac_rp_tamp = new.evac_rp_tamp,evac_rp_type_eff = new.evac_rp_type_eff,evac_rp_trap = new.evac_rp_trap,evac_hs_type = new.evac_hs_type,evac_hs_gestionnaire = new.evac_hs_gestionnaire,evac_hs_gestionnaire_auth = new.evac_hs_gestionnaire_auth,evac_hs_intr = new.evac_hs_intr,evac_hs_type_eff = new.evac_hs_type_eff,evac_hs_ecoul = new.evac_hs_ecoul,evac_hs_etat = new.evac_hs_etat,evac_commentaires = new.evac_commentaires,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f,evac_rp_bons_grav = new.evac_rp_bons_grav,evac_is_inf_perm = new.evac_is_inf_perm WHERE evacuation_eaux.id_eva = new.id_eva; + CREATE OR REPLACE RULE delete_v_evacuation_eaux AS ON DELETE TO s_anc.v_evacuation_eaux DO INSTEAD DELETE FROM s_anc.evacuation_eaux WHERE evacuation_eaux.id_eva = old.id_eva; + ALTER TABLE s_anc.evacuation_eaux_id_eva_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_user; + + -- Frédéric le 26/09/2017 11:24 + DROP VIEW s_anc.v_filieres_agrees; + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_surpr_elec TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_num_ag TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_cap_eh TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_nb_cuv TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_num TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_num_filt TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_en_bord TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_en_perc TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_surpr_dist TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_fvl_prof TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_fhz_long TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_fhz_prof TYPE character varying(30); + + CREATE OR REPLACE VIEW s_anc.v_filieres_agrees AS SELECT filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, filieres_agrees.fag_commentaires FROM s_anc.filieres_agrees LEFT JOIN s_anc.controle ON filieres_agrees.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_filieres_agrees OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_admin; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_user; + CREATE OR REPLACE RULE insert_v_filieres_agrees AS ON INSERT TO s_anc.v_filieres_agrees DO INSTEAD INSERT INTO s_anc.filieres_agrees(id_fag,id_controle,fag_type,fag_agree,fag_integerer,fag_type_fil,fag_denom,fag_fab,fag_num_ag,fag_cap_eh,fag_nb_cuv,fag_num,fag_num_filt,fag_mat_cuv,fag_guide,fag_livret,fag_contr,fag_soc,fag_pres,fag_plan,fag_tamp,fag_ancrage,fag_rep,fag_respect,fag_ventil,fag_mil_typ,fag_mil_filt,fag_mise_eau,fag_pres_alar,fag_pres_reg,fag_att_conf,fag_surpr,fag_surpr_ref,fag_surpr_dist,fag_surpr_elec,fag_surpr_aer,fag_reac_bull,fag_broy,fag_dec,fag_type_eau,fag_reg_mar,fag_reg_mat,fag_reg_affl,fag_reg_hz,fag_reg_van,fag_fvl_nb,fag_fvl_long,fag_fvl_larg,fag_fvl_prof,fag_fvl_sep,fag_fvl_pla,fag_fvl_drain,fag_fvl_resp,fag_fhz_long,fag_fhz_larg,fag_fhz_prof,fag_fhz_drain,fag_fhz_resp,fag_mat_qual,fag_mat_epa,fag_pres_veg,fag_pres_pro,fag_acces,fag_et_deg,fag_et_od,fag_et_dy,fag_en_date,fag_en_jus,fag_en_entr,fag_en_bord,fag_en_dest,fag_en_perc,fag_en_contr,fag_en_mainteger,fag_dist_arb,fag_dist_parc,fag_dist_hab,fag_dist_cap,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f,fag_commentaires) VALUES (new.id_fag,new.id_controle,new.fag_type,new.fag_agree,new.fag_integerer,new.fag_type_fil,new.fag_denom,new.fag_fab,new.fag_num_ag,new.fag_cap_eh,new.fag_nb_cuv,new.fag_num,new.fag_num_filt,new.fag_mat_cuv,new.fag_guide,new.fag_livret,new.fag_contr,new.fag_soc,new.fag_pres,new.fag_plan,new.fag_tamp,new.fag_ancrage,new.fag_rep,new.fag_respect,new.fag_ventil,new.fag_mil_typ,new.fag_mil_filt,new.fag_mise_eau,new.fag_pres_alar,new.fag_pres_reg,new.fag_att_conf,new.fag_surpr,new.fag_surpr_ref,new.fag_surpr_dist,new.fag_surpr_elec,new.fag_surpr_aer,new.fag_reac_bull,new.fag_broy,new.fag_dec,new.fag_type_eau,new.fag_reg_mar,new.fag_reg_mat,new.fag_reg_affl,new.fag_reg_hz,new.fag_reg_van,new.fag_fvl_nb,new.fag_fvl_long,new.fag_fvl_larg,new.fag_fvl_prof,new.fag_fvl_sep,new.fag_fvl_pla,new.fag_fvl_drain,new.fag_fvl_resp,new.fag_fhz_long,new.fag_fhz_larg,new.fag_fhz_prof,new.fag_fhz_drain,new.fag_fhz_resp,new.fag_mat_qual,new.fag_mat_epa,new.fag_pres_veg,new.fag_pres_pro,new.fag_acces,new.fag_et_deg,new.fag_et_od,new.fag_et_dy,new.fag_en_date,new.fag_en_jus,new.fag_en_entr,new.fag_en_bord,new.fag_en_dest,new.fag_en_perc,new.fag_en_contr,new.fag_en_mainteger,new.fag_dist_arb,new.fag_dist_parc,new.fag_dist_hab,new.fag_dist_cap,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f,new.fag_commentaires) RETURNING filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier,filieres_agrees.fag_commentaires; + CREATE OR REPLACE RULE update_v_filieres_agrees AS ON UPDATE TO s_anc.v_filieres_agrees DO INSTEAD UPDATE s_anc.filieres_agrees SET id_fag = new.id_fag,id_controle = new.id_controle,fag_type = new.fag_type,fag_agree = new.fag_agree,fag_integerer = new.fag_integerer,fag_type_fil = new.fag_type_fil,fag_denom = new.fag_denom ,fag_fab = new.fag_fab,fag_num_ag = new.fag_num_ag,fag_cap_eh = new.fag_cap_eh,fag_nb_cuv = new.fag_nb_cuv,fag_num = new.fag_num,fag_num_filt = new.fag_num_filt,fag_mat_cuv = new.fag_mat_cuv,fag_guide = new.fag_guide,fag_livret = new.fag_livret,fag_contr = new.fag_contr,fag_soc = new.fag_soc,fag_pres = new.fag_pres,fag_plan = new.fag_plan,fag_tamp = new.fag_tamp,fag_ancrage = new.fag_ancrage,fag_rep = new.fag_rep,fag_respect = new.fag_respect,fag_ventil = new.fag_ventil,fag_mil_typ = new.fag_mil_typ,fag_mil_filt = new.fag_mil_filt,fag_mise_eau = new.fag_mise_eau,fag_pres_alar = new.fag_pres_alar,fag_pres_reg = new.fag_pres_reg,fag_att_conf = new.fag_att_conf,fag_surpr = new.fag_surpr,fag_surpr_ref = new.fag_surpr_ref,fag_surpr_dist = new.fag_surpr_dist,fag_surpr_elec = new.fag_surpr_elec,fag_surpr_aer = new.fag_surpr_aer,fag_reac_bull = new.fag_reac_bull,fag_broy = new.fag_broy,fag_dec = new.fag_dec,fag_type_eau = new.fag_type_eau,fag_reg_mar = new.fag_reg_mar,fag_reg_mat = new.fag_reg_mat,fag_reg_affl = new.fag_reg_affl,fag_reg_hz = new.fag_reg_hz,fag_reg_van = new.fag_reg_van,fag_fvl_nb = new.fag_fvl_nb,fag_fvl_long = new.fag_fvl_long,fag_fvl_larg = new.fag_fvl_larg,fag_fvl_prof = new.fag_fvl_prof,fag_fvl_sep = new.fag_fvl_sep,fag_fvl_pla = new.fag_fvl_pla,fag_fvl_drain = new.fag_fvl_drain,fag_fvl_resp = new.fag_fvl_resp,fag_fhz_long = new.fag_fhz_long,fag_fhz_larg = new.fag_fhz_larg,fag_fhz_prof = new.fag_fhz_prof,fag_fhz_drain = new.fag_fhz_drain,fag_fhz_resp = new.fag_fhz_resp,fag_mat_qual = new.fag_mat_qual,fag_mat_epa = new.fag_mat_epa,fag_pres_veg = new.fag_pres_veg,fag_pres_pro = new.fag_pres_pro,fag_acces = new.fag_acces,fag_et_deg = new.fag_et_deg,fag_et_od = new.fag_et_od,fag_et_dy = new.fag_et_dy,fag_en_date = new.fag_en_date,fag_en_jus = new.fag_en_jus,fag_en_entr = new.fag_en_entr,fag_en_bord = new.fag_en_bord,fag_en_dest = new.fag_en_dest,fag_en_perc = new.fag_en_perc,fag_en_contr = new.fag_en_contr,fag_en_mainteger = new.fag_en_mainteger,fag_dist_arb = new.fag_dist_arb,fag_dist_parc = new.fag_dist_parc,fag_dist_hab = new.fag_dist_hab,fag_dist_cap = new.fag_dist_cap,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f,fag_commentaires = new.fag_commentaires WHERE filieres_agrees.id_fag = new.id_fag; + CREATE OR REPLACE RULE delete_v_filieres_agrees AS ON DELETE TO s_anc.v_filieres_agrees DO INSTEAD DELETE FROM s_anc.filieres_agrees WHERE filieres_agrees.id_fag = old.id_fag; + + -- Frédéric le 26/09/2017 11:38 + UPDATE s_anc.param_liste SET alias = 'PVC' WHERE alias = 'Pvc'; + + -- Frédéric le 26/09/2017 12:12 + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_84', 'anc_85'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_85', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_84', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + + -- Frédéric le 26/09/2017 12:19 + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_21', 'anc_22'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_22', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_21', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + + -- Frédéric le 26/09/2017 12:24 + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_92', 'anc_93'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_93', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_92', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + + -- Frédéric le 26/09/2017 12:27 + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_17', 'anc_18'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_18', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_17', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + + -- Frédéric le 26/09/2017 14:04 + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_76', 'anc_77'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_77', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_76', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + + -- Frédéric le 26/09/2017 14:19 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_86'; + UPDATE s_vitis.vm_translation SET translation = 'Id contrôle' WHERE translation_id = 'anc_87'; + UPDATE s_vitis.vm_translation SET translation = 'Type d''évacuation' WHERE translation_id = 'anc_88'; + UPDATE s_vitis.vm_translation SET translation = 'Auteur' WHERE translation_id = 'anc_89'; + + -- Frédéric le 26/09/2017 14:33 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_101'; + UPDATE s_vitis.vm_translation SET translation = 'Id contrôle' WHERE translation_id = 'anc_102'; + UPDATE s_vitis.vm_translation SET translation = 'Type de filière' WHERE translation_id = 'anc_103'; + UPDATE s_vitis.vm_translation SET translation = 'Installation' WHERE translation_id = 'anc_104'; + UPDATE s_vitis.vm_table_field SET width = 250 WHERE label_id = 'anc_103'; + + -- Frédéric le 26/09/2017 14:40 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_97'; + UPDATE s_vitis.vm_translation SET translation = 'Id contrôle' WHERE translation_id = 'anc_98'; + UPDATE s_vitis.vm_translation SET translation = 'Type de traitement' WHERE translation_id = 'anc_99'; + UPDATE s_vitis.vm_translation SET translation = 'Installation' WHERE translation_id = 'anc_100'; + UPDATE s_vitis.vm_table_field SET width = 250 WHERE label_id = 'anc_99'; + + -- Frédéric le 26/09/2017 14:54 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_67'; + UPDATE s_vitis.vm_translation SET translation = 'Id installation' WHERE translation_id = 'anc_68'; + UPDATE s_vitis.vm_translation SET translation = 'Type de contrôle' WHERE translation_id = 'anc_69'; + UPDATE s_vitis.vm_translation SET translation = 'Mise à jour' WHERE translation_id = 'anc_70'; + UPDATE s_vitis.vm_translation SET translation = 'Date de mise à jour' WHERE translation_id = 'anc_71'; + UPDATE s_vitis.vm_translation SET translation = 'Auteur' WHERE translation_id = 'anc_72'; + UPDATE s_vitis.vm_translation SET translation = 'Date de création' WHERE translation_id = 'anc_73'; + UPDATE s_vitis.vm_table_field SET width = 120 WHERE label_id = 'anc_71'; + UPDATE s_vitis.vm_table_field SET width = 100 WHERE label_id = 'anc_73'; + + -- Frédéric le 26/09/2017 15:06 + UPDATE s_anc.param_liste SET alias = 'Tranchées d''épandage' WHERE alias = 'Tranchées D''Epandage'; + + -- Frédéric le 27/09/2017 09:37 + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_rp_type_eff'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_type_eff', 'FECES SEULE', 'Fèces seule'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_type_eff', 'FECES URINE', 'Fèces urine'); + + -- Frédéric le 27/09/2017 09:37 + UPDATE s_vitis.vm_table_field SET template = '<div data-app-format-date-column="{{row.entity[col.field]}}" data-format="DD/MM/YYYY"></div>' WHERE label_id IN('anc_54', 'anc_71', 'anc_73'); + + -- Frédéric le 27/09/2017 11:33 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_27'; + UPDATE s_vitis.vm_translation SET translation = 'Nom de la table' WHERE translation_id = 'anc_28'; + UPDATE s_vitis.vm_translation SET translation = 'Nom de la liste' WHERE translation_id = 'anc_29'; + UPDATE s_vitis.vm_translation SET translation = 'Valeur' WHERE translation_id = 'anc_30'; + UPDATE s_vitis.vm_translation SET translation = 'Alias' WHERE translation_id = 'anc_31'; + UPDATE s_vitis.vm_table_field SET width = 50 WHERE label_id = 'anc_27'; + + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_36'; + UPDATE s_vitis.vm_translation SET translation = 'Commune' WHERE translation_id = 'anc_37'; + UPDATE s_vitis.vm_translation SET translation = 'Type de contrôle' WHERE translation_id = 'anc_38'; + UPDATE s_vitis.vm_translation SET translation = 'Montant' WHERE translation_id = 'anc_39'; + UPDATE s_vitis.vm_translation SET translation = 'Année de validité' WHERE translation_id = 'anc_40'; + UPDATE s_vitis.vm_translation SET translation = 'Devise' WHERE translation_id = 'anc_41'; + UPDATE s_vitis.vm_table_field SET width = 50 WHERE label_id = 'anc_36'; + UPDATE s_vitis.vm_table_field SET width = 100 WHERE label_id = 'anc_37'; + UPDATE s_vitis.vm_table_field SET width = 110 WHERE label_id = 'anc_40'; + UPDATE s_vitis.vm_table_field SET width = 100 WHERE label_id = 'anc_38'; + + UPDATE s_vitis.vm_table_field SET width = 90 WHERE label_id = 'anc_54'; + UPDATE s_vitis.vm_table_field SET width = 100 WHERE label_id = 'anc_48'; + UPDATE s_vitis.vm_table_field SET template = '<div data-app-admin-description-column="{{row.entity[col.field]}}"></div>' WHERE label_id = 'anc_52'; + UPDATE s_vitis.vm_table_field SET template = '<div data-app-admin-signature-column="{{row.entity[col.field]}}"></div>' WHERE label_id = 'anc_56'; + + UPDATE s_vitis.vm_translation SET translation = 'Commune' WHERE translation_id = 'anc_62'; + UPDATE s_vitis.vm_table_field SET width = 100 WHERE label_id = 'anc_62'; + UPDATE s_vitis.vm_table_field SET width = 70 WHERE label_id = 'anc_121'; + + + -- Armand 27/09/2017 18:55 + UPDATE s_vitis.vm_translation SET translation='Administrateur' WHERE translation_id='anc_42'; + UPDATE s_vitis.vm_translation SET translation='Liste' WHERE translation_id='anc_23'; + UPDATE s_vitis.vm_translation SET translation='Supprimer les administrateurs' WHERE translation_id='anc_44'; + UPDATE s_vitis.vm_translation SET translation='Supprimer les administrateurs' WHERE translation_id='anc_44'; + UPDATE s_vitis.vm_translation SET translation='Ajouter un administrateur' WHERE translation_id='anc_45'; + UPDATE s_vitis.vm_translation SET translation='Ajouter un administrateur' WHERE translation_id='anc_45'; + + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_25', 'anc_26'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_26', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_25', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_34', 'anc_35'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_35', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_34', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_44', 'anc_45'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_45', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_44', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_59', 'anc_60'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_60', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_59', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + + -- Armand 28/09/2017 09:22 + UPDATE s_anc.param_liste SET alias='Béton' WHERE alias='Beton'; + UPDATE s_anc.param_liste SET alias='Ecorce de pins' WHERE alias='Ecorce de Pins'; + UPDATE s_anc.param_liste SET alias='Eaux ménagères' WHERE alias='Eaux Menageres'; + UPDATE s_anc.param_liste SET alias='Eaux vannes' WHERE alias='Eaux Vannes'; + UPDATE s_anc.param_liste SET alias='Non renseigné' WHERE alias='Non Renseigne'; + UPDATE s_anc.param_liste SET alias='Em pré-traitées' WHERE alias='Em Pretraitees'; + UPDATE s_anc.param_liste SET alias='Ev pré-traitées' WHERE alias='Ev Pretraitees'; + UPDATE s_anc.param_liste SET alias='Eu pré-traitées' WHERE alias='Eu Pretraitees'; + UPDATE s_anc.param_liste SET alias='Em traitées' WHERE alias='Em Traitees'; + UPDATE s_anc.param_liste SET alias='Ev traitées' WHERE alias='Ev Traitees'; + UPDATE s_anc.param_liste SET alias='Eu traitées' WHERE alias='Eu Traitees'; + + -- Frédéric le 28/09/2017 11:40 + DROP VIEW s_anc.v_controle; + ALTER TABLE s_anc.controle DROP COLUMN des_agent_control; + ALTER TABLE s_anc.controle ADD COLUMN des_agent_control integer; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux,new.vt_commentaire,new.tra_vm_geomembrane,new.emplacement_vt_secondaire) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux,controle.vt_commentaire,controle.tra_vm_geomembrane,controle.emplacement_vt_secondaire; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux,vt_commentaire = new.vt_commentaire,tra_vm_geomembrane = new.tra_vm_geomembrane,emplacement_vt_secondaire = new.emplacement_vt_secondaire WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2017.01.01</version> + <code> + <![CDATA[ + -- Armand 17/10/2017 Ajout des champs taille et rotation + ALTER TABLE s_anc.composant ADD COLUMN size character varying(50); + ALTER TABLE s_anc.composant ADD COLUMN rotation character varying(50); + UPDATE s_anc.composant SET "size"=20; + UPDATE s_anc.composant SET "rotation"=0; + ALTER TABLE s_vitis.feature_style ADD COLUMN draw_rotation character varying(50); + DROP VIEW s_anc.v_composant_type_feature_style; + CREATE OR REPLACE VIEW s_anc.v_composant_type_feature_style AS SELECT s_anc.composant_type_feature_style.composant_type, s_anc.composant_type_feature_style.feature_style_id, s_vitis.feature_style.draw_color, s_vitis.feature_style.draw_outline_color, s_vitis.feature_style.draw_size, s_vitis.feature_style.draw_dash, s_vitis.feature_style.draw_symbol, s_vitis.feature_style.draw_rotation, s_vitis.feature_style.text_font, s_vitis.feature_style.text_color, s_vitis.feature_style.text_outline_color, s_vitis.feature_style.text_size, s_vitis.feature_style.text_outline_size, s_vitis.feature_style.text_offset_x, s_vitis.feature_style.text_offset_y, s_vitis.feature_style.text_rotation, s_vitis.feature_style.text_text, s_vitis.feature_style.feature_type, s_vitis.feature_style.image FROM s_anc.composant_type_feature_style LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id; + ALTER TABLE s_anc.v_composant_type_feature_style OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_user; + DROP VIEW s_anc.v_composant; + CREATE OR REPLACE VIEW s_anc.v_composant AS SELECT s_anc.installation.id_installation, s_anc.controle.id_controle, s_anc.composant.id_composant, s_anc.composant.composant_type, s_anc.composant.label, s_anc.composant.observations, s_anc.composant.size, s_anc.composant.rotation, s_anc.composant.geom, s_anc.composant_type_feature_style.feature_style_id, (SELECT get_composant_value AS draw_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_outline_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_dash FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_dash AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_symbol FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_symbol AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_rotation FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_rotation AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_font FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_font AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_outline_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_offset_x FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_x AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_offset_y FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_y AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_rotation FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_rotation AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_text FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_text AS text), s_anc.composant.id_composant)), s_vitis.feature_style.feature_type, (SELECT get_composant_value AS image FROM s_anc.get_composant_value(cast(s_vitis.feature_style.image AS text), s_anc.composant.id_composant)) FROM s_anc.composant LEFT JOIN s_anc.controle ON composant.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation LEFT JOIN s_anc.composant_type_feature_style ON s_anc.composant.composant_type = s_anc.composant_type_feature_style.composant_type LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id WHERE installation.id_com :: text ~ Similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login :: name = "current_user"()), NULL :: text); + CREATE OR REPLACE RULE delete_v_composant AS ON DELETE TO s_anc.v_composant DO INSTEAD DELETE FROM s_anc.composant WHERE composant.id_composant = old.id_composant; + CREATE OR REPLACE RULE update_v_composant AS ON UPDATE TO s_anc.v_composant DO INSTEAD UPDATE s_anc.composant SET id_controle = new.id_controle, composant_type = new.composant_type, label = new.label, observations = new.observations, SIZE = new.size, rotation = new.rotation, geom = new.geom WHERE composant.id_composant = new.id_composant; + CREATE OR REPLACE RULE insert_v_composant AS ON INSERT TO s_anc.v_composant DO INSTEAD INSERT INTO s_anc.composant(id_controle, composant_type, label, observations, SIZE, rotation, geom) VALUES (new.id_controle, new.composant_type, new.label, new.observations, new.size, new.rotation, new.geom) RETURNING (SELECT id_installation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), id_controle, id_composant, composant_type, label, observations, SIZE, rotation, geom, (SELECT feature_style_id FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_dash FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_symbol FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_rotation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_font FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_x FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_y FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_rotation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_text FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT feature_type FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT image FROM s_anc.v_composant WHERE id_composant = composant.id_composant); + ALTER TABLE s_anc.v_composant OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant TO anc_user; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=5; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=6; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=7; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=8; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=9; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=10; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=11; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=12; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=13; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=14; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=15; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=16; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=17; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=18; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=19; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=20; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=21; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=22; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=23; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=24; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=25; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=26; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=27; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=28; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=29; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=30; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=31; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=32; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=33; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=34; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=35; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=36; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=37; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=38; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=39; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=40; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=41; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=42; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=43; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=44; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=45; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=46; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=47; + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2017.01.02</version> + <code> + <![CDATA[ + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2017.02.00</version> + <code> + <![CDATA[ + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2018.01.00</version> + <code> + <![CDATA[ + -- Armand 02/02/2018 Orthographe #3107 + UPDATE s_vitis.vm_translation SET translation='Prétraitement' WHERE translation='Pretraitement' and lang='fr'; + -- Armand 02/02/2018 liste ptr_marque + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_marque'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_marque', 'STATION D''ÉPURATION', 'Station d''épuration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_marque', 'ÉPANDAGE', 'Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_marque', 'TERRAIN', 'Terrain'); + -- Armand 05/02/2018 Pourvoir selectionner plusieurs types de non conformités dans controle (bon fonctionnement) > conclusion #3119 + DROP VIEW s_anc.v_controle; + DROP VIEW s_anc.v_installation; + ALTER TABLE s_anc.controle ALTER COLUMN cl_classe_cbf TYPE text; + CREATE OR REPLACE VIEW s_anc.v_installation AS SELECT installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,v_commune.nom AS commune,v_vmap_parcelle_all_geom.section,v_vmap_parcelle_all_geom.parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation FROM s_anc.installation LEFT JOIN s_cadastre.v_commune ON installation.id_com::bpchar = v_commune.id_com LEFT JOIN s_cadastre.v_vmap_parcelle_all_geom ON installation.id_parc::bpchar = v_vmap_parcelle_all_geom.id_par WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + CREATE OR REPLACE RULE insert_v_installation AS ON INSERT TO s_anc.v_installation DO INSTEAD INSERT INTO s_anc.installation (id_installation, id_com, id_parc, parc_sup, parc_parcelle_associees, parc_adresse, code_postal, parc_commune, prop_titre, prop_nom_prenom, prop_adresse, prop_code_postal, prop_commune, prop_tel, prop_mail, bati_type, bati_ca_nb_pp, bati_ca_nb_eh, bati_ca_nb_chambres, bati_ca_nb_autres_pieces, bati_ca_nb_occupant, bati_nb_a_control, bati_date_achat, bati_date_mutation, cont_zone_enjeu, cont_zone_sage, cont_zone_autre, cont_zone_urba, cont_zone_anc, cont_alim_eau_potable, cont_puits_usage, cont_puits_declaration, cont_puits_situation, cont_puits_terrain_mitoyen, observations, maj, maj_date, "create", create_date, archivage, geom, photo_f, document_f) VALUES (new.id_installation, new.id_com, new.id_parc, new.parc_sup, new.parc_parcelle_associees, new.parc_adresse, new.code_postal, new.parc_commune, new.prop_titre, new.prop_nom_prenom, new.prop_adresse, new.prop_code_postal, new.prop_commune, new.prop_tel, new.prop_mail, new.bati_type, new.bati_ca_nb_pp, new.bati_ca_nb_eh, new.bati_ca_nb_chambres, new.bati_ca_nb_autres_pieces, new.bati_ca_nb_occupant, new.bati_nb_a_control, new.bati_date_achat, new.bati_date_mutation, new.cont_zone_enjeu, new.cont_zone_sage, new.cont_zone_autre, new.cont_zone_urba, new.cont_zone_anc, new.cont_alim_eau_potable, new.cont_puits_usage, new.cont_puits_declaration, new.cont_puits_situation, new.cont_puits_terrain_mitoyen, new.observations, new.maj, new.maj_date, new."create", new.create_date, new.archivage, new.geom, new.photo_f, new.document_f) RETURNING installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,( SELECT commune.texte AS commune FROM s_cadastre.commune WHERE commune.id_com = installation.id_com::bpchar) AS commune,( SELECT parcelle.section FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS section,( SELECT parcelle.parcelle FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation; + CREATE OR REPLACE RULE delete_v_installation AS ON DELETE TO s_anc.v_installation DO INSTEAD DELETE FROM s_anc.installation WHERE installation.id_installation = old.id_installation; + CREATE OR REPLACE RULE update_v_installation AS ON UPDATE TO s_anc.v_installation DO INSTEAD UPDATE s_anc.installation SET id_com = new.id_com, id_parc = new.id_parc, parc_sup = new.parc_sup, parc_parcelle_associees = new.parc_parcelle_associees, parc_adresse = new.parc_adresse, code_postal = new.code_postal, parc_commune = new.parc_commune, prop_titre = new.prop_titre, prop_nom_prenom = new.prop_nom_prenom, prop_adresse = new.prop_adresse, prop_code_postal = new.prop_code_postal, prop_commune = new.prop_commune, prop_tel = new.prop_tel, prop_mail = new.prop_mail, bati_type = new.bati_type, bati_ca_nb_pp = new.bati_ca_nb_pp, bati_ca_nb_eh = new.bati_ca_nb_eh, bati_ca_nb_chambres = new.bati_ca_nb_chambres, bati_ca_nb_autres_pieces = new.bati_ca_nb_autres_pieces, bati_ca_nb_occupant = new.bati_ca_nb_occupant, bati_nb_a_control = new.bati_nb_a_control, bati_date_achat = new.bati_date_achat, bati_date_mutation = new.bati_date_mutation, cont_zone_enjeu = new.cont_zone_enjeu, cont_zone_sage = new.cont_zone_sage, cont_zone_autre = new.cont_zone_autre, cont_zone_urba = new.cont_zone_urba, cont_zone_anc = new.cont_zone_anc, cont_alim_eau_potable = new.cont_alim_eau_potable, cont_puits_usage = new.cont_puits_usage, cont_puits_declaration = new.cont_puits_declaration, cont_puits_situation = new.cont_puits_situation, cont_puits_terrain_mitoyen = new.cont_puits_terrain_mitoyen, observations = new.observations, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, archivage = new.archivage, geom = new.geom, photo_f = new.photo_f, document_f = new.document_f WHERE installation.id_installation = new.id_installation; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux,new.vt_commentaire,new.tra_vm_geomembrane,new.emplacement_vt_secondaire) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux,controle.vt_commentaire,controle.tra_vm_geomembrane,controle.emplacement_vt_secondaire; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux,vt_commentaire = new.vt_commentaire,tra_vm_geomembrane = new.tra_vm_geomembrane,emplacement_vt_secondaire = new.emplacement_vt_secondaire WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + -- Armand 06/02/2018 Optimisation de la vue v_installation #3103 + CREATE OR REPLACE VIEW s_anc.v_installation AS SELECT installation.id_installation, installation.id_com, installation.id_parc, installation.parc_sup, installation.parc_parcelle_associees, installation.parc_adresse, installation.code_postal, installation.parc_commune, installation.prop_titre, installation.prop_nom_prenom, installation.prop_adresse, installation.prop_code_postal, installation.prop_commune, installation.prop_tel, installation.prop_mail, installation.bati_type, installation.bati_ca_nb_pp, installation.bati_ca_nb_eh, installation.bati_ca_nb_chambres, installation.bati_ca_nb_autres_pieces, installation.bati_ca_nb_occupant, installation.bati_nb_a_control, installation.bati_date_achat, installation.bati_date_mutation, installation.cont_zone_enjeu, installation.cont_zone_sage, installation.cont_zone_autre, installation.cont_zone_urba, installation.cont_zone_anc, installation.cont_alim_eau_potable, installation.cont_puits_usage, installation.cont_puits_declaration, installation.cont_puits_situation, installation.cont_puits_terrain_mitoyen, installation.observations, installation.maj, installation.maj_date, installation."create", installation.create_date, installation.archivage, installation.geom, installation.photo_f, installation.document_f, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, v_commune.nom AS commune, v_vmap_parcelle_all_geom.section, v_vmap_parcelle_all_geom.parcelle, count(controle_1.*) AS nb_controle, controle_2.last_date_control, controle_2.cl_avis, controle_3.next_control, controle_4.cl_classe_cbf AS classement_installation FROM s_anc.installation LEFT JOIN s_anc.controle controle_1 ON installation.id_installation = controle_1.id_installation LEFT JOIN (SELECT b.last_date_control, b.id_installation, controle.cl_avis FROM (SELECT max(a.des_date_control) AS last_date_control, a.id_installation FROM (SELECT controle_a.des_date_control, controle_a.id_installation FROM s_anc.controle controle_a WHERE controle_a.des_date_control < now()) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation AND b.last_date_control = controle.des_date_control) controle_2 ON installation.id_installation = controle_2.id_installation LEFT JOIN (SELECT b.next_control, b.id_installation FROM (SELECT min(a.next_control) AS next_control, a.id_installation FROM (SELECT controle_b.id_installation, controle_b.des_date_control + '1 year'::interval * controle_b.des_interval_control::double precision AS next_control FROM s_anc.controle controle_b WHERE controle_b.des_interval_control > 0 AND controle_b.des_date_control + '1 year'::interval * controle_b.des_interval_control::double precision > now()) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation) controle_3 ON installation.id_installation = controle_3.id_installation LEFT JOIN (SELECT controle.cl_classe_cbf, b.id_installation FROM (SELECT max(a.des_date_control) AS last_date_controle, a.id_installation FROM (SELECT controle_c.des_date_control, controle_c.id_installation FROM s_anc.controle controle_c WHERE controle_c.des_date_control < now() AND controle_c.controle_type::text <> 'CONCEPTION'::text) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation AND b.last_date_controle = controle.des_date_control) controle_4 ON installation.id_installation = controle_4.id_installation LEFT JOIN s_cadastre.v_commune ON installation.id_com::bpchar = v_commune.id_com LEFT JOIN s_cadastre.v_vmap_parcelle_all_geom ON installation.id_parc::bpchar = v_vmap_parcelle_all_geom.id_par WHERE installation.id_com::text ~ similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) GROUP BY installation.id_installation, v_commune.nom, v_vmap_parcelle_all_geom.section, v_vmap_parcelle_all_geom.parcelle, controle_2.cl_avis, controle_2.last_date_control, controle_3.next_control, controle_4.cl_classe_cbf; + -- Armand 06/02/2018 ajout des champs vt_prim_type_materiau et vt_second_type_materiau #3117 + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_prim_type_materiau'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_materiau', 'PVC,', 'PVC,'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_materiau', 'Amiante', 'Amiante'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_materiau', 'Fibro ciment', 'Fibro ciment'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_materiau', 'Metal', 'Métal'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_second_type_materiau'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_materiau', 'PVC,', 'PVC,'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_materiau', 'Amiante', 'Amiante'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_materiau', 'Fibro ciment', 'Fibro ciment'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_materiau', 'Metal', 'Métal'); + ALTER TABLE s_anc.controle ADD COLUMN vt_prim_type_materiau character varying(50); + ALTER TABLE s_anc.controle ADD COLUMN vt_second_type_materiau character varying(50); + CREATE OR REPLACE VIEW s_anc.v_controle AS SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f, cl_constat, cl_travaux, vt_commentaire, tra_vm_geomembrane, emplacement_vt_secondaire, vt_prim_type_materiau, vt_second_type_materiau FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire, vt_prim_type_materiau, vt_second_type_materiau) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux, new.vt_commentaire, new.tra_vm_geomembrane, new.emplacement_vt_secondaire, new.vt_prim_type_materiau, new.vt_second_type_materiau) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f, controle.cl_constat, controle.cl_travaux, controle.vt_commentaire, controle.tra_vm_geomembrane, controle.emplacement_vt_secondaire, controle.vt_prim_type_materiau, controle.vt_second_type_materiau; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle, id_installation = new.id_installation, controle_type = new.controle_type, controle_ss_type = new.controle_ss_type, des_date_control = new.des_date_control, des_interval_control = new.des_interval_control, des_pers_control = new.des_pers_control, des_agent_control = new.des_agent_control, des_installateur = new.des_installateur, des_refus_visite = new.des_refus_visite, des_date_installation = new.des_date_installation, des_date_recommande = new.des_date_recommande, des_numero_recommande = new.des_numero_recommande, dep_date_depot = new.dep_date_depot, dep_liste_piece = new.dep_liste_piece, dep_dossier_complet = new.dep_dossier_complet, dep_date_envoi_incomplet = new.dep_date_envoi_incomplet, des_nature_projet = new.des_nature_projet, des_concepteur = new.des_concepteur, des_ancien_disp = new.des_ancien_disp, car_surface_dispo_m2 = new.car_surface_dispo_m2, car_permea = new.car_permea, car_valeur_permea = new.car_valeur_permea, car_hydromorphie = new.car_hydromorphie, car_prof_app = new.car_prof_app, car_nappe_fond = new.car_nappe_fond, car_terrain_innondable = new.car_terrain_innondable, car_roche_sol = new.car_roche_sol, car_dist_hab = new.car_dist_hab, car_dist_lim_par = new.car_dist_lim_par, car_dist_veget = new.car_dist_veget, car_dist_puit = new.car_dist_puit, des_reamenage_terrain = new.des_reamenage_terrain, des_reamenage_immeuble = new.des_reamenage_immeuble, des_real_trvx = new.des_real_trvx, des_anc_ss_accord = new.des_anc_ss_accord, des_collecte_ep = new.des_collecte_ep, des_sep_ep_eu = new.des_sep_ep_eu, des_eu_nb_sortie = new.des_eu_nb_sortie, des_eu_tes_regards = new.des_eu_tes_regards, des_eu_pente_ecoul = new.des_eu_pente_ecoul, des_eu_regars_acces = new.des_eu_regars_acces, des_eu_alteration = new.des_eu_alteration, des_eu_ecoulement = new.des_eu_ecoulement, des_eu_depot_regard = new.des_eu_depot_regard, des_commentaire = new.des_commentaire, ts_conforme = new.ts_conforme, ts_type_effluent = new.ts_type_effluent, ts_capacite_bac = new.ts_capacite_bac, ts_nb_bac = new.ts_nb_bac, ts_coher_taille_util = new.ts_coher_taille_util, ts_aire_etanche = new.ts_aire_etanche, ts_aire_abri = new.ts_aire_abri, ts_ventilation = new.ts_ventilation, ts_cuve_etanche = new.ts_cuve_etanche, ts_val_comp = new.ts_val_comp, ts_ruissel_ep = new.ts_ruissel_ep, ts_absence_nuisance = new.ts_absence_nuisance, ts_respect_regles = new.ts_respect_regles, ts_commentaires = new.ts_commentaires, vt_primaire = new.vt_primaire, vt_secondaire = new.vt_secondaire, vt_prim_loc = new.vt_prim_loc, vt_prim_ht = new.vt_prim_ht, vt_prim_diam = new.vt_prim_diam, vt_prim_type_extract = new.vt_prim_type_extract, vt_second_loc = new.vt_second_loc, vt_second_ht = new.vt_second_ht, vt_second_diam = new.vt_second_diam, vt_second_type_extract = new.vt_second_type_extract, da_chasse_acces = new.da_chasse_acces, da_chasse_auto = new.da_chasse_auto, da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau, da_chasse_ok = new.da_chasse_ok, da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement, da_chasse_degradation = new.da_chasse_degradation, da_chasse_entretien = new.da_chasse_entretien, da_pr_loc_pompe = new.da_pr_loc_pompe, da_pr_acces = new.da_pr_acces, da_pr_nb_pompe = new.da_pr_nb_pompe, da_pr_nat_eau = new.da_pr_nat_eau, da_pr_ventilatio = new.da_pr_ventilatio, da_pr_ok = new.da_pr_ok, da_pr_alarme = new.da_pr_alarme, da_pr_clapet = new.da_pr_clapet, da_pr_etanche = new.da_pr_etanche, da_pr_branchement = new.da_pr_branchement, da_pr_dysfonctionnement = new.da_pr_dysfonctionnement, da_pr_degradation = new.da_pr_degradation, da_pr_entretien = new.da_pr_entretien, da_commentaires = new.da_commentaires, cl_avis = new.cl_avis, cl_classe_cbf = new.cl_classe_cbf, cl_commentaires = new.cl_commentaires, cl_date_avis = new.cl_date_avis, cl_auteur_avis = new.cl_auteur_avis, cl_date_prochain_control = new.cl_date_prochain_control, cl_montant = new.cl_montant, cl_facture = new.cl_facture, cl_facture_le = new.cl_facture_le, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, cloturer = new.cloturer, photos_f = new.photos_f, fiche_f = new.fiche_f, rapport_f = new.rapport_f, schema_f = new.schema_f, documents_f = new.documents_f, plan_f = new.plan_f, cl_constat = new.cl_constat, cl_travaux = new.cl_travaux, vt_commentaire = new.vt_commentaire, tra_vm_geomembrane = new.tra_vm_geomembrane, emplacement_vt_secondaire = new.emplacement_vt_secondaire, vt_prim_type_materiau = new.vt_prim_type_materiau, vt_second_type_materiau = new.vt_second_type_materiau WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + -- Armand 06/02/2018 Liste des contrôles: Afficher le numéro d'installation à la place de l'identifiant #3115 + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section schéma', 'anc_134'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_134','en','n° installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_134','fr','n° installation'); + UPDATE s_vitis.vm_table_field SET name='num_dossier', label_id='anc_134' WHERE tab_id=(SELECT tab_id FROM s_vitis.vm_tab WHERE ressource_id='anc/controles') AND name='id_installation'; + -- Armand 06/02/2018 Liste des contrôles: Mettre en place le lien pour accéder à l'installation correspondante #3116 + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_installation', '1', '1', 10, 90, 'left', 'anc_68', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + UPDATE s_vitis.vm_table_field SET template='<div data-app-linker data-item-data="{{row.entity[col.field]}}" data-mode-id="anc_saisie" data-object="anc_saisie_anc_installation" data-mode="update" data-field-to-select="{{row.entity.id_installation}}" class="ui-grid-cell-contents"></div>' WHERE tab_id=(SELECT tab_id FROM s_vitis.vm_tab WHERE ressource_id='anc/controles') AND name='num_dossier'; + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2018.01.01</version> + <code> + <![CDATA[ + -- Armand 03/04/2018 09:28 Suppression de la contraine not null empéchant la mise à jour des contrôles #3405 + ALTER TABLE s_anc.controle ALTER COLUMN des_interval_control DROP NOT NULL; + ALTER TABLE s_anc.controle ALTER COLUMN des_interval_control SET DEFAULT 0; + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2018.02.00</version> + <code> + <![CDATA[ + -- Armand 25/05/2018 ANC : Filières agréées : rendre le champ dénomination de la filière au format liste + INSERT INTO s_anc.nom_liste(nom_liste, id_nom_table) VALUES ('fag_denom', 'filieres_agrees'); + -- Sofian 28/05/2017 12:11 Modification de la vue v_installation + CREATE OR REPLACE VIEW s_anc.v_installation AS SELECT installation.id_installation, installation.id_com, installation.id_parc, installation.parc_sup, installation.parc_parcelle_associees, installation.parc_adresse, installation.code_postal, installation.parc_commune, installation.prop_titre, installation.prop_nom_prenom, installation.prop_adresse, installation.prop_code_postal, installation.prop_commune, installation.prop_tel, installation.prop_mail, installation.bati_type, installation.bati_ca_nb_pp, installation.bati_ca_nb_eh, installation.bati_ca_nb_chambres, installation.bati_ca_nb_autres_pieces, installation.bati_ca_nb_occupant, installation.bati_nb_a_control, installation.bati_date_achat, installation.bati_date_mutation, installation.cont_zone_enjeu, installation.cont_zone_sage, installation.cont_zone_autre, installation.cont_zone_urba, installation.cont_zone_anc, installation.cont_alim_eau_potable, installation.cont_puits_usage, installation.cont_puits_declaration, installation.cont_puits_situation, installation.cont_puits_terrain_mitoyen, installation.observations, installation.maj, installation.maj_date, installation."create", installation.create_date, installation.archivage, installation.geom, installation.photo_f, installation.document_f, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, v_commune.nom AS commune, v_vmap_parcelle_all_geom.section, v_vmap_parcelle_all_geom.parcelle, count(controle_1.*) AS nb_controle, controle_2.last_date_control, controle_2.cl_avis, controle_3.next_control, controle_4.cl_classe_cbf AS classement_installation FROM s_anc.installation LEFT JOIN s_anc.controle controle_1 ON installation.id_installation = controle_1.id_installation LEFT JOIN (SELECT b.last_date_control, b.id_installation, controle.cl_avis FROM (SELECT max(a.des_date_control) AS last_date_control, a.id_installation FROM (SELECT controle_a.des_date_control, controle_a.id_installation FROM s_anc.controle controle_a WHERE controle_a.des_date_control < now()) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation AND b.last_date_control = controle.des_date_control) controle_2 ON installation.id_installation = controle_2.id_installation LEFT JOIN (SELECT b.next_control, b.id_installation FROM (SELECT min(a.next_control) AS next_control, a.id_installation FROM (SELECT controle_b.id_installation, controle_b.des_date_control + '1 year'::interval * controle_b.des_interval_control::double precision AS next_control FROM s_anc.controle controle_b WHERE controle_b.des_interval_control > 0 AND (controle_b.des_date_control + '1 year'::interval * controle_b.des_interval_control::double precision) > now()) a GROUP BY a.id_installation ORDER BY a.id_installation) b) controle_3 ON installation.id_installation = controle_3.id_installation LEFT JOIN (SELECT controle.cl_classe_cbf, b.id_installation FROM (SELECT max(a.des_date_control) AS last_date_controle, a.id_installation FROM (SELECT controle_c.des_date_control, controle_c.id_installation FROM s_anc.controle controle_c WHERE controle_c.des_date_control < now() AND controle_c.controle_type::text <> 'CONCEPTION'::text) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation AND b.last_date_controle = controle.des_date_control) controle_4 ON installation.id_installation = controle_4.id_installation LEFT JOIN s_cadastre.v_commune ON installation.id_com::bpchar = v_commune.id_com LEFT JOIN s_cadastre.v_vmap_parcelle_all_geom ON installation.id_parc::bpchar = v_vmap_parcelle_all_geom.id_par WHERE installation.id_com::text ~ similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) GROUP BY installation.id_installation, v_commune.nom, v_vmap_parcelle_all_geom.section, v_vmap_parcelle_all_geom.parcelle, controle_2.cl_avis, controle_2.last_date_control, controle_3.next_control, controle_4.cl_classe_cbf; + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2018.03.00</version> + <code> + <![CDATA[ + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2018.03.01</version> + <code> + <![CDATA[ + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2019.01.00</version> + <code> + <![CDATA[ + -- Frédéric le 16/01/2019 10:15 + UPDATE s_vitis.vm_table_field SET name = 'commune', width = 200 WHERE tab_id = (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise') AND name = 'id_com'; + DELETE FROM s_vitis.vm_table_button WHERE tab_id = (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation') AND label_id IN ('anc_13', 'anc_14'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_14', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_13', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + UPDATE s_vitis.vm_tab SET sorted_dir = 'DESC' WHERE name = 'anc_installation'; + -- Armand 16/01/2019 15h01 + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section rapport', 'anc_135'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_135', 'en', 'Reports'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_135', 'fr', 'Rapports'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_135', 'controle_rapport', 12, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + -- Frédéric le 16/01/2019 15:52 + ALTER TABLE s_anc.param_entreprise ADD COLUMN commune character varying(50); + UPDATE s_anc.param_entreprise SET commune = id_com; + UPDATE s_anc.param_entreprise as "pe" SET commune = (SELECT texte FROM s_cadastre.commune WHERE id_com = "pe".id_com) WHERE (SELECT texte FROM s_cadastre.commune WHERE id_com = "pe".id_com) is not null; + ALTER TABLE s_anc.param_entreprise ALTER COLUMN commune SET NOT NULL; + -- Frédéric 17/01/2019 09:20 + DROP RULE insert_v_controle ON s_anc.v_controle; + DROP VIEW s_anc.v_installation; + ALTER TABLE s_anc.installation ALTER COLUMN parc_adresse TYPE character varying(254); + ALTER TABLE s_anc.installation ALTER COLUMN code_postal TYPE character varying(254); + ALTER TABLE s_anc.installation ALTER COLUMN parc_commune TYPE character varying(254); + ALTER TABLE s_anc.installation ALTER COLUMN prop_adresse TYPE character varying(254); + ALTER TABLE s_anc.installation ALTER COLUMN prop_code_postal TYPE character varying(254); + ALTER TABLE s_anc.installation ALTER COLUMN prop_commune TYPE character varying(254); + CREATE OR REPLACE VIEW s_anc.v_installation AS SELECT installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,v_commune.nom AS commune,v_vmap_parcelle_all_geom.section,v_vmap_parcelle_all_geom.parcelle,count(controle_1.*) AS nb_controle,controle_2.last_date_control,controle_2.cl_avis,controle_3.next_control,controle_4.cl_classe_cbf AS classement_installation FROM s_anc.installation LEFT JOIN s_anc.controle controle_1 ON installation.id_installation = controle_1.id_installation LEFT JOIN ( SELECT b.last_date_control, b.id_installation,controle.cl_avis FROM ( SELECT max(a.des_date_control) AS last_date_control,a.id_installation FROM ( SELECT controle_a.des_date_control,controle_a.id_installation FROM s_anc.controle controle_a WHERE controle_a.des_date_control < now()) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation AND b.last_date_control = controle.des_date_control) controle_2 ON installation.id_installation = controle_2.id_installation LEFT JOIN ( SELECT b.next_control,b.id_installation FROM ( SELECT min(a.next_control) AS next_control,a.id_installation FROM ( SELECT controle_b.id_installation,controle_b.des_date_control + '1 year'::interval * controle_b.des_interval_control::double precision AS next_control FROM s_anc.controle controle_b WHERE controle_b.des_interval_control > 0 AND (controle_b.des_date_control + '1 year'::interval * controle_b.des_interval_control::double precision) > now()) a GROUP BY a.id_installation ORDER BY a.id_installation) b) controle_3 ON installation.id_installation = controle_3.id_installation LEFT JOIN ( SELECT controle.cl_classe_cbf,b.id_installation FROM ( SELECT max(a.des_date_control) AS last_date_controle,a.id_installation FROM ( SELECT controle_c.des_date_control,controle_c.id_installation FROM s_anc.controle controle_c WHERE controle_c.des_date_control < now() AND controle_c.controle_type::text <> 'CONCEPTION'::text) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation AND b.last_date_controle = controle.des_date_control) controle_4 ON installation.id_installation = controle_4.id_installation LEFT JOIN s_cadastre.v_commune ON installation.id_com::bpchar = v_commune.id_com LEFT JOIN s_cadastre.v_vmap_parcelle_all_geom ON installation.id_parc::bpchar = v_vmap_parcelle_all_geom.id_par WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) GROUP BY installation.id_installation, v_commune.nom, v_vmap_parcelle_all_geom.section, v_vmap_parcelle_all_geom.parcelle, controle_2.cl_avis, controle_2.last_date_control, controle_3.next_control, controle_4.cl_classe_cbf; + ALTER TABLE s_anc.v_installation OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + CREATE OR REPLACE RULE delete_v_installation AS ON DELETE TO s_anc.v_installation DO INSTEAD DELETE FROM s_anc.installation WHERE installation.id_installation = old.id_installation; + CREATE OR REPLACE RULE insert_v_installation AS ON INSERT TO s_anc.v_installation DO INSTEAD INSERT INTO s_anc.installation (id_installation, id_com, id_parc, parc_sup, parc_parcelle_associees, parc_adresse, code_postal, parc_commune, prop_titre, prop_nom_prenom, prop_adresse, prop_code_postal, prop_commune, prop_tel, prop_mail, bati_type, bati_ca_nb_pp, bati_ca_nb_eh, bati_ca_nb_chambres, bati_ca_nb_autres_pieces, bati_ca_nb_occupant, bati_nb_a_control, bati_date_achat, bati_date_mutation, cont_zone_enjeu, cont_zone_sage, cont_zone_autre, cont_zone_urba, cont_zone_anc, cont_alim_eau_potable, cont_puits_usage, cont_puits_declaration, cont_puits_situation, cont_puits_terrain_mitoyen, observations, maj, maj_date, "create", create_date, archivage, geom, photo_f, document_f) VALUES (new.id_installation, new.id_com, new.id_parc, new.parc_sup, new.parc_parcelle_associees, new.parc_adresse, new.code_postal, new.parc_commune, new.prop_titre, new.prop_nom_prenom, new.prop_adresse, new.prop_code_postal, new.prop_commune, new.prop_tel, new.prop_mail, new.bati_type, new.bati_ca_nb_pp, new.bati_ca_nb_eh, new.bati_ca_nb_chambres, new.bati_ca_nb_autres_pieces, new.bati_ca_nb_occupant, new.bati_nb_a_control, new.bati_date_achat, new.bati_date_mutation, new.cont_zone_enjeu, new.cont_zone_sage, new.cont_zone_autre, new.cont_zone_urba, new.cont_zone_anc, new.cont_alim_eau_potable, new.cont_puits_usage, new.cont_puits_declaration, new.cont_puits_situation, new.cont_puits_terrain_mitoyen, new.observations, new.maj, new.maj_date, new."create", new.create_date, new.archivage, new.geom, new.photo_f, new.document_f) RETURNING installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,( SELECT commune.texte AS commune FROM s_cadastre.commune WHERE commune.id_com = installation.id_com::bpchar) AS commune,( SELECT parcelle.section FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS section,( SELECT parcelle.parcelle FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,( SELECT controle.des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY controle.des_date_control DESC LIMIT 1) AS last_date_control,( SELECT controle.cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY controle.des_date_control DESC LIMIT 1) AS cl_avis,( SELECT controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY controle.des_date_control LIMIT 1) AS next_control,( SELECT controle.cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle.controle_type::text <> 'CONCEPTION'::text ORDER BY controle.des_date_control DESC LIMIT 1) AS classement_installation; + CREATE OR REPLACE RULE update_v_installation AS ON UPDATE TO s_anc.v_installation DO INSTEAD UPDATE s_anc.installation SET id_com = new.id_com, id_parc = new.id_parc, parc_sup = new.parc_sup, parc_parcelle_associees = new.parc_parcelle_associees, parc_adresse = new.parc_adresse, code_postal = new.code_postal, parc_commune = new.parc_commune, prop_titre = new.prop_titre, prop_nom_prenom = new.prop_nom_prenom, prop_adresse = new.prop_adresse, prop_code_postal = new.prop_code_postal, prop_commune = new.prop_commune, prop_tel = new.prop_tel, prop_mail = new.prop_mail, bati_type = new.bati_type, bati_ca_nb_pp = new.bati_ca_nb_pp, bati_ca_nb_eh = new.bati_ca_nb_eh, bati_ca_nb_chambres = new.bati_ca_nb_chambres, bati_ca_nb_autres_pieces = new.bati_ca_nb_autres_pieces, bati_ca_nb_occupant = new.bati_ca_nb_occupant, bati_nb_a_control = new.bati_nb_a_control, bati_date_achat = new.bati_date_achat, bati_date_mutation = new.bati_date_mutation, cont_zone_enjeu = new.cont_zone_enjeu, cont_zone_sage = new.cont_zone_sage, cont_zone_autre = new.cont_zone_autre, cont_zone_urba = new.cont_zone_urba, cont_zone_anc = new.cont_zone_anc, cont_alim_eau_potable = new.cont_alim_eau_potable, cont_puits_usage = new.cont_puits_usage, cont_puits_declaration = new.cont_puits_declaration, cont_puits_situation = new.cont_puits_situation, cont_puits_terrain_mitoyen = new.cont_puits_terrain_mitoyen, observations = new.observations, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, archivage = new.archivage, geom = new.geom, photo_f = new.photo_f, document_f = new.document_f WHERE installation.id_installation = new.id_installation; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f, cl_constat, cl_travaux, vt_commentaire, tra_vm_geomembrane, emplacement_vt_secondaire, vt_prim_type_materiau, vt_second_type_materiau) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux, new.vt_commentaire, new.tra_vm_geomembrane, new.emplacement_vt_secondaire, new.vt_prim_type_materiau, new.vt_second_type_materiau) RETURNING controle.id_controle,controle.id_installation,( SELECT (v_installation.id_com::text || '_anc_'::text) || v_installation.id_installation AS num_dossier FROM s_anc.v_installation WHERE v_installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier,controle.controle_type,controle.controle_ss_type,controle.des_date_control,controle.des_interval_control,controle.des_pers_control,controle.des_agent_control,controle.des_installateur,controle.des_refus_visite,controle.des_date_installation,controle.des_date_recommande,controle.des_numero_recommande,controle.dep_date_depot,controle.dep_liste_piece,controle.dep_dossier_complet,controle.dep_date_envoi_incomplet,controle.des_nature_projet,controle.des_concepteur,controle.des_ancien_disp,controle.car_surface_dispo_m2,controle.car_permea,controle.car_valeur_permea,controle.car_hydromorphie,controle.car_prof_app,controle.car_nappe_fond,controle.car_terrain_innondable,controle.car_roche_sol,controle.car_dist_hab,controle.car_dist_lim_par,controle.car_dist_veget,controle.car_dist_puit,controle.des_reamenage_terrain,controle.des_reamenage_immeuble,controle.des_real_trvx,controle.des_anc_ss_accord,controle.des_collecte_ep,controle.des_sep_ep_eu,controle.des_eu_nb_sortie,controle.des_eu_tes_regards,controle.des_eu_pente_ecoul,controle.des_eu_regars_acces,controle.des_eu_alteration,controle.des_eu_ecoulement,controle.des_eu_depot_regard,controle.des_commentaire,controle.ts_conforme,controle.ts_type_effluent,controle.ts_capacite_bac,controle.ts_nb_bac,controle.ts_coher_taille_util,controle.ts_aire_etanche,controle.ts_aire_abri,controle.ts_ventilation,controle.ts_cuve_etanche,controle.ts_val_comp,controle.ts_ruissel_ep,controle.ts_absence_nuisance,controle.ts_respect_regles,controle.ts_commentaires,controle.vt_primaire,controle.vt_secondaire,controle.vt_prim_loc,controle.vt_prim_ht,controle.vt_prim_diam,controle.vt_prim_type_extract,controle.vt_second_loc,controle.vt_second_ht,controle.vt_second_diam,controle.vt_second_type_extract,controle.da_chasse_acces,controle.da_chasse_auto,controle.da_chasse_pr_nat_eau,controle.da_chasse_ok,controle.da_chasse_dysfonctionnement,controle.da_chasse_degradation,controle.da_chasse_entretien,controle.da_pr_loc_pompe,controle.da_pr_acces,controle.da_pr_nb_pompe,controle.da_pr_nat_eau,controle.da_pr_ventilatio,controle.da_pr_ok,controle.da_pr_alarme,controle.da_pr_clapet,controle.da_pr_etanche,controle.da_pr_branchement,controle.da_pr_dysfonctionnement,controle.da_pr_degradation,controle.da_pr_entretien,controle.da_commentaires,controle.cl_avis,controle.cl_classe_cbf,controle.cl_commentaires,controle.cl_date_avis,controle.cl_auteur_avis,controle.cl_date_prochain_control,controle.cl_montant,controle.cl_facture,controle.cl_facture_le,controle.maj,controle.maj_date,controle."create",controle.create_date,controle.cloturer,controle.photos_f,controle.fiche_f,controle.rapport_f,controle.schema_f,controle.documents_f,controle.plan_f,controle.cl_constat,controle.cl_travaux,controle.vt_commentaire,controle.tra_vm_geomembrane,controle.emplacement_vt_secondaire,controle.vt_prim_type_materiau,controle.vt_second_type_materiau; + -- Frédéric 17/01/2019 12:04 + ALTER TABLE s_anc.traitement ADD COLUMN tra_commentaire text; + DROP VIEW s_anc.v_traitement; + CREATE OR REPLACE VIEW s_anc.v_traitement AS SELECT traitement.id_traitement,traitement.id_controle,traitement.tra_type,traitement.tra_nb,traitement.tra_long,traitement.tra_larg,traitement.tra_tot_lin,traitement.tra_surf,traitement.tra_largeur,traitement.tra_hauteur,traitement.tra_profondeur,traitement.tra_dist_hab,traitement.tra_dist_lim_parc,traitement.tra_dist_veget,traitement.tra_dist_puit,traitement.tra_vm_racine,traitement.tra_vm_humidite,traitement.tra_vm_imper,traitement.tra_vm_geogrille,traitement.tra_vm_grav_qual,traitement.tra_vm_grav_ep,traitement.tra_vm_geo_text,traitement.tra_vm_ht_terre_veget,traitement.tra_vm_tuy_perf,traitement.tra_vm_bon_mat,traitement.tra_vm_sab_ep,traitement.tra_vm_sab_qual,traitement.tra_regrep_mat,traitement.tra_regrep_affl,traitement.tra_regrep_equi,traitement.tra_regrep_perf,traitement.tra_regbl_mat,traitement.tra_regbl_affl,traitement.tra_regbl_hz,traitement.tra_regbl_epand,traitement.tra_regbl_perf,traitement.tra_regcol_mat,traitement.tra_regcol_affl,traitement.tra_regcol_hz,traitement.maj,traitement.maj_date,traitement."create",traitement.create_date,traitement.photos_f,traitement.fiche_f,traitement.schema_f,traitement.documents_f,traitement.plan_f,controle.id_installation,controle.controle_type,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,traitement.tra_longueur,traitement.tra_profond,traitement.tra_commentaire FROM s_anc.traitement LEFT JOIN s_anc.controle ON traitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_traitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_user; + CREATE OR REPLACE RULE delete_v_traitement AS ON DELETE TO s_anc.v_traitement DO INSTEAD DELETE FROM s_anc.traitement WHERE traitement.id_traitement = old.id_traitement; + CREATE OR REPLACE RULE insert_v_traitement AS ON INSERT TO s_anc.v_traitement DO INSTEAD INSERT INTO s_anc.traitement (id_traitement, id_controle, tra_type, tra_nb, tra_long, tra_larg, tra_tot_lin, tra_surf, tra_largeur, tra_hauteur, tra_profondeur, tra_dist_hab, tra_dist_lim_parc, tra_dist_veget, tra_dist_puit, tra_vm_racine, tra_vm_humidite, tra_vm_imper, tra_vm_geogrille, tra_vm_grav_qual, tra_vm_grav_ep, tra_vm_geo_text, tra_vm_ht_terre_veget, tra_vm_tuy_perf, tra_vm_bon_mat, tra_vm_sab_ep, tra_vm_sab_qual, tra_regrep_mat, tra_regrep_affl, tra_regrep_equi, tra_regrep_perf, tra_regbl_mat, tra_regbl_affl, tra_regbl_hz, tra_regbl_epand, tra_regbl_perf, tra_regcol_mat, tra_regcol_affl, tra_regcol_hz, maj, maj_date, "create", create_date, photos_f, fiche_f, schema_f, documents_f, plan_f, tra_longueur, tra_profond, tra_commentaire) VALUES (new.id_traitement, new.id_controle, new.tra_type, new.tra_nb, new.tra_long, new.tra_larg, new.tra_tot_lin, new.tra_surf, new.tra_largeur, new.tra_hauteur, new.tra_profondeur, new.tra_dist_hab, new.tra_dist_lim_parc, new.tra_dist_veget, new.tra_dist_puit, new.tra_vm_racine, new.tra_vm_humidite, new.tra_vm_imper, new.tra_vm_geogrille, new.tra_vm_grav_qual, new.tra_vm_grav_ep, new.tra_vm_geo_text, new.tra_vm_ht_terre_veget, new.tra_vm_tuy_perf, new.tra_vm_bon_mat, new.tra_vm_sab_ep, new.tra_vm_sab_qual, new.tra_regrep_mat, new.tra_regrep_affl, new.tra_regrep_equi, new.tra_regrep_perf, new.tra_regbl_mat, new.tra_regbl_affl, new.tra_regbl_hz, new.tra_regbl_epand, new.tra_regbl_perf, new.tra_regcol_mat, new.tra_regcol_affl, new.tra_regcol_hz, new.maj, new.maj_date, new."create", new.create_date, new.photos_f, new.fiche_f, new.schema_f, new.documents_f, new.plan_f, new.tra_longueur, new.tra_profond, new.tra_commentaire) RETURNING traitement.id_traitement,traitement.id_controle,traitement.tra_type,traitement.tra_nb,traitement.tra_long,traitement.tra_larg,traitement.tra_tot_lin,traitement.tra_surf,traitement.tra_largeur,traitement.tra_hauteur,traitement.tra_profondeur,traitement.tra_dist_hab,traitement.tra_dist_lim_parc,traitement.tra_dist_veget,traitement.tra_dist_puit,traitement.tra_vm_racine,traitement.tra_vm_humidite,traitement.tra_vm_imper,traitement.tra_vm_geogrille,traitement.tra_vm_grav_qual,traitement.tra_vm_grav_ep,traitement.tra_vm_geo_text,traitement.tra_vm_ht_terre_veget,traitement.tra_vm_tuy_perf,traitement.tra_vm_bon_mat,traitement.tra_vm_sab_ep,traitement.tra_vm_sab_qual,traitement.tra_regrep_mat,traitement.tra_regrep_affl,traitement.tra_regrep_equi,traitement.tra_regrep_perf,traitement.tra_regbl_mat,traitement.tra_regbl_affl,traitement.tra_regbl_hz,traitement.tra_regbl_epand,traitement.tra_regbl_perf,traitement.tra_regcol_mat,traitement.tra_regcol_affl,traitement.tra_regcol_hz,traitement.maj,traitement.maj_date,traitement."create",traitement.create_date,traitement.photos_f,traitement.fiche_f,traitement.schema_f,traitement.documents_f,traitement.plan_f, ( SELECT controle.id_installation FROM s_anc.controle WHERE traitement.id_controle = controle.id_controle) AS id_installation, ( SELECT controle.controle_type FROM s_anc.controle WHERE traitement.id_controle = controle.id_controle) AS controle_type, ( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier,traitement.tra_longueur,traitement.tra_profond,traitement.tra_commentaire; + CREATE OR REPLACE RULE update_v_traitement AS ON UPDATE TO s_anc.v_traitement DO INSTEAD UPDATE s_anc.traitement SET id_traitement = new.id_traitement, id_controle = new.id_controle, tra_type = new.tra_type, tra_nb = new.tra_nb, tra_long = new.tra_long, tra_larg = new.tra_larg, tra_tot_lin = new.tra_tot_lin, tra_surf = new.tra_surf, tra_largeur = new.tra_largeur, tra_hauteur = new.tra_hauteur, tra_profondeur = new.tra_profondeur, tra_dist_hab = new.tra_dist_hab, tra_dist_lim_parc = new.tra_dist_lim_parc, tra_dist_veget = new.tra_dist_veget, tra_dist_puit = new.tra_dist_puit, tra_vm_racine = new.tra_vm_racine, tra_vm_humidite = new.tra_vm_humidite, tra_vm_imper = new.tra_vm_imper, tra_vm_geogrille = new.tra_vm_geogrille, tra_vm_grav_qual = new.tra_vm_grav_qual, tra_vm_grav_ep = new.tra_vm_grav_ep, tra_vm_geo_text = new.tra_vm_geo_text, tra_vm_ht_terre_veget = new.tra_vm_ht_terre_veget, tra_vm_tuy_perf = new.tra_vm_tuy_perf, tra_vm_bon_mat = new.tra_vm_bon_mat, tra_vm_sab_ep = new.tra_vm_sab_ep, tra_vm_sab_qual = new.tra_vm_sab_qual, tra_regrep_mat = new.tra_regrep_mat, tra_regrep_affl = new.tra_regrep_affl, tra_regrep_equi = new.tra_regrep_equi, tra_regrep_perf = new.tra_regrep_perf, tra_regbl_mat = new.tra_regbl_mat, tra_regbl_affl = new.tra_regbl_affl, tra_regbl_hz = new.tra_regbl_hz, tra_regbl_epand = new.tra_regbl_epand, tra_regbl_perf = new.tra_regbl_perf, tra_regcol_mat = new.tra_regcol_mat, tra_regcol_affl = new.tra_regcol_affl, tra_regcol_hz = new.tra_regcol_hz, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, photos_f = new.photos_f, fiche_f = new.fiche_f, schema_f = new.schema_f, documents_f = new.documents_f, plan_f = new.plan_f, tra_longueur = new.tra_longueur, tra_profond = new.tra_profond, tra_commentaire = new.tra_commentaire WHERE traitement.id_traitement = new.id_traitement; + -- Armand 04/03/2019 : suppression de la contrainte not null sur s_anc.param_entreprise.id_com + ALTER TABLE s_anc.param_entreprise ALTER COLUMN id_com DROP NOT NULL; + ]]> + </code> + </query> + </queriesCollection> +</sqlQueries> diff --git a/src/module_anc/web_service/ws/Anc.class.inc b/src/module_anc/web_service/ws/Anc.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..b101f7e20a08b8d068f7871356deb92fec1779c8 --- /dev/null +++ b/src/module_anc/web_service/ws/Anc.class.inc @@ -0,0 +1,42 @@ +<?php + +require_once dirname($_SERVER['SCRIPT_FILENAME']) . "/class/vitis_lib/DbClass.class.inc"; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vitis/Vitis.class.inc'; +require_once 'vmlib/logUtil.inc'; + +class Anc extends Vitis { + + //Chemin du fichier de ressources contenant les requêtes SQL + var $sRessourcesFile = 'ws/anc/Anc.class.sql.inc'; + + /** + * DEPRECATED + * Upload un document dans le ws_data du module Anc. + * @param type $sIndex + * @param type $sFolder + */ + function uploadDocument($sIndex, $sFolder) { + // Crée le répertoire si inexistant. + $sDirPath = $this->aProperties['ws_data_dir'] . '/anc/' . $sFolder . '/documents/' . $this->aValues["my_vitis_id"] . '/' . $sIndex . '/'; + if (!is_dir($sDirPath)) + mkdir($sDirPath, 0777, true); + // Ecrit le fichier. + if (!empty($_FILES[$sIndex])) { + $sErrorMessage = uploadFile($sIndex, "", $sDirPath . $_FILES[$sIndex]["name"], $_FILES[$sIndex]['size'] + 1); + if ($sErrorMessage != "") + writeToErrorLog($sErrorMessage); + } + else { + $sfileContentIndex = $sIndex . '_file'; + $sfileNameIndex = $sIndex . '_name'; + if (!empty($this->aValues[$sfileContentIndex])) { + + $this->aValues[$sIndex] = $this->aValues[$sfileNameIndex]; + $fp = fopen($sDirPath . $this->aValues[$sfileNameIndex], "w"); + fwrite($fp, $this->aValues[$sfileContentIndex]); + fclose($fp); + } + } + } +} +?> diff --git a/src/module_anc/web_service/ws/Anc.class.sql.inc b/src/module_anc/web_service/ws/Anc.class.sql.inc new file mode 100755 index 0000000000000000000000000000000000000000..200a536fd956f14f947b54de7504f590a6e72ae1 --- /dev/null +++ b/src/module_anc/web_service/ws/Anc.class.sql.inc @@ -0,0 +1,22 @@ +<?php +//Définition des requêtes de l'api Vitis +$aSql['checkIP'] = "SELECT user_id, ip_constraint FROM [sSchemaFramework].user WHERE login ='[sLogin]'"; +$aSql['getGroups'] = "SELECT group_id FROM [sSchemaFramework].user_group WHERE user_id = [user_id]"; +$aSql['loginUnique'] = 'SELECT UPPER("login") FROM [sSchemaFramework]."user" WHERE UPPER("login")=UPPER(\'sLoginUser\')'; +$aSql['getLoginbyId'] = 'SELECT "login" FROM [sSchemaFramework]."user" WHERE user_id=[user_id]'; +$aSql['getTableColumn'] = 'SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = \'[sSchemaFramework]\' and table_name= \'[sTable]\''; +$aSql['getUserPrivileges'] = 'SELECT groname FROM pg_user s LEFT OUTER JOIN pg_group g on (s.usesysid = any(g.grolist) )inner join [sSchemaFramework].user on "user".login = usename WHERE user_id = [user_id]'; +$aSql['listDomain'] = 'SELECT distinct domain, alias FROM [sSchemaFramework].domain WHERE "type" = \'AD\''; +$aSql['createRolname'] = 'CREATE ROLE "vitis_[sDomain]" NOSUPERUSER INHERIT NOCREATEDB CREATEROLE;'; +$aSql['getInfoRolname'] = 'SELECT * FROM pg_catalog.pg_roles WHERE rolname = \'vitis_[sDomain]\''; +// Installations +$aSql['getInstallationControls'] = "SELECT id_controle FROM [sSchemaAnc].v_controle WHERE id_installation IN([idList]) LIMIT 1"; +$aSql['getContZoneUrbaIntersect'] = "SELECT [sColumn]::text FROM [sSchema].[sTable] WHERE ST_INTERSECTS([sTable].[sColumnGeom], [geom])"; + +// Suppressions des sous-objets +$aSql['getControleEvacuationEaux'] = "SELECT id_eva FROM [sSchemaAnc].v_evacuation_eaux WHERE id_controle IN([idList])"; +$aSql['getControleFilieresAgrees'] = "SELECT id_fag FROM [sSchemaAnc].v_filieres_agrees WHERE id_controle IN([idList])"; +$aSql['getControlePretraitements'] = "SELECT id_pretraitement FROM [sSchemaAnc].v_pretraitement WHERE id_controle IN([idList])"; +$aSql['getControleTraitements'] = "SELECT id_traitement FROM [sSchemaAnc].v_traitement WHERE id_controle IN([idList])"; +$aSql['getControleComposants'] = "SELECT id_composant FROM [sSchemaAnc].v_composant WHERE id_controle IN([idList])"; +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/Composant.class.inc b/src/module_anc/web_service/ws/Composant.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..48a1f59549532bcf52a6f007b569e6181a1d0d1e --- /dev/null +++ b/src/module_anc/web_service/ws/Composant.class.inc @@ -0,0 +1,93 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Composant.class.inc + * \class Composant + * + * \author Armand Bahi <armand.bahi@veremes.com>. + * + * \brief This file contains the Composant php class + * + * This class defines operation for one Composant + * + */ +class Composant extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/composants/{id_composant}", + * tags={"Composants"}, + * summary="Get Composant", + * description="Request to get Composant by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_composant", + * in="path", + * description="id_composant", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Composant Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_composant", "id_composant"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_composant', 'id_composant', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_composant"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/ComposantTypeFeatureStyle.class.inc b/src/module_anc/web_service/ws/ComposantTypeFeatureStyle.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..c805d926f23374f6c9ac991263bfec8d8d10b719 --- /dev/null +++ b/src/module_anc/web_service/ws/ComposantTypeFeatureStyle.class.inc @@ -0,0 +1,92 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file ComposantTypeFeatureStyle.class.inc + * \class ComposantTypeFeatureStyle + * + * \author Armand Bahi <armand.bahi@veremes.com>. + * + * \brief This file contains the ComposantTypeFeatureStyle php class + * + * This class defines operation for one ComposantTypeFeatureStyle + * + */ +class ComposantTypeFeatureStyle extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/composanttypefeaturestyles/{composant_type}", + * tags={"ComposantTypeFeatureStyles"}, + * summary="Get ComposantTypeFeatureStyle", + * description="Request to get ComposantTypeFeatureStyle by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="composant_type", + * in="path", + * description="composant_type", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="ComposantTypeFeatureStyle Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_composant_type_feature_style", "composant_type"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_composant_type_feature_style', 'composant_type', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["composant_type"] = $this->aValues["my_vitis_id"]; + } + } +} + +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/ComposantTypeFeatureStyles.class.inc b/src/module_anc/web_service/ws/ComposantTypeFeatureStyles.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..3a91900e63f26db7a8f54e7710aed0ace99d1a10 --- /dev/null +++ b/src/module_anc/web_service/ws/ComposantTypeFeatureStyles.class.inc @@ -0,0 +1,266 @@ +<?php + +/** + * \file ComposantTypeFeatureStyles.class.inc + * \class ComposantTypeFeatureStyles + * + * \author Armand Bahi <armand.bahi@veremes.com>. + * + * \brief This file contains the ComposantTypeFeatureStyles php class + * + * This class defines Rest Api to Vitis ComposantTypeFeatureStyles + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'ComposantTypeFeatureStyle.class.inc'; + + +class ComposantTypeFeatureStyles extends Anc { + /** + * @SWG\Definition( + * definition="/composanttypefeaturestyles", + * allOf={ + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * } + * ) + * * @SWG\Tag( + * name="ComposantTypeFeatureStyles", + * description="Operations about ComposantTypeFeatureStyles" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/composanttypefeaturestyles", + * tags={"ComposantTypeFeatureStyles"}, + * summary="Get ComposantTypeFeatureStyles", + * description="Request to get ComposantTypeFeatureStyles", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="ComposantTypeFeatureStyle Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + + /** + * get ComposantTypeFeatureStyles + * @return ComposantTypeFeatureStyles + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_composant_type_feature_style", "composant_type"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/composanttypefeaturestyles", + * tags={"ComposantTypeFeatureStyles"}, + * summary="Add composant", + * description="Request to add ComposantTypeFeatureStyles", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="composant Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + + /** + * insert ComposantTypeFeatureStyle + * @return id of the ComposantTypeFeatureStyle created + */ + function POST() { + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_composant_type_feature_style', null, 'composant_type'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/composanttypefeaturestyles/{composant_type}", + * tags={"ComposantTypeFeatureStyles"}, + * summary="update ComposantTypeFeatureStyles", + * description="Request to update ComposantTypeFeatureStyles", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="ComposantTypeFeatureStyle token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="composant_type", + * in="path", + * description="id of the ComposantTypeFeatureStyles", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + + /** + * update composanttypefeaturestyles + * @return id of composanttypefeaturestyles updated or error object if a composanttypefeaturestyles is not updated + */ + function PUT() { + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_composant_type_feature_style', 'composant_type'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/composanttypefeaturestyles", + * tags={"ComposantTypeFeatureStyles"}, + * summary="delete ComposantTypeFeatureStyles", + * description="Request to delete ComposantTypeFeatureStyles", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the composant", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="composant Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + /** + * @SWG\Delete(path="/composanttypefeaturestyles/{composant_type}", + * tags={"ComposantTypeFeatureStyles"}, + * summary="delete ComposantTypeFeatureStyles", + * description="Request to delete ComposantTypeFeatureStyles", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="ComposantTypeFeatureStyle token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="composant_type", + * in="path", + * description="id of the ComposantTypeFeatureStyles", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + + /** + * delete composanttypefeaturestyles + * @return id of composanttypefeaturestyles deleted or error object if a composanttypefeaturestyles is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_composant_type_feature_style', 'composant_type'); + return $aReturn['sMessage']; + } +} + +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/Composants.class.inc b/src/module_anc/web_service/ws/Composants.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..fbbfed9b125bc40decb3f3c998747f54721537ee --- /dev/null +++ b/src/module_anc/web_service/ws/Composants.class.inc @@ -0,0 +1,267 @@ +<?php + +/** + * \file Composants.class.inc + * \class Composants + * + * \author Armand Bahi <armand.bahi@veremes.com>. + * + * \brief This file contains the Composants php class + * + * This class defines Rest Api to Vitis Composants + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Composant.class.inc'; + + +class Composants extends Anc { + /** + * @SWG\Definition( + * definition="/composants", + * allOf={ + * @SWG\Schema(ref="#/definitions/composants") + * } + * ) + * * @SWG\Tag( + * name="Composants", + * description="Operations about Composants" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array( "id_installation", "id_controle", "id_composant", "composant_type", "label", "observations", "size", "rotation", "feature_style_id", "draw_color", "draw_outline_color", "draw_size", "draw_dash", "draw_symbol", "draw_rotation", "image", "text_font", "text_color", "text_outline_color", "text_size", "text_outline_size", "text_offset_x", "text_offset_y", "text_rotation", "text_text", "ST_AsGeoJSON(ST_Transform(geom, 4326)) as geom"); + } + + /** + * @SWG\Get(path="/composants", + * tags={"Composants"}, + * summary="Get Composants", + * description="Request to get Composants", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="composant Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + + /** + * get Composants + * @return Composants + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_composant", "id_composant"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/composants", + * tags={"Composants"}, + * summary="Add composant", + * description="Request to add Composants", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="composant Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + + /** + * insert composant + * @return id of the composant created + */ + function POST() { + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_composant', null, 'id_composant'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/composants/{id_composant}", + * tags={"Composants"}, + * summary="update Composants", + * description="Request to update Composants", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Composant token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_composant", + * in="path", + * description="id of the Composants", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + + /** + * update composants + * @return id of composants updated or error object if a composants is not updated + */ + function PUT() { + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_composant', 'id_composant'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/composants", + * tags={"Composants"}, + * summary="delete Composants", + * description="Request to delete Composants", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the composant", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="composant Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + /** + * @SWG\Delete(path="/composants/{id_composant}", + * tags={"Composants"}, + * summary="delete Composants", + * description="Request to delete Composants", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Composant token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_composant", + * in="path", + * description="id of the Composants", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + + /** + * delete composants + * @return id of composants deleted or error object if a composants is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_composant', 'id_composant'); + return $aReturn['sMessage']; + } +} + +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/Controle.class.inc b/src/module_anc/web_service/ws/Controle.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..aa8ebe27980eca688b4b391d235a545eba457101 --- /dev/null +++ b/src/module_anc/web_service/ws/Controle.class.inc @@ -0,0 +1,249 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once __DIR__ . '/Composants.class.inc'; +require_once __DIR__ . '/ComposantTypeFeatureStyles.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Controle.class.inc + * \class Controle + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Controle php class + * + * This class defines operation for one Controle + * + */ +class Controle extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/controles/{id_controle}", + * tags={"Controles"}, + * summary="Get Controle", + * description="Request to get Controle by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_controle", + * in="path", + * description="id_controle", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Controle Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], 'v_controle', 'id_controle', 'anc_saisie_anc_controle', $this->aProperties['anc']['files_container']); + // Champ sur lequel sera fait le typage pour changer les styles etc.. + $this->sTyleField = 'composant_type'; + // custom_form du controle pour map_workbench + $this->getCustomFormInfos(); + // Composants du controle + $this->getComposants(); + } + + /** + * Récupère au format GeoJSON les composants à afficher + */ + function getComposants() { + $aPath = array('anc', 'composants'); + $aValues = $this->aValues; + unset($aValues['my_vitis_id']); + unset($aValues['attributs']); + //$aValues['attributs'] = 'composant_type|label|observations||geom'; + $aValues['filter'] = '{"column":"id_controle","compare_operator":"=","value":"' . $this->aFields['id_controle'] . '"}'; + $oComposants = new Composants($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->GET(); + $aComposants = array(); + if (!empty($oComposants->aObjects)) { + for ($i = 0; $i < count($oComposants->aObjects); $i++) { + if (!empty($oComposants->aObjects[$i]->aFields)) { + array_push($aComposants, $oComposants->aObjects[$i]->aFields); + } + } + } + $aFeatures = array(); + for ($i = 0; $i < count($aComposants); $i++) { + if (!empty($aComposants[$i]['geom'])) { + $aGeom = json_decode($aComposants[$i]['geom'], true); + $aAttributes = $aComposants[$i]; + unset($aAttributes['geom']); + $aTmpFeature = array( + 'type' => 'Feature', + 'geometry' => $aGeom, + 'properties' => array( + 'style' => $this->getGeoJSONStyle($aAttributes), + 'attributes' => $aAttributes + ) + ); + array_push($aFeatures, $aTmpFeature); + } + } + if (!empty($aFeatures)) { + $this->aFields['composants'] = json_encode(array( + 'type' => 'FeatureCollection', + 'features' => $aFeatures + )); + } + } + + /** + * Récupère les informations à merger dans le custom_form + */ + function getCustomFormInfos() { + $aPath = array('anc', 'composanttypefeaturestyles'); + $aValues = $this->aValues; + unset($aValues['my_vitis_id']); + unset($aValues['filter']); + unset($aValues['attributs']); + $oComposantTypeFeatureStyles = new ComposantTypeFeatureStyles($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposantTypeFeatureStyles->GET(); + if (!empty($oComposantTypeFeatureStyles->aObjects)) { + $this->aFields['custom_form'] = array( + 'featureStructure' => array( + 'field' => $this->sTyleField, + 'types' => array() + ) + ); + for ($i = 0; $i < count($oComposantTypeFeatureStyles->aObjects); $i++) { + if (!empty($oComposantTypeFeatureStyles->aObjects[$i]->aFields)) { + $aStyle = $oComposantTypeFeatureStyles->aObjects[$i]->aFields; + if (!empty($aStyle[$this->sTyleField])) { + $this->aFields['custom_form']['featureStructure']['types'][$aStyle[$this->sTyleField]] = array( + 'style' => $this->getGeoJSONStyle($aStyle), + 'geometryType' => $aStyle['feature_type'] + ); + } + } + } + } + } + + /** + * Returns a GeoJSON format style from an array format style + * @param array $aStyle + * @return array + */ + function getGeoJSONStyle($aStyle) { + $aGeoJSONStyle = array( + 'draw' => array(), + 'text' => array() + ); + // Draw + if (!empty($aStyle['draw_color'])) { + $aGeoJSONStyle['draw']['color'] = $aStyle['draw_color']; + } + if (!empty($aStyle['draw_outline_color'])) { + $aGeoJSONStyle['draw']['outline_color'] = $aStyle['draw_outline_color']; + } + if (!empty($aStyle['draw_size'])) { + $aGeoJSONStyle['draw']['size'] = $aStyle['draw_size']; + } + if (!empty($aStyle['draw_dash'])) { + $aGeoJSONStyle['draw']['dash'] = $aStyle['draw_dash']; + } + if (!empty($aStyle['draw_symbol'])) { + $aGeoJSONStyle['draw']['symbol'] = $aStyle['draw_symbol']; + } + if (!empty($aStyle['draw_rotation'])) { + $aGeoJSONStyle['draw']['rotation'] = $aStyle['draw_rotation']; + } + if (!empty($aStyle['image'])) { + $aGeoJSONStyle['draw']['image'] = $aStyle['image']; + } + // Text + if (!empty($aStyle['text_font'])) { + $aGeoJSONStyle['text']['font'] = $aStyle['text_font']; + } + if (!empty($aStyle['text_color'])) { + $aGeoJSONStyle['text']['color'] = $aStyle['text_color']; + } + if (!empty($aStyle['text_outline_color'])) { + $aGeoJSONStyle['text']['outline_color'] = $aStyle['text_outline_color']; + } + if (!empty($aStyle['text_size'])) { + $aGeoJSONStyle['text']['size'] = $aStyle['text_size']; + } + if (!empty($aStyle['text_outline_size'])) { + $aGeoJSONStyle['text']['outline_size'] = $aStyle['text_outline_size']; + } + if (!empty($aStyle['text_offset_x'])) { + $aGeoJSONStyle['text']['offsetX'] = $aStyle['text_offset_x']; + } + if (!empty($aStyle['text_offset_y'])) { + $aGeoJSONStyle['text']['offsetY'] = $aStyle['text_offset_y']; + } + if (!empty($aStyle['text_rotation'])) { + $aGeoJSONStyle['text']['rotation'] = $aStyle['text_rotation']; + } + if (!empty($aStyle['text_text'])) { + $aGeoJSONStyle['text']['text'] = $aStyle['text_text']; + } + // Vide draw ou text si ils sont vides + if (empty($aGeoJSONStyle['draw'])) { + unset($aGeoJSONStyle['draw']); + } + if (empty($aGeoJSONStyle['text'])) { + unset($aGeoJSONStyle['text']); + } + return $aGeoJSONStyle; + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_controle', 'id_controle', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_controle"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> diff --git a/src/module_anc/web_service/ws/Controles.class.inc b/src/module_anc/web_service/ws/Controles.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..74b669c39827087d60d115f2f656d895b168f86d --- /dev/null +++ b/src/module_anc/web_service/ws/Controles.class.inc @@ -0,0 +1,708 @@ +<?php + +/** + * \file Controles.class.inc + * \class Controles + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Controles php class + * + * This class defines Rest Api to Vitis Controles + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Controle.class.inc'; +require_once 'Evacuation_eauxs.class.inc'; +require_once 'Filieres_agrees.class.inc'; +require_once 'Pretraitements.class.inc'; +require_once 'Traitements.class.inc'; +require_once 'Composants.class.inc'; + +class Controles extends Anc { + /** + * @SWG\Definition( + * definition="/controles", + * allOf={ + * @SWG\Schema(ref="#/definitions/controles") + * } + * ) + * * @SWG\Tag( + * name="Controles", + * description="Operations about Controles" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/controles", + * tags={"Controles"}, + * summary="Get Controles", + * description="Request to get Controles", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="controle Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + + /** + * get Controles + * @return Controles + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_controle", "id_controle"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/controles", + * tags={"Controles"}, + * summary="Add controle", + * description="Request to add Controles", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="controle Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + + /** + * insert controle + * @return id of the controle created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + //if (empty($this->aValues['des_date_control'])) + //$this->aValues['des_date_control'] = date('Y-m-d'); + if (empty($this->aValues['des_interval_control'])) + $this->aValues['des_interval_control'] = 0; + + // Conversion des dates + $aDates = array('cl_date_avis', 'cl_facture_le', 'des_date_installation', 'des_date_recommande', 'dep_date_depot', 'dep_date_envoi_incomplet', 'des_date_control'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + + // Fichiers à uploader + $aUploadFiles = array( + 'photos_f' => [], + 'fiche_f' => [], + 'rapport_f' => [], + 'schema_f' => [], + 'documents_f' => [], + 'plan_f' => [] + ); + + // Envoi Post + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_controle', $this->aProperties['schema_anc'] . '.controle_id_controle_seq', 'id_controle', $aUploadFiles, 'anc_saisie_anc_controle', $this->aProperties['anc']['files_container']); + + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/controles/{id_controle}", + * tags={"Controles"}, + * summary="update Controles", + * description="Request to update Controles", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Controle token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_controle", + * in="path", + * description="id of the Controles", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + + /** + * update controles + * @return id of controles updated or error object if a controles is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + + // Si il y a des composants à ajouter/supprimer/mettre à jour + if (!empty($this->aValues['composants'])) { + + // Supprime les composants liés au controle + $this->deleteControleComposants($this->aPath[2]); + + // Récupère les composants au bon format + $aComposants = $this->getTableFormedComposants(json_decode($this->aValues['composants'], true)); + + // Inserre les composants + $this->createComposants($aComposants); + } + // Conversion des dates + $aDates = array('cl_date_avis', 'cl_facture_le', 'des_date_control', 'des_date_installation', 'des_date_recommande', 'dep_date_depot', 'dep_date_envoi_incomplet'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + + // Fichiers à uploader + $aUploadFiles = array( + 'photos_f' => [], + 'fiche_f' => [], + 'rapport_f' => [], + 'schema_f' => [], + 'documents_f' => [], + 'plan_f' => [] + ); + + // Mise à jour + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_controle', 'id_controle', $aUploadFiles, 'anc_saisie_anc_controle', $this->aProperties['anc']['files_container']); + return $aReturn['sMessage']; + } + + /** + * Get the composant on table format + * @param array $aGeoJSONComposants + * @return array + */ + function getTableFormedComposants($aGeoJSONComposants) { + $aComposants = array(); + + for ($i = 0; $i < count($aGeoJSONComposants['features']); $i++) { + + $aTmpComposant = array(); + + // Récupère la géométrie en EWKT + if (!empty($aGeoJSONComposants['features'][$i]['geometry'])) { + $sSql = 'SELECT ST_AsEWKT(ST_SetSRID(ST_GeomFromGeoJSON([geom]), 4326)) as ewktgeom'; + $aSQLParams = array('geom' => array('value' => json_encode($aGeoJSONComposants['features'][$i]['geometry']), 'type' => 'geometry')); + $oPDOresult = $this->oConnection->oBd->executeWithParams($sSql, $aSQLParams); + if (!$this->oConnection->oBd->enErreur()) { + while ($aLine = $this->oConnection->oBd->ligneSuivante($oPDOresult)) { + $aTmpComposant['geom'] = $aLine['ewktgeom']; + } + } + } + + if (!empty($aGeoJSONComposants['features'][$i]['properties'])) { + if (!empty($aGeoJSONComposants['features'][$i]['properties']['attributes'])) { + foreach ($aGeoJSONComposants['features'][$i]['properties']['attributes'] as $key => $value) { + $aTmpComposant[$key] = $value; + } + } + if (!empty($aGeoJSONComposants['features'][$i]['properties']['style'])) { + if (!empty($aGeoJSONComposants['features'][$i]['properties']['style']['draw'])) { + foreach ($aGeoJSONComposants['features'][$i]['properties']['style']['draw'] as $key => $value) { + $aTmpComposant['draw_' . $key] = $value; + } + } + if (!empty($aGeoJSONComposants['features'][$i]['properties']['style']['text'])) { + foreach ($aGeoJSONComposants['features'][$i]['properties']['style']['text'] as $key => $value) { + $aTmpComposant['text_' . $key] = $value; + } + } + } + } + array_push($aComposants, $aTmpComposant); + } + + + return $aComposants; + } + + /** + * Insert the composants defined in $aComposants + * @param array $aComposants + */ + function createComposants($aComposants) { + for ($i = 0; $i < count($aComposants); $i++) { + $aPath = array('anc', 'composants'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'id_controle' => $this->aPath[2] + ); + $aValues = array_merge($aValues, $aComposants[$i]); + $oComposants = new Composants($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->POST(); + } + } + + /** + * @SWG\Delete(path="/controles", + * tags={"Controles"}, + * summary="delete Controles", + * description="Request to delete Controles", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the controle", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="controle Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + /** + * @SWG\Delete(path="/controles/{id_controle}", + * tags={"Controles"}, + * summary="delete Controles", + * description="Request to delete Controles", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Controle token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_controle", + * in="path", + * description="id of the Controles", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + + /** + * delete controles + * @return id of controles deleted or error object if a controles is not deleted + */ + function DELETE() { + require $this->sRessourcesFile; + + // Supprime les objets dépendants + $this->deleteControleDependencies($this->aValues['idList']); + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_controle', 'id_controle'); + return $aReturn['sMessage']; + } + + /** + * Delete the controle dependencies + * @param string $sIdControles + */ + function deleteControleDependencies($sIdControles) { + + // Suppression dpépendance s_anc.evacuation_eaux + $this->deleteControleEvacuationEaux($sIdControles); + + // Suppression dpépendance s_anc.filieres_agrees + $this->deleteControleFilieresAgrees($sIdControles); + + // Suppression dpépendance s_anc.pretraitement + $this->deleteControlePretraitements($sIdControles); + + // Suppression dpépendance s_anc.traitement + $this->deleteControleTraitements($sIdControles); + + // Suppression dpépendance s_anc.composant + $this->deleteControleComposants($sIdControles); + } + + /** + * Get the composant's evacuationEaux + * @param string $sIdControles + * @return array|null + */ + function getControleEvacuationEaux($sIdControles) { + require $this->sRessourcesFile; + + $aParams = array(); + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $sIdControles, 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getControleEvacuationEaux'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + return null; + } else { + $aEvacuationEaux = $this->oConnection->oBd->getResultTableAssoc($oPDOresult); + return $aEvacuationEaux; + } + } + + /** + * Get the composant's FilieresAgrees + * @param string $sIdControles + * @return array|null + */ + function getControleFilieresAgrees($sIdControles) { + require $this->sRessourcesFile; + + $aParams = array(); + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $sIdControles, 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getControleFilieresAgrees'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + return null; + } else { + $aFilieresAgrees = $this->oConnection->oBd->getResultTableAssoc($oPDOresult); + return $aFilieresAgrees; + } + } + + /** + * Get the composant's Pretraitement + * @param string $sIdControles + * @return array|null + */ + function getControlePretraitements($sIdControles) { + require $this->sRessourcesFile; + + $aParams = array(); + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $sIdControles, 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getControlePretraitements'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + return null; + } else { + $aPretraitement = $this->oConnection->oBd->getResultTableAssoc($oPDOresult); + return $aPretraitement; + } + } + + /** + * Get the composant's Traitement + * @param string $sIdControles + * @return array|null + */ + function getControleTraitements($sIdControles) { + require $this->sRessourcesFile; + + $aParams = array(); + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $sIdControles, 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getControleTraitements'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + return null; + } else { + $aTraitement = $this->oConnection->oBd->getResultTableAssoc($oPDOresult); + return $aTraitement; + } + } + + /** + * Get the composant's Composant + * @param string $sIdControles + * @return array|null + */ + function getControleComposants($sIdControles) { + require $this->sRessourcesFile; + + $aParams = array(); + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $sIdControles, 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getControleComposants'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + return null; + } else { + $aComposant = $this->oConnection->oBd->getResultTableAssoc($oPDOresult); + return $aComposant; + } + } + + /** + * Delete the composant's EvacuationEaux + * @param string $sIdControles + */ + function deleteControleEvacuationEaux($sIdControles) { + + $aEvacuationEaux = $this->getControleEvacuationEaux($sIdControles); + if (!empty($aEvacuationEaux)) { + if (count($aEvacuationEaux) > 0) { + $sIdList = ''; + $aIdList = array(); + for ($i = 0; $i < count($aEvacuationEaux); $i++) { + if (!empty($aEvacuationEaux[$i]['id_eva'])) { + array_push($aIdList, $aEvacuationEaux[$i]['id_eva']); + } + } + $sIdList = join('|', $aIdList); + $aPath = array('anc', 'evacuation_eauxs'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'idList' => $sIdList, + ); + $oComposants = new Evacuation_eauxs($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->DELETE(); + } + } + } + + /** + * Delete the composant's FilieresAgrees + * @param string $sIdControles + */ + function deleteControleFilieresAgrees($sIdControles) { + + $aFilieresAgrees = $this->getControleFilieresAgrees($sIdControles); + + if (!empty($aFilieresAgrees)) { + if (count($aFilieresAgrees) > 0) { + $sIdList = ''; + $aIdList = array(); + for ($i = 0; $i < count($aFilieresAgrees); $i++) { + if (!empty($aFilieresAgrees[$i]['id_fag'])) { + array_push($aIdList, $aFilieresAgrees[$i]['id_fag']); + } + } + $sIdList = join('|', $aIdList); + $aPath = array('anc', 'evacuation_eauxs'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'idList' => $sIdList, + ); + $oComposants = new Filieres_agrees($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->DELETE(); + } + } + } + + /** + * Delete the composant's Pretraitement + * @param string $sIdControles + */ + function deleteControlePretraitements($sIdControles) { + + $aPretraitement = $this->getControlePretraitements($sIdControles); + + if (!empty($aPretraitement)) { + if (count($aPretraitement) > 0) { + $sIdList = ''; + $aIdList = array(); + for ($i = 0; $i < count($aPretraitement); $i++) { + if (!empty($aPretraitement[$i]['id_pretraitement'])) { + array_push($aIdList, $aPretraitement[$i]['id_pretraitement']); + } + } + $sIdList = join('|', $aIdList); + $aPath = array('anc', 'evacuation_eauxs'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'idList' => $sIdList, + ); + $oComposants = new Pretraitements($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->DELETE(); + } + } + } + + /** + * Delete the composant's Traitement + * @param string $sIdControles + */ + function deleteControleTraitements($sIdControles) { + + $aTraitement = $this->getControleTraitements($sIdControles); + + if (!empty($aTraitement)) { + if (count($aTraitement) > 0) { + $sIdList = ''; + $aIdList = array(); + for ($i = 0; $i < count($aTraitement); $i++) { + if (!empty($aTraitement[$i]['id_traitement'])) { + array_push($aIdList, $aTraitement[$i]['id_traitement']); + } + } + $sIdList = join('|', $aIdList); + $aPath = array('anc', 'evacuation_eauxs'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'idList' => $sIdList, + ); + $oComposants = new Traitements($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->DELETE(); + } + } + } + + /** + * Delete the composant's Composant + * @param string $sIdControles + */ + function deleteControleComposants($sIdControles) { + + $aComposant = $this->getControleComposants($sIdControles); + + if (!empty($aComposant)) { + if (count($aComposant) > 0) { + $sIdList = ''; + $aIdList = array(); + for ($i = 0; $i < count($aComposant); $i++) { + if (!empty($aComposant[$i]['id_composant'])) { + array_push($aIdList, $aComposant[$i]['id_composant']); + } + } + $sIdList = join('|', $aIdList); + $aPath = array('anc', 'evacuation_eauxs'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'idList' => $sIdList, + ); + $oComposants = new Composants($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->DELETE(); + } + } + } + +} + +?> diff --git a/src/module_anc/web_service/ws/Entreprise.class.inc b/src/module_anc/web_service/ws/Entreprise.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..acb6df42df2a3bbae7edbe1b3aed0129c037ec94 --- /dev/null +++ b/src/module_anc/web_service/ws/Entreprise.class.inc @@ -0,0 +1,94 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Entreprise.class.inc + * \class Entreprise + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Entreprise php class + * + * This class defines operation for one Entreprise + * + */ +class Entreprise extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_parametre_entreprises", "commune", "siret", "raison_sociale", "nom_entreprise", "nom_contact", "telephone_fixe", "telephone_mobile", "web", "mail", "code_postal", "voie", "bureau_etude", "concepteur", "constructeur", "installateur", "vidangeur", "en_activite", "observations", "creat", "creat_date", "maj", "maj_date", "geom"); + } + + /** + * @SWG\Get(path="/entreprises/{id_entreprise}", + * tags={"Entreprises"}, + * summary="Get Entreprise", + * description="Request to get Entreprise by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_entreprise", + * in="path", + * description="id_entreprise", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Entreprise Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "param_entreprise", "id_parametre_entreprises"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'param_entreprise', 'id_parametre_entreprises', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_parametre_entreprises"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> diff --git a/src/module_anc/web_service/ws/Entreprises.class.inc b/src/module_anc/web_service/ws/Entreprises.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..25cdc54b0555421acf78651a5a4eac21c8e2dd83 --- /dev/null +++ b/src/module_anc/web_service/ws/Entreprises.class.inc @@ -0,0 +1,272 @@ +<?php + +/** + * \file Entreprises.class.inc + * \class Entreprises + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Entreprises php class + * + * This class defines Rest Api to Vitis Entreprises + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Entreprise.class.inc'; + + +class Entreprises extends Anc { + /** + * @SWG\Definition( + * definition="/entreprises", + * allOf={ + * @SWG\Schema(ref="#/definitions/entreprises") + * } + * ) + * * @SWG\Tag( + * name="Entreprises", + * description="Operations about Entreprises" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_parametre_entreprises", "commune", "siret", "raison_sociale", "nom_entreprise", "nom_contact", "telephone_fixe", "telephone_mobile", "web", "mail", "code_postal", "voie", "bureau_etude", "concepteur", "constructeur", "installateur", "vidangeur", "en_activite", "observations", "creat", "creat_date", "maj", "maj_date", "geom"); + } + + /** + * @SWG\Get(path="/entreprises", + * tags={"Entreprises"}, + * summary="Get Entreprises", + * description="Request to get Entreprises", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="entreprise Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + + /** + * get Entreprises + * @return Entreprises + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "param_entreprise", "id_parametre_entreprises"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/entreprises", + * tags={"Entreprises"}, + * summary="Add entreprise", + * description="Request to add Entreprises", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="entreprise Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + + /** + * insert entreprise + * @return id of the entreprise created + */ + function POST() { + $this->aValues['creat'] = $_SESSION["ses_Login"]; + $this->aValues['creat_date'] = date('Y-m-d'); + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'param_entreprise', $this->aProperties['schema_anc'].'.param_entreprise_id_parametre_entreprises_seq', 'id_parametre_entreprises'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/entreprises/{id_entreprise}", + * tags={"Entreprises"}, + * summary="update Entreprises", + * description="Request to update Entreprises", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Entreprise token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_entreprise", + * in="path", + * description="id of the Entreprises", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + + /** + * update entreprises + * @return id of entreprises updated or error object if a entreprises is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'param_entreprise', 'id_parametre_entreprises'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/entreprises", + * tags={"Entreprises"}, + * summary="delete Entreprises", + * description="Request to delete Entreprises", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the entreprise", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="entreprise Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + /** + * @SWG\Delete(path="/entreprises/{id_entreprise}", + * tags={"Entreprises"}, + * summary="delete Entreprises", + * description="Request to delete Entreprises", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Entreprise token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_entreprise", + * in="path", + * description="id of the Entreprises", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + + /** + * delete entreprises + * @return id of entreprises deleted or error object if a entreprises is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'param_entreprise', 'id_parametre_entreprises'); + return $aReturn['sMessage']; + } +} +?> diff --git a/src/module_anc/web_service/ws/Evacuation_eaux.class.inc b/src/module_anc/web_service/ws/Evacuation_eaux.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..47191074c3aaf4e75282a36dc643bfec8b897e80 --- /dev/null +++ b/src/module_anc/web_service/ws/Evacuation_eaux.class.inc @@ -0,0 +1,94 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Evacuation_eaux.class.inc + * \class Evacuation_eaux + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Evacuation_eaux php class + * + * This class defines operation for one Evacuation_eaux + * + */ +class Evacuation_eaux extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/evacuation_eauxs/{id_evacuation_eaux}", + * tags={"Evacuation_eauxs"}, + * summary="Get Evacuation_eaux", + * description="Request to get Evacuation_eaux by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_evacuation_eaux", + * in="path", + * description="id_evacuation_eaux", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Evacuation_eaux Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], 'v_evacuation_eaux', 'id_eva', 'anc_saisie_anc_evacuation_eaux', $this->aProperties['anc']['files_container']); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_evacuation_eaux', 'id_eva', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_eva"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> diff --git a/src/module_anc/web_service/ws/Evacuation_eauxs.class.inc b/src/module_anc/web_service/ws/Evacuation_eauxs.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..de866e5aa38af63cffe8eb050ba495993aa8b41f --- /dev/null +++ b/src/module_anc/web_service/ws/Evacuation_eauxs.class.inc @@ -0,0 +1,294 @@ +<?php + +/** + * \file Evacuation_eauxs.class.inc + * \class Evacuation_eauxs + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Evacuation_eauxs php class + * + * This class defines Rest Api to Vitis Evacuation_eauxs + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Evacuation_eaux.class.inc'; + + +class Evacuation_eauxs extends Anc { + /** + * @SWG\Definition( + * definition="/evacuation_eauxs", + * allOf={ + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * } + * ) + * * @SWG\Tag( + * name="Evacuation_eauxs", + * description="Operations about Evacuation_eauxs" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/evacuation_eauxs", + * tags={"Evacuation_eauxs"}, + * summary="Get Evacuation_eauxs", + * description="Request to get Evacuation_eauxs", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="evacuation_eaux Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + + /** + * get Evacuation_eauxs + * @return Evacuation_eauxs + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_evacuation_eaux", "id_eva"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/evacuation_eauxs", + * tags={"Evacuation_eauxs"}, + * summary="Add evacuation_eaux", + * description="Request to add Evacuation_eauxs", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="evacuation_eaux Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + + /** + * insert evacuation_eaux + * @return id of the evacuation_eaux created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + + // Fichiers à uploader + $aUploadFiles = array( + 'photos_f' => [], + 'fiche_f' => [], + 'schema_f' => [], + 'documents_f' => [], + 'plan_f' => [] + ); + + // Envoi Post + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_evacuation_eaux', $this->aProperties['schema_anc'].'.evacuation_eaux_id_eva_seq', 'id_eva', $aUploadFiles, 'anc_saisie_anc_evacuation_eaux', $this->aProperties['anc']['files_container']); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/evacuation_eauxs/{id_evacuation_eaux}", + * tags={"Evacuation_eauxs"}, + * summary="update Evacuation_eauxs", + * description="Request to update Evacuation_eauxs", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Evacuation_eaux token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_evacuation_eaux", + * in="path", + * description="id of the Evacuation_eauxs", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + + /** + * update evacuation_eauxs + * @return id of evacuation_eauxs updated or error object if a evacuation_eauxs is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + + // Fichiers à uploader + $aUploadFiles = array( + 'photos_f' => [], + 'fiche_f' => [], + 'schema_f' => [], + 'documents_f' => [], + 'plan_f' => [] + ); + + // Envoi Put + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_evacuation_eaux', 'id_eva', $aUploadFiles, 'anc_saisie_anc_evacuation_eaux', $this->aProperties['anc']['files_container']); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/evacuation_eauxs", + * tags={"Evacuation_eauxs"}, + * summary="delete Evacuation_eauxs", + * description="Request to delete Evacuation_eauxs", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the evacuation_eaux", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="evacuation_eaux Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + /** + * @SWG\Delete(path="/evacuation_eauxs/{id_evacuation_eaux}", + * tags={"Evacuation_eauxs"}, + * summary="delete Evacuation_eauxs", + * description="Request to delete Evacuation_eauxs", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Evacuation_eaux token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_evacuation_eaux", + * in="path", + * description="id of the Evacuation_eauxs", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + + /** + * delete evacuation_eauxs + * @return id of evacuation_eauxs deleted or error object if a evacuation_eauxs is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_evacuation_eaux', 'id_eva'); + return $aReturn['sMessage']; + } +} +?> diff --git a/src/module_anc/web_service/ws/Filieres_agree.class.inc b/src/module_anc/web_service/ws/Filieres_agree.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..a8af8ab19140cd31178184373302ed8b7152b0c7 --- /dev/null +++ b/src/module_anc/web_service/ws/Filieres_agree.class.inc @@ -0,0 +1,94 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Filieres_agree.class.inc + * \class Filieres_agree + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Filieres_agree php class + * + * This class defines operation for one Filieres_agree + * + */ +class Filieres_agree extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/filieres_agrees/{id_filieres_agree}", + * tags={"Filieres_agrees"}, + * summary="Get Filieres_agree", + * description="Request to get Filieres_agree by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_filieres_agree", + * in="path", + * description="id_filieres_agree", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Filieres_agree Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], 'v_filieres_agrees', 'id_fag', 'anc_saisie_anc_filieres_agree', $this->aProperties['anc']['files_container']); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_filieres_agrees', 'id_fag', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_fag"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> diff --git a/src/module_anc/web_service/ws/Filieres_agrees.class.inc b/src/module_anc/web_service/ws/Filieres_agrees.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..92aff066305f0f00934d7c52bea235d0cf5c2a55 --- /dev/null +++ b/src/module_anc/web_service/ws/Filieres_agrees.class.inc @@ -0,0 +1,310 @@ +<?php + +/** + * \file Filieres_agrees.class.inc + * \class Filieres_agrees + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Filieres_agrees php class + * + * This class defines Rest Api to Vitis Filieres_agrees + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Filieres_agree.class.inc'; + + +class Filieres_agrees extends Anc { + /** + * @SWG\Definition( + * definition="/filieres_agrees", + * allOf={ + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * } + * ) + * * @SWG\Tag( + * name="Filieres_agrees", + * description="Operations about Filieres_agrees" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/filieres_agrees", + * tags={"Filieres_agrees"}, + * summary="Get Filieres_agrees", + * description="Request to get Filieres_agrees", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="filieres_agree Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + + /** + * get Filieres_agrees + * @return Filieres_agrees + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_filieres_agrees", "id_fag"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/filieres_agrees", + * tags={"Filieres_agrees"}, + * summary="Add filieres_agree", + * description="Request to add Filieres_agrees", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="filieres_agree Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + + /** + * insert filieres_agree + * @return id of the filieres_agree created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + + // Conversion des dates + if (isset($this->aValues['fag_en_date'])) { + if ($this->aValues['fag_en_date'] == '') + unset($this->aValues['fag_en_date']); + else + $this->aValues['fag_en_date'] = date_format(date_create_from_format('d/m/Y', $this->aValues['fag_en_date']), 'Y-m-d'); + } + + // Fichiers à uploader + $aUploadFiles = array( + 'photos_f' => [], + 'fiche_f' => [], + 'schema_f' => [], + 'documents_f' => [], + 'plan_f' => [] + ); + + // Envoi Post + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_filieres_agrees', $this->aProperties['schema_anc'].'.filieres_agrees_id_fag_seq', 'id_fag', $aUploadFiles, 'anc_saisie_anc_filieres_agree', $this->aProperties['anc']['files_container']); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/filieres_agrees/{id_filieres_agree}", + * tags={"Filieres_agrees"}, + * summary="update Filieres_agrees", + * description="Request to update Filieres_agrees", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Filieres_agree token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_filieres_agree", + * in="path", + * description="id of the Filieres_agrees", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + + /** + * update filieres_agrees + * @return id of filieres_agrees updated or error object if a filieres_agrees is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + + // Conversion des dates + if (isset($this->aValues['fag_en_date'])) { + if ($this->aValues['fag_en_date'] == '') + unset($this->aValues['fag_en_date']); + else + $this->aValues['fag_en_date'] = date_format(date_create_from_format('d/m/Y', $this->aValues['fag_en_date']), 'Y-m-d'); + } + + // Fichiers à uploader + $aUploadFiles = array( + 'photos_f' => [], + 'fiche_f' => [], + 'schema_f' => [], + 'documents_f' => [], + 'plan_f' => [] + ); + + // Envoi Put + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_filieres_agrees', 'id_fag', $aUploadFiles, 'anc_saisie_anc_filieres_agree', $this->aProperties['anc']['files_container']); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/filieres_agrees", + * tags={"Filieres_agrees"}, + * summary="delete Filieres_agrees", + * description="Request to delete Filieres_agrees", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the filieres_agree", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="filieres_agree Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + /** + * @SWG\Delete(path="/filieres_agrees/{id_filieres_agree}", + * tags={"Filieres_agrees"}, + * summary="delete Filieres_agrees", + * description="Request to delete Filieres_agrees", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Filieres_agree token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_filieres_agree", + * in="path", + * description="id of the Filieres_agrees", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + + /** + * delete filieres_agrees + * @return id of filieres_agrees deleted or error object if a filieres_agrees is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_filieres_agrees', 'id_fag'); + return $aReturn['sMessage']; + } +} +?> diff --git a/src/module_anc/web_service/ws/Installation.class.inc b/src/module_anc/web_service/ws/Installation.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..8608257f91bd6ec7a04f9e2b34ce0f5432933bd6 --- /dev/null +++ b/src/module_anc/web_service/ws/Installation.class.inc @@ -0,0 +1,95 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Installation.class.inc + * \class Installation + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Installation php class + * + * This class defines operation for one Installation + * + */ +class Installation extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_installation", "id_com", "id_parc", "parc_sup", "parc_parcelle_associees", "parc_adresse", "code_postal", "parc_commune", "prop_titre", "prop_nom_prenom", "prop_adresse", "prop_code_postal", "prop_commune", "prop_tel", "prop_mail", "bati_type", "bati_ca_nb_pp", "bati_ca_nb_eh", "bati_ca_nb_chambres", "bati_ca_nb_autres_pieces", "bati_ca_nb_occupant", "bati_nb_a_control", "bati_date_achat", "bati_date_mutation", "cont_zone_enjeu", "cont_zone_sage", "cont_zone_autre", "cont_zone_urba", "cont_zone_anc", "cont_alim_eau_potable", "cont_puits_usage", "cont_puits_declaration", "cont_puits_situation", "cont_puits_terrain_mitoyen", "observations", "maj", "maj_date", "create", "create_date", "archivage", "geom", "photo_f", "document_f", "num_dossier", "commune", "section", "parcelle", "nb_controle", "last_date_control", "cl_avis", "next_control", "classement_installation"); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/installations/{id_installation}", + * tags={"Installations"}, + * summary="Get Installation", + * description="Request to get Installation by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_installation", + * in="path", + * description="id_installation", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Installation Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], 'v_installation', 'id_installation', 'anc_saisie_anc_installation', $this->aProperties['anc']['files_container']); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_installation', 'id_installation', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_installation"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> diff --git a/src/module_anc/web_service/ws/Installations.class.inc b/src/module_anc/web_service/ws/Installations.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..c334b99d471a1811bb49cf6c5270fadf4ed31ee0 --- /dev/null +++ b/src/module_anc/web_service/ws/Installations.class.inc @@ -0,0 +1,327 @@ +<?php + +/** + * \file Installations.class.inc + * \class Installations + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Installations php class + * + * This class defines Rest Api to Vitis Installations + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Installation.class.inc'; + + +class Installations extends Anc { + /** + * @SWG\Definition( + * definition="/installations", + * allOf={ + * @SWG\Schema(ref="#/definitions/installations") + * } + * ) + * * @SWG\Tag( + * name="Installations", + * description="Operations about Installations" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_installation", "id_com", "id_parc", "parc_sup", "parc_parcelle_associees", "parc_adresse", "code_postal", "parc_commune", "prop_titre", "prop_nom_prenom", "prop_adresse", "prop_code_postal", "prop_commune", "prop_tel", "prop_mail", "bati_type", "bati_ca_nb_pp", "bati_ca_nb_eh", "bati_ca_nb_chambres", "bati_ca_nb_autres_pieces", "bati_ca_nb_occupant", "bati_nb_a_control", "bati_date_achat", "bati_date_mutation", "cont_zone_enjeu", "cont_zone_sage", "cont_zone_autre", "cont_zone_urba", "cont_zone_anc", "cont_alim_eau_potable", "cont_puits_usage", "cont_puits_declaration", "cont_puits_situation", "cont_puits_terrain_mitoyen", "observations", "maj", "maj_date", "create", "create_date", "archivage", "geom", "photo_f", "document_f", "num_dossier", "commune", "section", "parcelle", "nb_controle", "last_date_control", "cl_avis", "next_control", "classement_installation"); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/installations", + * tags={"Installations"}, + * summary="Get Installations", + * description="Request to get Installations", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="installation Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + + /** + * get Installations + * @return Installations + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_installation", "id_installation"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/installations", + * tags={"Installations"}, + * summary="Add installation", + * description="Request to add Installations", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="installation Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + + /** + * insert installation + * @return id of the installation created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + + // Fichiers à uploader + $aUploadFiles = array( + 'photo_f' => [], + 'document_f' => [] + ); + + // Envoi Post + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_installation', $this->aProperties['schema_anc'].'.installation_id_installation_seq', 'id_installation', $aUploadFiles, 'anc_saisie_anc_installation', $this->aProperties['anc']['files_container']); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/installations/{id_installation}", + * tags={"Installations"}, + * summary="update Installations", + * description="Request to update Installations", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Installation token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_installation", + * in="path", + * description="id of the Installations", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + + /** + * update installations + * @return id of installations updated or error object if a installations is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + + // Zone PLU. + if (!empty($this->aValues['geom'])) { + $sSchema = $this->aProperties["anc"]["cont_zone_urba"]["intersect"]["schema"]; + $sTable = $this->aProperties["anc"]["cont_zone_urba"]["intersect"]["table"]; + $sColumn = $this->aProperties["anc"]["cont_zone_urba"]["intersect"]["column"]; + $sColumnGeom = $this->aProperties["anc"]["cont_zone_urba"]["intersect"]["column_geom"]; + if (!empty($sSchema) && !empty($sTable) && !empty($sColumn) && !empty($sColumnGeom)) { + require $this->sRessourcesFile; + $aParams['sSchema'] = array('value' => $sSchema, 'type' => 'schema_name'); + $aParams['sTable'] = array('value' => $sTable, 'type' => 'table_name'); + $aParams['sColumn'] = array('value' => $sColumn, 'type' => 'column_name'); + $aParams['sColumnGeom'] = array('value' => $sColumnGeom, 'type' => 'column_name'); + $aParams['geom'] = array('value' => $this->aValues['geom'], 'type' => 'geometry'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getContZoneUrbaIntersect'], $aParams); + if ($this->oConnection->oBd->nombreLigne($oPDOresult) > 0) { + $aLigne = $this->oConnection->oBd->ligneSuivante ($oPDOresult); + $this->aValues['cont_zone_urba'] = $aLigne[$sColumn]; + } + } + } + + // Fichiers à uploader + $aUploadFiles = array( + 'photo_f' => [], + 'document_f' => [] + ); + + // Envoi Put + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_installation', 'id_installation', $aUploadFiles, 'anc_saisie_anc_installation', $this->aProperties['anc']['files_container']); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/installations", + * tags={"Installations"}, + * summary="delete Installations", + * description="Request to delete Installations", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the installation", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="installation Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + /** + * @SWG\Delete(path="/installations/{id_installation}", + * tags={"Installations"}, + * summary="delete Installations", + * description="Request to delete Installations", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Installation token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_installation", + * in="path", + * description="id of the Installations", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + + /** + * delete installations + * @return id of installations deleted or error object if a installations is not deleted + */ + function DELETE() { + require $this->sRessourcesFile; + // Pas de Suppression si des contrôles sont associés. + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $this->aValues['idList'], 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getInstallationControls'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + $aReturn = array('status' => 0, 'message' => $this->oConnection->oBd->getBDMessage(), 'error_code' => 1); + return json_encode($aReturn); + } + else { + if ($this->oConnection->oBd->nombreLigne($oPDOresult) > 0) { + $aReturn = array('status' => 0, 'errorMessage' => 'Des contrôles sont associés à / aux installation(s) à supprimer.', 'error_code' => 1); + return json_encode($aReturn); + } + else { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_installation', 'id_installation'); + return $aReturn['sMessage']; + } + } + } +} +?> diff --git a/src/module_anc/web_service/ws/Param_admin.class.inc b/src/module_anc/web_service/ws/Param_admin.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..bd1db2f14e3d085056deef7294e69adc875a1b2e --- /dev/null +++ b/src/module_anc/web_service/ws/Param_admin.class.inc @@ -0,0 +1,91 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Param_admin.class.inc + * \class Param_admin + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_admin php class + * + * This class defines operation for one Param_admin + * + */ +class Param_admin extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/param_admins/{id_param_admin}", + * tags={"Param_admins"}, + * summary="Get Param_admin", + * description="Request to get Param_admin by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_param_admin", + * in="path", + * description="id_param_admin", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Param_admin Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "param_admin", "id_parametre_admin"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'param_admin', 'id_parametre_admin', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_parametre_admin"] = $this->aValues["my_vitis_id"]; + } + } +} +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/Param_admins.class.inc b/src/module_anc/web_service/ws/Param_admins.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..eb9caa92474c3d34918360d2dd3de4bb848374a5 --- /dev/null +++ b/src/module_anc/web_service/ws/Param_admins.class.inc @@ -0,0 +1,285 @@ +<?php + +/** + * \file Param_admins.class.inc + * \class Param_admins + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_admins php class + * + * This class defines Rest Api to Vitis Param_admins + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Param_admin.class.inc'; + + +class Param_admins extends Anc { + /** + * @SWG\Definition( + * definition="/param_admins", + * allOf={ + * @SWG\Schema(ref="#/definitions/param_admins") + * } + * ) + * * @SWG\Tag( + * name="Param_admins", + * description="Operations about Param_admins" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/param_admins", + * tags={"Param_admins"}, + * summary="Get Param_admins", + * description="Request to get Param_admins", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="param_admin Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + + /** + * get Param_admins + * @return Param_admins + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_param_admin", "id_parametre_admin"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/param_admins", + * tags={"Param_admins"}, + * summary="Add param_admin", + * description="Request to add Param_admins", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_admin Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + + /** + * insert param_admin + * @return id of the param_admin created + */ + function POST() { + // Conversion des dates + $aDates = array('date_fin_validite'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'param_admin', $this->aProperties['schema_anc'].'.param_admin_id_parametre_admin_seq', 'id_parametre_admin'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/param_admins/{id_param_admin}", + * tags={"Param_admins"}, + * summary="update Param_admins", + * description="Request to update Param_admins", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_admin token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_admin", + * in="path", + * description="id of the Param_admins", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + + /** + * update param_admins + * @return id of param_admins updated or error object if a param_admins is not updated + */ + function PUT() { + // Conversion des dates + $aDates = array('date_fin_validite'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'param_admin', 'id_parametre_admin'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/param_admins", + * tags={"Param_admins"}, + * summary="delete Param_admins", + * description="Request to delete Param_admins", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the param_admin", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_admin Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + /** + * @SWG\Delete(path="/param_admins/{id_param_admin}", + * tags={"Param_admins"}, + * summary="delete Param_admins", + * description="Request to delete Param_admins", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_admin token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_admin", + * in="path", + * description="id of the Param_admins", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + + /** + * delete param_admins + * @return id of param_admins deleted or error object if a param_admins is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'param_admin', 'id_parametre_admin'); + return $aReturn['sMessage']; + } +} +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/Param_liste.class.inc b/src/module_anc/web_service/ws/Param_liste.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..08c642c7c5422d91df1e3577a71777df89b87713 --- /dev/null +++ b/src/module_anc/web_service/ws/Param_liste.class.inc @@ -0,0 +1,91 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Param_liste.class.inc + * \class Param_liste + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_liste php class + * + * This class defines operation for one Param_liste + * + */ +class Param_liste extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/param_listes/{id_param_liste}", + * tags={"Param_listes"}, + * summary="Get Param_liste", + * description="Request to get Param_liste by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_param_liste", + * in="path", + * description="id_param_liste", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Param_liste Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "param_liste", "id_parametre_liste"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'param_liste', 'id_parametre_liste', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_parametre_liste"] = $this->aValues["my_vitis_id"]; + } + } +} +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/Param_listes.class.inc b/src/module_anc/web_service/ws/Param_listes.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..85b6ae2b3835c66975c13da7c59fe719f649711e --- /dev/null +++ b/src/module_anc/web_service/ws/Param_listes.class.inc @@ -0,0 +1,265 @@ +<?php + +/** + * \file Param_listes.class.inc + * \class Param_listes + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_listes php class + * + * This class defines Rest Api to Vitis Param_listes + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Param_liste.class.inc'; + + +class Param_listes extends Anc { + /** + * @SWG\Definition( + * definition="/param_listes", + * allOf={ + * @SWG\Schema(ref="#/definitions/param_listes") + * } + * ) + * * @SWG\Tag( + * name="Param_listes", + * description="Operations about Param_listes" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/param_listes", + * tags={"Param_listes"}, + * summary="Get Param_listes", + * description="Request to get Param_listes", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="param_liste Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + + /** + * get Param_listes + * @return Param_listes + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "param_liste", "id_parametre_liste"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/param_listes", + * tags={"Param_listes"}, + * summary="Add param_liste", + * description="Request to add Param_listes", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_liste Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + + /** + * insert param_liste + * @return id of the param_liste created + */ + function POST() { + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'param_liste', $this->aProperties['schema_anc'].'.param_liste_id_parametre_liste_seq', 'id_parametre_liste'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/param_listes/{id_param_liste}", + * tags={"Param_listes"}, + * summary="update Param_listes", + * description="Request to update Param_listes", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_liste token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_liste", + * in="path", + * description="id of the Param_listes", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + + /** + * update param_listes + * @return id of param_listes updated or error object if a param_listes is not updated + */ + function PUT() { + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'param_liste', 'id_parametre_liste'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/param_listes", + * tags={"Param_listes"}, + * summary="delete Param_listes", + * description="Request to delete Param_listes", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the param_liste", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_liste Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + /** + * @SWG\Delete(path="/param_listes/{id_param_liste}", + * tags={"Param_listes"}, + * summary="delete Param_listes", + * description="Request to delete Param_listes", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_liste token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_liste", + * in="path", + * description="id of the Param_listes", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + + /** + * delete param_listes + * @return id of param_listes deleted or error object if a param_listes is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'param_liste', 'id_parametre_liste'); + return $aReturn['sMessage']; + } +} +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/Param_tarif.class.inc b/src/module_anc/web_service/ws/Param_tarif.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..2da7e1530048f7e8858a879c9b06bb5e4e582ecd --- /dev/null +++ b/src/module_anc/web_service/ws/Param_tarif.class.inc @@ -0,0 +1,94 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Param_tarif.class.inc + * \class Param_tarif + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_tarif php class + * + * This class defines operation for one Param_tarif + * + */ +class Param_tarif extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_parametre_tarif", "id_com", "controle_type", "montant", "annee_validite", "devise", "libelle_montant"); + } + + /** + * @SWG\Get(path="/param_tarifs/{id_param_tarif}", + * tags={"Param_tarifs"}, + * summary="Get Param_tarif", + * description="Request to get Param_tarif by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_param_tarif", + * in="path", + * description="id_param_tarif", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Param_tarif Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_param_tarif", "id_parametre_tarif"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'param_tarif', 'id_parametre_tarif', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_parametre_tarif"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/Param_tarifs.class.inc b/src/module_anc/web_service/ws/Param_tarifs.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..7c6c2d45789be6dd3109dec927e550df6799c393 --- /dev/null +++ b/src/module_anc/web_service/ws/Param_tarifs.class.inc @@ -0,0 +1,266 @@ +<?php + +/** + * \file Param_tarifs.class.inc + * \class Param_tarifs + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_tarifs php class + * + * This class defines Rest Api to Vitis Param_tarifs + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Param_tarif.class.inc'; + + +class Param_tarifs extends Anc { + /** + * @SWG\Definition( + * definition="/param_tarifs", + * allOf={ + * @SWG\Schema(ref="#/definitions/param_tarifs") + * } + * ) + * * @SWG\Tag( + * name="Param_tarifs", + * description="Operations about Param_tarifs" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_parametre_tarif", "id_com", "controle_type", "montant", "annee_validite", "devise", "libelle_montant"); + } + + /** + * @SWG\Get(path="/param_tarifs", + * tags={"Param_tarifs"}, + * summary="Get Param_tarifs", + * description="Request to get Param_tarifs", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="param_tarif Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + + /** + * get Param_tarifs + * @return Param_tarifs + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_param_tarif", "id_parametre_tarif"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/param_tarifs", + * tags={"Param_tarifs"}, + * summary="Add param_tarif", + * description="Request to add Param_tarifs", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_tarif Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + + /** + * insert param_tarif + * @return id of the param_tarif created + */ + function POST() { + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'param_tarif', $this->aProperties['schema_anc'].'.param_tarif_id_parametre_tarif_seq', 'id_parametre_tarif'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/param_tarifs/{id_param_tarif}", + * tags={"Param_tarifs"}, + * summary="update Param_tarifs", + * description="Request to update Param_tarifs", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_tarif token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_tarif", + * in="path", + * description="id of the Param_tarifs", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + + /** + * update param_tarifs + * @return id of param_tarifs updated or error object if a param_tarifs is not updated + */ + function PUT() { + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'param_tarif', 'id_parametre_tarif'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/param_tarifs", + * tags={"Param_tarifs"}, + * summary="delete Param_tarifs", + * description="Request to delete Param_tarifs", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the param_tarif", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_tarif Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + /** + * @SWG\Delete(path="/param_tarifs/{id_param_tarif}", + * tags={"Param_tarifs"}, + * summary="delete Param_tarifs", + * description="Request to delete Param_tarifs", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_tarif token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_tarif", + * in="path", + * description="id of the Param_tarifs", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + + /** + * delete param_tarifs + * @return id of param_tarifs deleted or error object if a param_tarifs is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'param_tarif', 'id_parametre_tarif'); + return $aReturn['sMessage']; + } +} +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/Pretraitement.class.inc b/src/module_anc/web_service/ws/Pretraitement.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..f72fe963c9e4fb3c9e3bc2fda20b3a8983063b49 --- /dev/null +++ b/src/module_anc/web_service/ws/Pretraitement.class.inc @@ -0,0 +1,94 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Pretraitement.class.inc + * \class Pretraitement + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Pretraitement php class + * + * This class defines operation for one Pretraitement + * + */ +class Pretraitement extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/pretraitements/{id_pretraitement}", + * tags={"Pretraitements"}, + * summary="Get Pretraitement", + * description="Request to get Pretraitement by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_pretraitement", + * in="path", + * description="id_pretraitement", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Pretraitement Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], 'v_pretraitement', 'id_pretraitement', 'anc_saisie_anc_pretraitement', 'anc'); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_pretraitement', 'id_pretraitement', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_pretraitement"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> diff --git a/src/module_anc/web_service/ws/Pretraitements.class.inc b/src/module_anc/web_service/ws/Pretraitements.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..06cdea6a2494dc36cd386a5931b4823048f9e9b7 --- /dev/null +++ b/src/module_anc/web_service/ws/Pretraitements.class.inc @@ -0,0 +1,317 @@ +<?php + +/** + * \file Pretraitements.class.inc + * \class Pretraitements + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Pretraitements php class + * + * This class defines Rest Api to Vitis Pretraitements + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Pretraitement.class.inc'; + + +class Pretraitements extends Anc { + /** + * @SWG\Definition( + * definition="/pretraitements", + * allOf={ + * @SWG\Schema(ref="#/definitions/pretraitements") + * } + * ) + * * @SWG\Tag( + * name="Pretraitements", + * description="Operations about Pretraitements" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/pretraitements", + * tags={"Pretraitements"}, + * summary="Get Pretraitements", + * description="Request to get Pretraitements", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="pretraitement Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + + /** + * get Pretraitements + * @return Pretraitements + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_pretraitement", "id_pretraitement"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/pretraitements", + * tags={"Pretraitements"}, + * summary="Add pretraitement", + * description="Request to add Pretraitements", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="pretraitement Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + + /** + * insert pretraitement + * @return id of the pretraitement created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + + $aDates = array('ptr_vi_date'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + + // Fichiers à uploader + $aUploadFiles = array( + 'photos_f' => [], + 'fiche_f' => [], + 'schema_f' => [], + 'documents_f' => [], + 'plan_f' => [] + ); + + // Envoi Post + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_pretraitement', $this->aProperties['schema_anc'].'.pretraitement_id_pretraitement_seq', 'id_pretraitement', $aUploadFiles, 'anc_saisie_anc_pretraitement', 'anc'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/pretraitements/{id_pretraitement}", + * tags={"Pretraitements"}, + * summary="update Pretraitements", + * description="Request to update Pretraitements", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Pretraitement token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_pretraitement", + * in="path", + * description="id of the Pretraitements", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + + /** + * update pretraitements + * @return id of pretraitements updated or error object if a pretraitements is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + + $aDates = array('ptr_vi_date'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + + // Fichiers à uploader + $aUploadFiles = array( + 'photos_f' => [], + 'fiche_f' => [], + 'schema_f' => [], + 'documents_f' => [], + 'plan_f' => [] + ); + + // Envoi Put + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_pretraitement', 'id_pretraitement', $aUploadFiles, 'anc_saisie_anc_evacuation_eaux', 'anc'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/pretraitements", + * tags={"Pretraitements"}, + * summary="delete Pretraitements", + * description="Request to delete Pretraitements", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the pretraitement", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="pretraitement Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + /** + * @SWG\Delete(path="/pretraitements/{id_pretraitement}", + * tags={"Pretraitements"}, + * summary="delete Pretraitements", + * description="Request to delete Pretraitements", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Pretraitement token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_pretraitement", + * in="path", + * description="id of the Pretraitements", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + + /** + * delete pretraitements + * @return id of pretraitements deleted or error object if a pretraitements is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_pretraitement', 'id_pretraitement'); + return $aReturn['sMessage']; + } + + +} + +?> diff --git a/src/module_anc/web_service/ws/Traitement.class.inc b/src/module_anc/web_service/ws/Traitement.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..08c8b0a3f2a55b3850cc4d72334134f22de9b1c9 --- /dev/null +++ b/src/module_anc/web_service/ws/Traitement.class.inc @@ -0,0 +1,94 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Traitement.class.inc + * \class Traitement + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Traitement php class + * + * This class defines operation for one Traitement + * + */ +class Traitement extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/traitements/{id_traitement}", + * tags={"Traitements"}, + * summary="Get Traitement", + * description="Request to get Traitement by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_traitement", + * in="path", + * description="id_traitement", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Traitement Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], 'v_traitement', 'id_traitement', 'anc_saisie_anc_traitement', 'anc'); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_traitement', 'id_traitement', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_traitement"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> diff --git a/src/module_anc/web_service/ws/Traitements.class.inc b/src/module_anc/web_service/ws/Traitements.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..3be35b111eac21ce1ad16a5bcada419a0204dd83 --- /dev/null +++ b/src/module_anc/web_service/ws/Traitements.class.inc @@ -0,0 +1,297 @@ +<?php + +/** + * \file Traitements.class.inc + * \class Traitements + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Traitements php class + * + * This class defines Rest Api to Vitis Traitements + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Traitement.class.inc'; + + +class Traitements extends Anc { + /** + * @SWG\Definition( + * definition="/traitements", + * allOf={ + * @SWG\Schema(ref="#/definitions/traitements") + * } + * ) + * * @SWG\Tag( + * name="Traitements", + * description="Operations about Traitements" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->oFilesManager = new Files_manager($this->aProperties); + } + + /** + * @SWG\Get(path="/traitements", + * tags={"Traitements"}, + * summary="Get Traitements", + * description="Request to get Traitements", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="traitement Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + + /** + * get Traitements + * @return Traitements + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_traitement", "id_traitement"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/traitements", + * tags={"Traitements"}, + * summary="Add traitement", + * description="Request to add Traitements", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="traitement Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + + /** + * insert traitement + * @return id of the traitement created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + + // Fichiers à uploader + $aUploadFiles = array( + 'photos_f' => [], + 'fiche_f' => [], + 'schema_f' => [], + 'documents_f' => [], + 'plan_f' => [] + ); + + // Envoi Post + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_traitement', $this->aProperties['schema_anc'].'.traitement_id_traitement_seq', 'id_traitement', $aUploadFiles, 'anc_saisie_anc_evacuation_eaux', 'anc'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/traitements/{id_traitement}", + * tags={"Traitements"}, + * summary="update Traitements", + * description="Request to update Traitements", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Traitement token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_traitement", + * in="path", + * description="id of the Traitements", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + + /** + * update traitements + * @return id of traitements updated or error object if a traitements is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + + // Fichiers à uploader + $aUploadFiles = array( + 'photos_f' => [], + 'fiche_f' => [], + 'schema_f' => [], + 'documents_f' => [], + 'plan_f' => [] + ); + + // Envoi Put + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_traitement', 'id_traitement', $aUploadFiles, 'anc_saisie_anc_traitement', 'anc'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/traitements", + * tags={"Traitements"}, + * summary="delete Traitements", + * description="Request to delete Traitements", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the traitement", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="traitement Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + /** + * @SWG\Delete(path="/traitements/{id_traitement}", + * tags={"Traitements"}, + * summary="delete Traitements", + * description="Request to delete Traitements", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Traitement token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_traitement", + * in="path", + * description="id of the Traitements", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + + /** + * delete traitements + * @return id of traitements deleted or error object if a traitements is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_traitement', 'id_traitement'); + return $aReturn['sMessage']; + } + + +} + +?> diff --git a/src/module_anc/web_service/ws/Versions.class.inc b/src/module_anc/web_service/ws/Versions.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..55c1e16ad36587d48913f34c74e5f42aef2a2f39 --- /dev/null +++ b/src/module_anc/web_service/ws/Versions.class.inc @@ -0,0 +1,77 @@ +<?php + +require_once 'Anc.class.inc'; +/** +* \file versions.class.inc +* \class Versions +* +* \author Armand Bahi <armand.bahi@veremes.com>. +* +* \brief This file contains the Versions php class +* +* This class defines the rest api for versions +* +*/ +class Versions extends Anc{ + + /** + * @SWG\Definition( + * definition="/Versions", + * allOf={ + * @SWG\Schema(ref="#/definitions/Versions") + * } + * ) + * @SWG\Tag( + * name="Versions", + * description="Operations about versions" + * ) + */ + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $versions ptroperties + */ + function __construct($aPath, $aValues, $properties){ + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + } + + /** + * @SWG\Get(path="/Versions", + * tags={"Versions"}, + * summary="Get versions", + * description="Request to get versions", + * 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\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/Versions") + * ) + * ) + */ + /** + * + * @return versions + */ + function GET(){ + $this->getVersion("anc"); + //$this->aFields = $this->aVersions; + + // + $aXmlRacineAttribute['status']=1; + $sMessage = $this->asDocument('','vitis',$this->aValues['sEncoding'],True,$aXmlRacineAttribute,$this->aValues['sSourceEncoding'],$this->aValues['output']); + return $sMessage; + } +} + +?> \ No newline at end of file diff --git a/src/module_anc/web_service/ws/overview.phtml b/src/module_anc/web_service/ws/overview.phtml new file mode 100755 index 0000000000000000000000000000000000000000..9697daeff7a43c70f06f0e3f14ee5e4d7adcd9de --- /dev/null +++ b/src/module_anc/web_service/ws/overview.phtml @@ -0,0 +1,24 @@ +<?php +/** + * @SWG\Swagger( + * basePath="/[service_alias]/anc", + * host="[server]", + * schemes={"[protocol]"}, + * produces={ + * "application/json", + "application/xml", + "text/html" + * }, + * @SWG\Info( + * version="1.0.0", + * title="Anc Test Rest", + * description="All fetaures to access server operation for anc", + * ) + * ) + */ +?> + +<h1 class="titleOverview">Service Anc</h1> +<p> + <a class="linkOverview" href="javascript:sService='anc';LoadApi()">Anc</a>: this is the most comprehensive service which should be used as a preference when developing applications communicating with Anc. Those services allow you to administrate Anc applications. +</p> \ No newline at end of file diff --git a/src/module_anomalies b/src/module_anomalies deleted file mode 160000 index ecc9063859ead70e05e8c18abdd561f0efa1d54c..0000000000000000000000000000000000000000 --- a/src/module_anomalies +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ecc9063859ead70e05e8c18abdd561f0efa1d54c diff --git a/src/module_anomalies/README.md b/src/module_anomalies/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a7ca92f227d0ba5654268a473d0fd069e176178a --- /dev/null +++ b/src/module_anomalies/README.md @@ -0,0 +1,3 @@ +# module_anomalies + +Module Anomalies pour vMap \ No newline at end of file diff --git a/src/module_anomalies/_install/apache.conf b/src/module_anomalies/_install/apache.conf new file mode 100755 index 0000000000000000000000000000000000000000..57f1a070ad84b3cc173e7ebf468ece80a3e8bf5a --- /dev/null +++ b/src/module_anomalies/_install/apache.conf @@ -0,0 +1,4 @@ + + <Directory "[VASDIRECTORY]/public/anomalies"> + Require all denied + </Directory> \ No newline at end of file diff --git a/src/module_anomalies/_install/dependency.xml b/src/module_anomalies/_install/dependency.xml new file mode 100755 index 0000000000000000000000000000000000000000..30cbac3368063dcb1f2fd645cfae9c1630fe4138 --- /dev/null +++ b/src/module_anomalies/_install/dependency.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- WS Anomalies --> +<installer> + <schema> + <name>s_anomalies</name> + <dependenciesCollection> + <dependency> + <nature>schema</nature> + <name>s_vmap</name> + <object>module_vmap</object> + </dependency> + <dependency> + <name>postgis</name> + <version>2.0</version> + <nature>extern-pre</nature> + </dependency> + </dependenciesCollection> + </schema> + <dependenciesCollection> + <dependency> + <nature>framework</nature> + <name>vitis</name> + </dependency> + <dependency> + <nature>modules</nature> + <name>module_vmap</name> + </dependency> + </dependenciesCollection> +</installer> diff --git a/src/module_anomalies/doc/20200811_vmap_demandes_corrections_ameliorations_module_anomalies.pdf b/src/module_anomalies/doc/20200811_vmap_demandes_corrections_ameliorations_module_anomalies.pdf new file mode 100644 index 0000000000000000000000000000000000000000..ad28c98cb9631cd9dc1696a6e70eabeccdd72655 Binary files /dev/null and b/src/module_anomalies/doc/20200811_vmap_demandes_corrections_ameliorations_module_anomalies.pdf differ diff --git a/src/module_anomalies/web_service/conf/properties.inc b/src/module_anomalies/web_service/conf/properties.inc new file mode 100644 index 0000000000000000000000000000000000000000..961e47e7bff8c4c57e3ed8b364f2505c38057c04 --- /dev/null +++ b/src/module_anomalies/web_service/conf/properties.inc @@ -0,0 +1,115 @@ +<?php + +$properties["anomalies_email_admin"] = ''; + +$properties["email_object_user_create_anomaly"] = "L'anomalie VMAP n°{{anomaly.anomalies_id}} a été créée"; +$properties["email_user_create_anomaly"] = "Bonjour,<br/> +<br/> +Vous venez de créer une nouvelle anomalie le {{anomaly.anomalies_date}} :<br/> +Identifiant : {{anomaly.anomalies_id}}<br/> +Thème : {{anomaly.theme_name}}<br/> +Titre : {{anomaly.title}}<br/> +Description : {{anomaly.description}}<br/> +Coordonnées pour vous recontacter : {{anomaly.contact}}<br/> +<br/> +Nous vous remercions pour votre retour et y donnerons suite dès que possible.<br/> +Vous pouvez suivre la prise en charge de votre demande depuis l’onglet « Anomalies » du MODULE ANOMALIES dans vmap.<br/> +<br/> +Bien cordialement,<br/> +L’équipe SIG"; + +$properties["email_object_user_update_anomaly"] = "L'anomalie VMAP n°{{anomaly.anomalies_id}} a été mise à jour"; +$properties["email_user_update_anomaly"] = "Bonjour,<br/> +<br/> +La modification de votre anomalie n°{{anomaly.anomalies_id}} a bien été enregistrée le {{anomaly.last_update_date}}.<br/> +Identifiant : {{anomaly.anomalies_id}}<br/> +Thème : {{anomaly.theme_name}}<br/> +Titre : {{anomaly.title}}<br/> +Description : {{anomaly.description}}<br/> +Coordonnées pour vous recontacter : {{anomaly.contact}}<br/> +<br/> +Bien cordialement,<br/> +L’équipe SIG"; + +$properties["email_object_user_status_in_progress_anomaly"] = "L'anomalie VMAP n°{{anomaly.anomalies_id}} est en cours de traitement"; +$properties["email_user_status_in_progress_anomaly"] = "Bonjour,<br/> +<br/> +Votre anomalie n°{{anomaly.anomalies_id}} « {{anomaly.title}} » du {{anomaly.anomalies_date}} est en cours de traitement.<br/> +<br/> +Bien cordialement,<br/> +L’équipe SIG"; + +$properties["email_object_user_status_waiting_anomaly"] = "L'anomalie VMAP n°{{anomaly.anomalies_id}} est en attente d'information"; +$properties["email_user_status_waiting_anomaly"] = "Bonjour,<br/> +<br/> +Nous sommes en attente d’informations pour le traitement de votre anomalie n°{{anomaly.anomalies_id}} « {{anomaly.title}} » du {{anomaly.anomalies_date}}.<br/> +N’hésitez pas à nous recontacter pour plus de précisions.<br/> +<br/> +Bien cordialement,<br/> +L’équipe SIG"; + +$properties["email_object_user_status_cancel_anomaly"] = "L'anomalie VMAP n°{{anomaly.anomalies_id}} a été annulée"; +$properties["email_user_status_cancel_anomaly"] = "Bonjour,<br/> +<br/> +Votre anomalie n°{{anomaly.anomalies_id}} « {{anomaly.title}} » du {{anomaly.anomalies_date}} a été annulée, à votre demande ou par votre administrateur SIG.<br/> +N’hésitez pas à nous recontacter pour plus de précisions.<br/> +<br/> +Bien cordialement,<br/> +L’équipe SIG"; + +$properties["email_object_user_status_finished_anomaly"] = "L'anomalie VMAP n°{{anomaly.anomalies_id}} a été traitée"; +$properties["email_user_status_finished_anomaly"] = "Bonjour,<br/> +<br/> +Votre anomalie n°{{anomaly.anomalies_id}} « {{anomaly.title}} » du {{anomaly.anomalies_date}} a été traitée, la demande est clôturée le {{anomaly.closing_date}}.<br/> +Remarques éventuelles : {{anomaly.admin_comment}}.<br/> +<br/> +Merci encore pour vos retours,<br/> +<br/> +Bien cordialement,<br/> +L’équipe SIG"; + +$properties["email_object_admin_create_anomaly"] = "Anomalie VMAP n°{{anomaly.anomalies_id}} – {{anomaly.theme_name}} – {{anomaly.title}}"; +$properties["email_admin_create_anomaly"] = "MODULE ANOMALIE VMAP<br/> +<br/> +Une nouvelle anomalie a été signalée le {{anomaly.anomalies_date}} :<br/> +Identifiant : {{anomaly.anomalies_id}}<br/> +Thème : {{anomaly.theme_name}}<br/> +Titre : {{anomaly.title}}<br/> +Description : {{anomaly.description}}<br/> +Coordonnées pour vous recontacter : {{anomaly.contact}}<br/> +<br/> +Utilisateur : {{anomaly.login}}<br/> +Coordonnées : {{anomaly.user_email}}"; + +$properties["email_object_admin_update_anomaly"] = "Anomalie VMAP n°{{anomaly.anomalies_id}} – {{anomaly.theme_name}} – {{anomaly.title}}"; +$properties["email_admin_update_anomaly"] = "MODULE ANOMALIE VMAP<br/> +<br/> +L’ anomalie n°{{anomaly.anomalies_id}} a été modifiée le {{anomaly.last_update_date}}. :<br/> +Identifiant : {{anomaly.anomalies_id}}<br/> +Thème : {{anomaly.theme_name}}<br/> +Titre : {{anomaly.title}}<br/> +Description : {{anomaly.description}}<br/> +Coordonnées pour vous recontacter : {{anomaly.contact}}<br/> +<br/> +Utilisateur : {{anomaly.login}}<br/> +Coordonnées : {{anomaly.user_email}}"; + +$properties["email_object_admin_status_change_anomaly"] = "Anomalie VMAP n°{{anomaly.anomalies_id}} – {{anomaly.theme_name}} – {{anomaly.title}}"; +$properties["email_admin_status_change_anomaly"] = "MODULE ANOMALIE VMAP<br/> +<br/> +L’anomalie n°{{anomaly.anomalies_id}} « {{anomaly.title}} » du {{anomaly.anomalies_date}} a pris le statut {{anomaly.status_name}} le {{anomaly.last_update_date}}.<br/> +<br/> +Utilisateur : {{anomaly.login}}<br/> +Coordonnées : {{anomaly.user_email}}"; + +$properties["email_object_admin_finished_anomaly"] = "Anomalie VMAP n°{{anomaly.anomalies_id}} – {{anomaly.theme_name}} – {{anomaly.title}}"; +$properties["email_admin_finished_anomaly"] = "MODULE ANOMALIE VMAP<br/> +<br/> +L’anomalie n°{{anomaly.anomalies_id}} « {{anomaly.title}} » du {{anomaly.anomalies_date}} a été clôturée le {{anomaly.closing_date}}.<br/> +<br/> +Remarques : {{anomaly.admin_comment}}.<br/> +<br/> +Utilisateur : {{anomaly.login}}<br/> +Coordonnées : {{anomaly.user_email}}"; + +$properties["anomalies_max_zoom"] = 11; \ No newline at end of file diff --git a/src/module_anomalies/web_service/conf/properties_server.inc b/src/module_anomalies/web_service/conf/properties_server.inc new file mode 100644 index 0000000000000000000000000000000000000000..b92137fef8e85406c46b9e0b919b86a86bffa626 --- /dev/null +++ b/src/module_anomalies/web_service/conf/properties_server.inc @@ -0,0 +1,3 @@ +<?php + +$properties['schema_anomalies'] = 's_anomalies'; diff --git a/src/module_anomalies/web_service/conf/selected_properties.inc b/src/module_anomalies/web_service/conf/selected_properties.inc new file mode 100644 index 0000000000000000000000000000000000000000..075acb70e54eb250e89e548dac2f15d7ca4af66d --- /dev/null +++ b/src/module_anomalies/web_service/conf/selected_properties.inc @@ -0,0 +1,12 @@ +<?php + +$aAdminFields = Array( + 'anomalies_max_zoom', +); +$aUserFields = Array( + 'anomalies_max_zoom', +); + +$properties['aAdminFields'] = array_merge($properties['aAdminFields'], $aAdminFields); +$properties['aUserFields'] = array_merge($properties['aUserFields'], $aUserFields); +?> \ No newline at end of file diff --git a/src/module_anomalies/web_service/conf/version.inc b/src/module_anomalies/web_service/conf/version.inc new file mode 100644 index 0000000000000000000000000000000000000000..08155bfa81fe53c6a789c6ee453739716e18861b --- /dev/null +++ b/src/module_anomalies/web_service/conf/version.inc @@ -0,0 +1,7 @@ +<?php +// Numéro de la version de Vmap anomalies +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_anomalies/web_service/sql/sqlQueries.xml b/src/module_anomalies/web_service/sql/sqlQueries.xml new file mode 100644 index 0000000000000000000000000000000000000000..f431772cbd8ef021d40d1fddbfcf493c0cd3955e --- /dev/null +++ b/src/module_anomalies/web_service/sql/sqlQueries.xml @@ -0,0 +1,98 @@ +<?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>2020.01.00</version> + <code> + <![CDATA[ + -- Création du schéma et des roles + CREATE SCHEMA s_anomalies; + select s_vitis.create_role_if_not_exists('vmap_anomalies_admin', 'NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION'); + select s_vitis.create_role_if_not_exists('vmap_anomalies_user', 'NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION'); + select s_vitis.create_role_if_not_exists('vmap_anomalies_light_user', 'NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION'); + ALTER SCHEMA s_anomalies OWNER TO u_vitis; + REVOKE ALL ON SCHEMA s_anomalies FROM PUBLIC; + REVOKE ALL ON SCHEMA s_anomalies FROM u_vitis; + GRANT ALL ON SCHEMA s_anomalies TO u_vitis; + GRANT USAGE ON SCHEMA s_anomalies TO vmap_anomalies_admin; + GRANT USAGE ON SCHEMA s_anomalies TO vmap_anomalies_user; + GRANT USAGE ON SCHEMA s_anomalies TO vmap_anomalies_light_user; + -- Ajout du module dans vmap + INSERT INTO s_vitis.privileges(rolname, description) VALUES ('vmap_anomalies_admin', 'rôle administrateur du module anomalies de vMap'); + INSERT INTO s_vitis.privileges(rolname, description) VALUES ('vmap_anomalies_user', 'rôle utilisateur du module anomalies de vMap'); + INSERT INTO s_vitis.privileges(rolname, description) VALUES ('vmap_anomalies_light_user', 'rôle utilisateur du module anomalies light de vMap'); + INSERT INTO s_vmap.module(module_id, description, label, rolname, rolname_list) VALUES ('anomalies', 'Module anomalies', 'Module anomalies', 'vmap_anomalies_user', 'vmap_anomalies_admin|vmap_anomalies_user|vmap_anomalies_light_user'); + -- Création d'une table version + CREATE TABLE s_anomalies.version(version character varying(100) NOT NULL, build integer NOT NULL, date timestamp with time zone NOT NULL, active boolean, CONSTRAINT pk_version PRIMARY KEY (version)); + ALTER TABLE s_anomalies.version OWNER TO u_vitis; + GRANT ALL ON TABLE s_anomalies.version TO vmap_anomalies_admin; + GRANT ALL ON TABLE s_anomalies.version TO vmap_anomalies_user; + GRANT ALL ON TABLE s_anomalies.version TO vmap_anomalies_light_user; + -- Création d'une séquence commune + CREATE SEQUENCE s_anomalies.seq_common START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + ALTER TABLE s_anomalies.seq_common OWNER TO u_vitis; + GRANT ALL ON SEQUENCE s_anomalies.seq_common TO vmap_anomalies_admin; + GRANT SELECT ON SEQUENCE s_anomalies.seq_common TO vmap_anomalies_user; + GRANT SELECT ON SEQUENCE s_anomalies.seq_common TO vmap_anomalies_light_user; + -- Création table status + CREATE TABLE s_anomalies.rt_anomalies_status (status_id integer NOT NULL, name character varying(50) COLLATE pg_catalog."default" NOT NULL, description character varying(255) COLLATE pg_catalog."default" DEFAULT NULL::character varying, color character varying(255) COLLATE pg_catalog."default" DEFAULT NULL::character varying); + ALTER TABLE s_anomalies.rt_anomalies_status OWNER TO u_vitis; + GRANT ALL ON TABLE s_anomalies.rt_anomalies_status TO vmap_anomalies_admin; + GRANT SELECT ON TABLE s_anomalies.rt_anomalies_status TO vmap_anomalies_user; + GRANT SELECT ON TABLE s_anomalies.rt_anomalies_status TO vmap_anomalies_light_user; + -- Insertion des status + INSERT INTO s_anomalies.rt_anomalies_status (status_id, name, description, color) VALUES (1, 'Nouveau', 'Nouveau: L’anomalie a été créée récemment.', '#00F80B'); + INSERT INTO s_anomalies.rt_anomalies_status (status_id, name, description, color) VALUES (2, 'En attente d’information', 'En attente d’information: L’anomalie est prise en charge mais des éléments sont manquants pour pouvoir enclencher l’En cours (nécessite prise de contact avec le login qui a signalé pour plus de précisions).', '#DD7500'); + INSERT INTO s_anomalies.rt_anomalies_status(status_id, name, description, color) VALUES (3, 'En cours', 'En cours: L’anomalie est confirmée, comprise, et elle est en cours de résolution.', '#387AFF'); + INSERT INTO s_anomalies.rt_anomalies_status (status_id, name, description, color) VALUES (4, 'Terminé', 'Terminé: L’anomalie est résolue (équivalent à archiver).', '#050505'); + INSERT INTO s_anomalies.rt_anomalies_status (status_id, name, description, color) VALUES (5, 'Annulé', 'Annulé: L’utilisateur ou l’administrateur si on se rend compte après signalement que ce n’est pas une anomalie', '#FF0000'); + -- Création table theme + CREATE TABLE s_anomalies.anomalies_theme (theme_id integer NOT NULL DEFAULT nextval('s_anomalies.seq_common'::regclass), name character varying(50) NOT NULL, short_name character varying(50) NOT NULL, description character varying(255) COLLATE pg_catalog."default" DEFAULT NULL::character varying); + ALTER TABLE s_anomalies.anomalies_theme OWNER TO u_vitis; + GRANT ALL ON TABLE s_anomalies.anomalies_theme TO vmap_anomalies_admin; + GRANT SELECT ON TABLE s_anomalies.anomalies_theme TO vmap_anomalies_user; + GRANT SELECT ON TABLE s_anomalies.anomalies_theme TO vmap_anomalies_light_user; + -- Création séquence s_anomalies + CREATE SEQUENCE s_anomalies.seq_anomalies_id START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; + ALTER TABLE s_anomalies.seq_anomalies_id OWNER TO u_vitis; + GRANT ALL ON SEQUENCE s_anomalies.seq_anomalies_id TO vmap_anomalies_admin; + GRANT ALL ON SEQUENCE s_anomalies.seq_anomalies_id TO vmap_anomalies_user; + GRANT SELECT ON SEQUENCE s_anomalies.seq_anomalies_id TO vmap_anomalies_light_user; + -- Création table anomalies + CREATE TABLE s_anomalies.anomalies (anomalies_id integer DEFAULT nextval('s_anomalies.seq_anomalies_id'::regclass) NOT NULL, status_id integer, theme_id integer NOT NULL, title character varying(255) NOT NULL, description text NOT NULL, files text, contact character varying(255), user_id integer NOT NULL, anomalies_date timestamp with time zone NOT NULL DEFAULT NOW(), last_update_date timestamp with time zone, closing_date timestamp with time zone, map_id integer NOT NULL, admin_comment text, geom geometry(MultiPoint), CONSTRAINT enforce_srid_geom CHECK (st_srid(geom) = $(SRID))); + ALTER TABLE s_anomalies.anomalies OWNER TO u_vitis; + GRANT ALL ON TABLE s_anomalies.anomalies TO vmap_anomalies_admin; + GRANT ALL ON TABLE s_anomalies.anomalies TO vmap_anomalies_user; + GRANT SELECT ON TABLE s_anomalies.anomalies TO vmap_anomalies_light_user; + -- Création vue v_anomalies + CREATE OR REPLACE VIEW s_anomalies.v_anomalies AS SELECT anomalies.anomalies_id, anomalies.status_id, status.name AS status_name, status.color AS status_color, anomalies.theme_id, theme.name AS theme_name, theme.short_name as theme_short_name, anomalies.title, anomalies.description, anomalies.files, anomalies.contact, anomalies.user_id, "user".login, "user".name AS user_name, "user".email as user_email, anomalies.anomalies_date, anomalies.last_update_date, anomalies.closing_date, anomalies.map_id, anomalies.admin_comment, anomalies.geom FROM s_anomalies.anomalies LEFT JOIN s_vitis.user ON anomalies.user_id = "user".user_id LEFT JOIN s_anomalies.anomalies_theme as theme ON anomalies.theme_id = theme.theme_id LEFT JOIN s_anomalies.rt_anomalies_status as status ON anomalies.status_id = status.status_id; + ALTER TABLE s_anomalies.v_anomalies OWNER TO u_vitis; + GRANT ALL ON TABLE s_anomalies.v_anomalies TO vmap_anomalies_admin; + GRANT ALL ON TABLE s_anomalies.v_anomalies TO vmap_anomalies_user; + GRANT SELECT ON TABLE s_anomalies.v_anomalies TO vmap_anomalies_light_user; + GRANT ALL ON TABLE s_anomalies.v_anomalies TO u_vitis; + -- Création d'une table pour les styles de features + ALTER TABLE s_anomalies.anomalies_theme ADD CONSTRAINT unique_theme_name UNIQUE (name); + ALTER TABLE s_anomalies.rt_anomalies_status ADD CONSTRAINT unique_status_name UNIQUE (name); + CREATE TABLE s_anomalies.anomalies_feature_style (anomalies_feature_style_id integer NOT NULL DEFAULT nextval('s_anomalies.seq_common'::regclass), theme_name character varying(50) REFERENCES s_anomalies.anomalies_theme(name), status_name character varying(50) REFERENCES s_anomalies.rt_anomalies_status(name), feature_style_id integer NOT NULL, CONSTRAINT pk_anomalies_feature_style_id PRIMARY KEY (anomalies_feature_style_id), CONSTRAINT u_constrainte UNIQUE (theme_name, status_name), CONSTRAINT fk_featurestyle FOREIGN KEY (feature_style_id) REFERENCES s_vitis.feature_style(feature_style_id)); + ALTER TABLE s_anomalies.anomalies_feature_style OWNER to u_vitis; + GRANT ALL ON TABLE s_anomalies.anomalies_feature_style TO u_vitis; + CREATE OR REPLACE VIEW s_anomalies.v_anomalies_feature_style AS SELECT anomalies_feature_style.status_name, anomalies_feature_style.theme_name, feature_style.feature_style_id, feature_style.draw_color, feature_style.draw_outline_color, feature_style.draw_size, feature_style.draw_dash, feature_style.draw_symbol, feature_style.draw_rotation, feature_style.text_font, feature_style.text_color, feature_style.text_outline_color, feature_style.text_size, feature_style.text_outline_size, feature_style.text_offset_x, feature_style.text_offset_y, feature_style.text_rotation, feature_style.text_text, feature_style.image FROM s_anomalies.anomalies_feature_style LEFT JOIN s_vitis.feature_style ON anomalies_feature_style.feature_style_id = feature_style.feature_style_id; + ALTER TABLE s_anomalies.v_anomalies_feature_style OWNER TO u_vitis; + GRANT ALL ON TABLE s_anomalies.v_anomalies_feature_style TO vmap_anomalies_admin; + GRANT SELECT ON TABLE s_anomalies.v_anomalies_feature_style TO vmap_anomalies_user; + GRANT SELECT ON TABLE s_anomalies.v_anomalies_feature_style TO vmap_anomalies_light_user; + GRANT ALL ON TABLE s_anomalies.v_anomalies_feature_style TO u_vitis; + -- Insertion des données style + WITH rows AS ( INSERT INTO s_vitis.feature_style(draw_color, draw_outline_color, draw_size, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES ('#00F80B', '#000000', 5, '', '', '#ffffff', '#000000', 18, 2, 0, 20, 0, '', 'point') RETURNING feature_style_id) INSERT INTO s_anomalies.anomalies_feature_style(theme_name, status_name, feature_style_id) VALUES (NULL, 'Nouveau', (SELECT feature_style_id FROM rows)); + WITH rows AS ( INSERT INTO s_vitis.feature_style(draw_color, draw_outline_color, draw_size, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES ('#DD7500', '#000000', 5, '', '', '#ffffff', '#000000', 18, 2, 0, 20, 0, '', 'point') RETURNING feature_style_id) INSERT INTO s_anomalies.anomalies_feature_style(theme_name, status_name, feature_style_id) VALUES (NULL, 'En attente d’information', (SELECT feature_style_id FROM rows)); + WITH rows AS ( INSERT INTO s_vitis.feature_style(draw_color, draw_outline_color, draw_size, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES ('#387AFF', '#000000', 5, '', '', '#ffffff', '#000000', 18, 2, 0, 20, 0, '', 'point') RETURNING feature_style_id) INSERT INTO s_anomalies.anomalies_feature_style(theme_name, status_name, feature_style_id) VALUES (NULL, 'En cours', (SELECT feature_style_id FROM rows)); + WITH rows AS ( INSERT INTO s_vitis.feature_style(draw_color, draw_outline_color, draw_size, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES ('#050505', '#000000', 5, '', '', '#ffffff', '#000000', 18, 2, 0, 20, 0, '', 'point') RETURNING feature_style_id) INSERT INTO s_anomalies.anomalies_feature_style(theme_name, status_name, feature_style_id) VALUES (NULL, 'Terminé', (SELECT feature_style_id FROM rows)); + WITH rows AS ( INSERT INTO s_vitis.feature_style(draw_color, draw_outline_color, draw_size, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES ('#FF0000', '#000000', 5, '', '', '#ffffff', '#000000', 18, 2, 0, 20, 0, '', 'point') RETURNING feature_style_id) INSERT INTO s_anomalies.anomalies_feature_style(theme_name, status_name, feature_style_id) VALUES (NULL, 'Annulé', (SELECT feature_style_id FROM rows)); + ]]> + </code> + </query> + </queriesCollection> +</sqlQueries> diff --git a/src/module_anomalies/web_service/ws/Anomalie.class.inc b/src/module_anomalies/web_service/ws/Anomalie.class.inc new file mode 100644 index 0000000000000000000000000000000000000000..ecebe1b96e1499c171aabec48884ce6919b5228d --- /dev/null +++ b/src/module_anomalies/web_service/ws/Anomalie.class.inc @@ -0,0 +1,80 @@ +<?php + +require_once 'Anomalies.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Anomalie.class.inc + * \class Anomalie + * + * \author Ludivine Premont <ludivine.premont@veremes.com>. + * + * \brief This file contains the Anomalie php class + * + * This class defines operation for one Anomalie + * + */ +class Anomalie extends Vitis { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + $this->aSelectedFields = Array('anomalies_id', 'status_id', 'status_name', 'status_color', 'theme_id', 'theme_name', 'theme_short_name', 'title', 'description', 'files', 'contact', 'user_id', 'login', 'user_name', 'email', 'anomalies_date', 'last_update_date', 'closing_date', 'map_id', 'admin_comment', 'geom'); + } + + /** + * @SWG\Get(path="/anomalies/{anomalies_id}", + * tags={"Anomalies"}, + * summary="Get Anomalie", + * description="Request to get Anomalie 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="anomalies_id", + * in="path", + * description="anomalie id", + * 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="Poprerties Response", + * @SWG\Schema(ref="#/definitions/anomalie") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + require dirname($_SERVER['SCRIPT_FILENAME']) . "/ws/vitis/" . $this->sRessourcesFile; + $this->aFields = $this->getFields($this->aProperties['schema_anomalies'], "v_anomalies", "anomalies_id", 'anomalies', 'anomalies'); + } +} + +?> \ No newline at end of file diff --git a/src/module_anomalies/web_service/ws/Anomalies.class.inc b/src/module_anomalies/web_service/ws/Anomalies.class.inc new file mode 100644 index 0000000000000000000000000000000000000000..d6e0d4307d7ed24cd8b3f3a0cbab4a85d162044f --- /dev/null +++ b/src/module_anomalies/web_service/ws/Anomalies.class.inc @@ -0,0 +1,531 @@ +<?php + +/** + * \file Anomalies.class.inc + * \class Anomalies + * + * \author Ludivine Premont <ludivine.premont@veremes.com>. + * + * \brief This file contains the Modes php class + * + * This class defines Rest Api to Vitis Anomalies + * + */ +require_once 'AnomaliesAnomalies.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; +require_once 'Anomalie.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/Email.class.inc'; + +class Anomalies extends AnomaliesAnomalies { + /** + * @SWG\Definition( + * definition="/anomalie", + * allOf={ + * @SWG\Schema(ref="#/definitions/anomalie") + * } + * ) + * * @SWG\Tag( + * name="Anomalies", + * description="Operations about Anomalies" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + $this->aSelectedFields = Array('anomalies_id', 'status_id', 'status_name', 'status_color', 'theme_id', 'theme_name', 'theme_short_name', 'title', 'description', 'files', 'contact', 'user_id', 'login', 'user_name', 'email', 'anomalies_date', 'last_update_date', 'closing_date', 'map_id', 'admin_comment', 'geom'); + } + + /** + * @SWG\Get(path="/anomalies", + * tags={"Anomalies"}, + * summary="Get Anomalies", + * description="Request to get Anomalies", + * 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="Properties Response", + * @SWG\Schema(ref="#/definitions/anomalies") + * ) + * ) + */ + + /** + * get Anomalies + * @return Anomalies + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anomalies'], "v_anomalies", "anomalies_id", false, 'anomalies', 'anomalies'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Post(path="/anomalies", + * tags={"Anomalies"}, + * summary="Add Anomaly", + * description="Request to add anomaly", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="formData", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="geom", + * in="formData", + * description="geom of the anomaly", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="theme_id", + * in="formData", + * description="theme of the anomaly", + * required=true, + * type="integer" + * ), + * @SWG\Parameter( + * name="title", + * in="formData", + * description="title of the anomaly", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="description", + * in="formData", + * description="description of the anomaly", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="files", + * in="formData", + * description="files of the anomaly", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="contact", + * in="formData", + * description="contact who declare the anomaly", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="user_id", + * in="formData", + * description="user who declare the anomaly", + * required=true, + * type="integer" + * ), + * @SWG\Parameter( + * name="map_id", + * in="formData", + * description="map of the anomaly", + * required=true, + * type="integer" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/anomalies") + * ) + * ) + */ + + /** + * insert anomaly + * @return id of the anomaly created + */ + function POST() { + require 'Anomalies.class.sql.inc'; + + // Selectionne le status par défaut + $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"]); + $aParams = array( + "SCHEMA" => array("value" => $this->aProperties["schema_anomalies"], "type" => "column_name"), + "STATUS_NAME" => array("value" => 'Nouveau', "type" => "string"), + ); + $oPDOresult = $oBd->executeWithParams($aSql['selectStatus'], $aParams); + $oStatus = $oBd->ligneSuivante($oPDOresult); + + $this->aValues['status_id'] = $oStatus['status_id']; + + // Si il a au moins un fichier + if (!empty($_FILES['files'])) { + + // On vérifie que la somme des tailles des fichiers est plus petite que 20Mo + if ($this->getFilesSize() < (20 * 1000000)) { + $aReturn = $this->genericPost($this->aProperties['schema_anomalies'], 'anomalies', $this->aProperties['schema_anomalies'] . '.seq_anomalies_id', 'anomalies_id', array('*'), 'anomalies', 'anomalies'); + } else { + // ERROR + $aReturn = array(); + $aReturn['status'] = 0; + $aReturn['errorMessage'] = "Les fichiers sont trop volumineux"; + return json_encode($aReturn); + } + } else { + $aReturn = $this->genericPost($this->aProperties['schema_anomalies'], 'anomalies', $this->aProperties['schema_anomalies'] . '.seq_anomalies_id', 'anomalies_id'); + } + + // Envoi d'une email de confirmation de création a l'utilisateur (si il a une adresse) et à l'admin + $oMessage = json_decode($aReturn['sMessage']); + if ($oMessage->status == 1) { + $oAnomaly = $this->getAnomaly($oMessage->anomalies_id); + $this->prepareAndSendEmail('email_user_create_anomaly', $oAnomaly, 'email_object_user_create_anomaly', false); + $this->prepareAndSendEmail('email_admin_create_anomaly', $oAnomaly, 'email_object_admin_create_anomaly', true); + } + + return $aReturn['sMessage']; + } + + /** + * @SWG\Post(path="/anomalies/{anomalies_id}", + * tags={"Anomalies"}, + * summary="Add Anomaly", + * description="Request to add anomaly", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="formData", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="geom", + * in="formData", + * description="geom of the anomaly", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="theme_id", + * in="formData", + * description="theme of the anomaly", + * required=true, + * type="integer" + * ), + * @SWG\Parameter( + * name="title", + * in="formData", + * description="title of the anomaly", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="description", + * in="formData", + * description="description of the anomaly", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="files", + * in="formData", + * description="files of the anomaly", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="contact", + * in="formData", + * description="contact who declare the anomaly", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="status_id", + * in="formData", + * description="status of the anomaly", + * required=true, + * type="integer" + * ), + * @SWG\Parameter( + * name="admin_comment", + * in="formData", + * description="map of the anomaly", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="geom", + * in="formData", + * description="geom of the anomaly", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/anomalies") + * ) + * ) + */ + + /** + * update anomaly + * @return id of the anomaly created + */ + function PUT() { + + $oAnomaly = $this->getAnomaly($this->aValues['anomalies_id']); + $this->aValues['last_update_date'] = 'NOW()'; + // Le statut vaut 'terminé' (4) ou 'annulé' (5), initialise la date de clôture + if ($this->aValues['status_id'] == 4 || $this->aValues['status_id'] == 5) { + $this->aValues['closing_date'] = 'NOW()'; + } + + if ($this->aValues['status_id'] == 4 && (!isset($this->aValues['admin_comment']) || $this->aValues['admin_comment'] === '')) { + // ERROR + $aReturn = array(); + $aReturn['status'] = 0; + $aReturn['errorMessage'] = "Le commentaire administrateur est obligatoire pour clôturer une demande"; + return json_encode($aReturn); + } + + // Si il a au moins un fichier + if (!empty($_FILES['files'])) { + // On vérifie que la somme des tailles des fichiers est plus petite que 20Mo + if ($this->getFilesSize() < (20 * 1000000)) { + $aReturn = $this->genericPut($this->aProperties['schema_anomalies'], 'anomalies', 'anomalies_id', array('*'), 'anomalies', 'anomalies'); + } else { + // ERROR + $aReturn = array(); + $aReturn['status'] = 0; + $aReturn['errorMessage'] = "Les fichiers sont trop volumineux"; + return json_encode($aReturn); + } + } else if (!empty($this->aValues['vitis_deleted_files'])) { + $aReturn = $this->genericPut($this->aProperties['schema_anomalies'], 'anomalies', 'anomalies_id', array('*'), 'anomalies', 'anomalies'); + } else { + $aReturn = $this->genericPut($this->aProperties['schema_anomalies'], 'anomalies', 'anomalies_id'); + } + + // Envoi d'une email de confirmation de création a l'utilisateur (si il a une adresse) et à l'admin + $oMessage = json_decode($aReturn['sMessage']); + if ($oMessage->status == 1) { + $emailUserTitle = ''; + $emailAdminTitle = ''; + $emailUserId = ''; + $emailAdminId = ''; + + // Si le status change + if (isset($this->aValues['status_id']) && $oAnomaly['status_id'] != $this->aValues['status_id']) { + $emailAdminTitle = 'email_object_admin_status_change_anomaly'; + $emailAdminId = 'email_admin_status_change_anomaly'; + switch ($this->aValues['status_id']) { + case '2': // En attente d’information + $emailUserTitle = 'email_object_user_status_waiting_anomaly'; + $emailUserId = 'email_user_status_waiting_anomaly'; + break; + case '3': // En cours + $emailUserTitle = 'email_object_user_status_in_progress_anomaly'; + $emailUserId = 'email_user_status_in_progress_anomaly'; + break; + case '4': // Terminé + $emailUserTitle = 'email_object_user_status_finished_anomaly'; + $emailUserId = 'email_user_status_finished_anomaly'; + $emailAdminTitle = 'email_object_admin_finished_anomaly'; + $emailAdminId = 'email_admin_finished_anomaly'; + break; + case '5': // Annulé + $emailUserTitle = 'email_object_user_status_cancel_anomaly'; + $emailUserId = 'email_user_status_cancel_anomaly'; + break; + default: + break; + } + } else if ($oAnomaly['login'] == $_SESSION["ses_Login"]) { // Si la modification vient de l'utilisateur + $emailUserTitle = 'email_object_user_update_anomaly'; + $emailAdminTitle = 'email_object_admin_update_anomaly'; + $emailUserId = 'email_user_update_anomaly'; + $emailAdminId = 'email_admin_update_anomaly'; + } + + $oAnomaly = $this->getAnomaly($oMessage->anomalies_id); + if ($emailUserTitle != '' && $emailUserId != '') { + $this->prepareAndSendEmail($emailUserId, $oAnomaly, $emailUserTitle, false); + } + if ($emailAdminTitle != '' && $emailAdminId != '') { + $this->prepareAndSendEmail($emailAdminId, $oAnomaly, $emailAdminTitle, true); + } + } + + return $aReturn['sMessage']; + } + + function prepareAndSendEmail($propertiesId, $oAnomaly, $sTitleId, $isAdminMail) { + + $sTemplateEmail = $this->getTemplateEmail($propertiesId, $oAnomaly); + $sTitle = $this->getTemplateEmail($sTitleId, $oAnomaly); + + $this->sendMail($oAnomaly, $sTemplateEmail, $sTitle, $isAdminMail); + } + + function getAnomaly($anomalyId) { + require 'Anomalies.class.sql.inc'; + + // Selectionne les informations sur l'anomalie + $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"], 'UTF8'); + $aParams = array( + "SCHEMA" => array("value" => $this->aProperties["schema_anomalies"], "type" => "column_name"), + "ANOMALY_ID" => array("value" => $anomalyId, "type" => "number"), + ); + + $oPDOresult = $oBd->executeWithParams($aSql['selectAnomaly'], $aParams); + $oAnomaly = $oBd->ligneSuivante($oPDOresult); + return $oAnomaly; + } + + function getTemplateEmail($propertiesId, $oAnomaly) { + $sTemplateEmail = $this->aProperties[$propertiesId]; + + // Remplace + foreach ($oAnomaly as $key => $value) { + if ($key === 'anomalies_date' || $key == 'last_update_date' || $key == 'closing_date' && $value != '') { + try { + $date = new \DateTime($value); + $sTemplateEmail = str_replace('{{anomaly.'.$key.'}}', $date->format($this->aProperties['date_format']), $sTemplateEmail); + } catch (\Exception $e) { + $sTemplateEmail = str_replace('{{anomaly.'.$key.'}}', $value, $sTemplateEmail); + } + } else { + $sTemplateEmail = str_replace('{{anomaly.' . $key . '}}', $value, $sTemplateEmail); + } + } + + return $sTemplateEmail; + } + + function sendMail($oAnomaly, $sBody, $sTitle, $isAdminMail) { + + if ($isAdminMail) { + $sTo = $this->aProperties['anomalies_email_admin']; + } else if (isset($oAnomaly['user_email']) && $oAnomaly['user_email'] !== '') { + $sTo = $oAnomaly['user_email']; + } + + if (isset($sTo) && $sTo !== '') { + $sMailStruct = array( + "to" => $sTo, + "cci"=> "", + "subject" => $this->aProperties['mail_tag_subject'] . $sTitle, + "body" => $sBody, + "aAttachments" => array() + ); + $mail = new Email(null, null, $this->aProperties, null); + $mail->loadFromExernalDataStruct($sMailStruct); + $mail->send(); + } + } + + /** + * Récupère la taille des fichiers existant + la taille des fichiers télédéchargé + * + * @return {integer} + */ + function getFilesSize() { + $size = 0; + + // Si il y a des fichiers que l'on garde, on ajoute aussi leur poids + $sFolder = $this->aProperties['ws_data_dir'] . '/anomalies/anomalies/documents/' . $this->aValues['my_vitis_id'] . '/files'; + if (isset($this->aValues['vitis_unchanged_files'])) { + $aUnchangedFiles = json_decode($this->aValues['vitis_unchanged_files'], true); + if (is_array($aUnchangedFiles['files']) && is_dir($sFolder)) { + $aFolder = scandir($sFolder); + foreach ($aFolder as $sFile) { + if ($sFile != "." && $sFile != "..") { + if (!is_dir($sFolder . "/" . $sFile) && in_array($sFile, $aUnchangedFiles['files'])) { + $size = $size + filesize($sFolder . "/" . $sFile); + } + } + } + } + } + + // Ajoute le poids des fichiers ajouté + if ($_FILES['files']['size']) { + $size = $_FILES['files']['size']; + } else { + for ($i=0; $i < count($_FILES['files']); $i++) { + $size = $size + $_FILES['files'][$i]['size']; + } + } + + return $size; + } +} +?> \ No newline at end of file diff --git a/src/module_anomalies/web_service/ws/Anomalies.class.sql.inc b/src/module_anomalies/web_service/ws/Anomalies.class.sql.inc new file mode 100644 index 0000000000000000000000000000000000000000..1517436b59ec7c35e4ed1cbcbece06f1847b92b0 --- /dev/null +++ b/src/module_anomalies/web_service/ws/Anomalies.class.sql.inc @@ -0,0 +1,4 @@ +<?php + +$aSql["selectStatus"] = "SELECT status_id FROM [SCHEMA].rt_anomalies_status WHERE name=[STATUS_NAME];"; +$aSql["selectAnomaly"] = "SELECT * FROM [SCHEMA].v_anomalies WHERE anomalies_id=[ANOMALY_ID];"; \ No newline at end of file diff --git a/src/module_anomalies/web_service/ws/AnomaliesAnomalies.class.inc b/src/module_anomalies/web_service/ws/AnomaliesAnomalies.class.inc new file mode 100644 index 0000000000000000000000000000000000000000..ee5981b22f450920d3fca3a85ac825e0f913ee82 --- /dev/null +++ b/src/module_anomalies/web_service/ws/AnomaliesAnomalies.class.inc @@ -0,0 +1,16 @@ +<?php + +require_once dirname($_SERVER['SCRIPT_FILENAME']) . "/class/vitis_lib/DbClass.class.inc"; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vitis/Vitis.class.inc'; + +class AnomaliesAnomalies extends Vitis { + + //Chemin du fichier de ressources contenant les requêtes SQL + var $sRessourcesFile = 'Vitis.class.sql.inc'; + + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } +} + +?> \ No newline at end of file diff --git a/src/module_anomalies/web_service/ws/AnomaliesFeatureStyle.class.inc b/src/module_anomalies/web_service/ws/AnomaliesFeatureStyle.class.inc new file mode 100644 index 0000000000000000000000000000000000000000..20d05c92d7a800a021bec4e590f9127da0e50623 --- /dev/null +++ b/src/module_anomalies/web_service/ws/AnomaliesFeatureStyle.class.inc @@ -0,0 +1,101 @@ +<?php + +require_once 'AnomaliesFeatureStyles.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file AnomaliesFeatureStyle.class.inc + * \class AnomaliesFeatureStyle + * + * \author Ludivine Premont <ludivine.premont@veremes.com>. + * + * \brief This file contains the AnomaliesFeatureStyle php class + * + * This class defines operation for one AnomaliesFeatureStyle + * + */ +class AnomaliesFeatureStyle extends Vitis { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + $this->aSelectedFields = Array( + 'anomalies_feature_style_id', + 'theme_name', + 'status_name', + 'feature_style_id', + 'draw_color', + 'draw_outline_color', + 'draw_size', + 'draw_dash', + 'draw_symbol', + 'draw_rotation', + 'image', + 'text_font', + 'text_color', + 'text_outline_color', + 'text_size', + 'text_outline_size', + 'text_offset_x', + 'text_offset_y', + 'text_rotation', + 'text_text' + ); + } + + /** + * @SWG\Get(path="/anomaliesfeaturestyles/{anomalies_feature_style_id}", + * tags={"AnomaliesFeatureStyles"}, + * summary="Get AnomaliesFeatureStyle", + * description="Request to get AnomaliesFeatureStyle 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="anomalies_feature_style_id", + * in="path", + * description="anomalies_feature_style_id", + * 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="Poprerties Response", + * @SWG\Schema(ref="#/definitions/anomaliesfeaturestyle") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + require dirname($_SERVER['SCRIPT_FILENAME']) . "/ws/vitis/" . $this->sRessourcesFile; + $this->aFields = $this->getFields($this->aProperties['schema_anomalies'], "v_anomalies_feature_style", "anomalies_feature_style_id"); + } +} + +?> \ No newline at end of file diff --git a/src/module_anomalies/web_service/ws/AnomaliesFeatureStyles.class.inc b/src/module_anomalies/web_service/ws/AnomaliesFeatureStyles.class.inc new file mode 100644 index 0000000000000000000000000000000000000000..86dca047230a308dd16dab316d625067421773c1 --- /dev/null +++ b/src/module_anomalies/web_service/ws/AnomaliesFeatureStyles.class.inc @@ -0,0 +1,225 @@ +<?php + +/** + * \file AnomaliesFeatureStyles.class.inc + * \class AnomaliesFeatureStyles + * + * \author Ludivine Premont <ludivine.premont@veremes.com>. + * + * \brief This file contains the Modes php class + * + * This class defines Rest Api to Vitis AnomaliesFeatureStyles + * + */ +require_once 'AnomaliesAnomalies.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; +require_once 'AnomaliesFeatureStyle.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; + +class AnomaliesFeatureStyles extends AnomaliesAnomalies { + /** + * @SWG\Definition( + * definition="/anomaliesfeaturestyle", + * allOf={ + * @SWG\Schema(ref="#/definitions/anomaliesfeaturestyle") + * } + * ) + * * @SWG\Tag( + * name="AnomaliesFeatureStyles", + * description="Operations about AnomaliesFeatureStyles" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + $this->aSelectedFields = Array( + 'anomalies_feature_style_id', + 'theme_name', + 'status_name', + 'feature_style_id', + 'draw_color', + 'draw_outline_color', + 'draw_size', + 'draw_dash', + 'draw_symbol', + 'draw_rotation', + 'image', + 'text_font', + 'text_color', + 'text_outline_color', + 'text_size', + 'text_outline_size', + 'text_offset_x', + 'text_offset_y', + 'text_rotation', + 'text_text' + ); + } + + /** + * @SWG\Get(path="/anomaliesfeaturestyles", + * tags={"AnomaliesFeatureStyles"}, + * summary="Get AnomaliesFeatureStyles", + * description="Request to get AnomaliesFeatureStyles", + * 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="Properties Response", + * @SWG\Schema(ref="#/definitions/anomaliesfeaturestyles") + * ) + * ) + */ + + /** + * get Anomalies + * @return Anomalies + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anomalies'], "v_anomalies_feature_style", "anomalies_feature_style_id"); + + for ($i = 0; $i < count($this->aObjects); $i++) { + $this->aObjects[$i]->aFields['style'] = $this->getGeoJSONStyle($this->aObjects[$i]->aFields); + } + $aXmlRacineAttribute['status'] = 1; + $sMessage = $this->asDocument('', 'vitis', $this->aValues['sEncoding'], True, $aXmlRacineAttribute, $this->aValues['sSourceEncoding'], $this->aValues['output']); + return $sMessage; + } + + /** + * Returns a GeoJSON format style from an array format style + * @param array $aStyle + * @return array + */ + function getGeoJSONStyle($aStyle) { + $aGeoJSONStyle = array( + 'draw' => array(), + 'text' => array(), + ); + // Draw + if (!empty($aStyle['draw_color'])) { + $aGeoJSONStyle['draw']['color'] = $aStyle['draw_color']; + } + if (!empty($aStyle['draw_outline_color'])) { + $aGeoJSONStyle['draw']['outline_color'] = $aStyle['draw_outline_color']; + } + if (!empty($aStyle['draw_size'])) { + $aGeoJSONStyle['draw']['size'] = $aStyle['draw_size']; + } + if (!empty($aStyle['draw_dash'])) { + $aGeoJSONStyle['draw']['dash'] = $aStyle['draw_dash']; + } + if (!empty($aStyle['draw_symbol'])) { + $aGeoJSONStyle['draw']['symbol'] = $aStyle['draw_symbol']; + } + if (!empty($aStyle['draw_rotation'])) { + $aGeoJSONStyle['draw']['rotation'] = $aStyle['draw_rotation']; + } + if (!empty($aStyle['image'])) { + $aGeoJSONStyle['draw']['image'] = $aStyle['image']; + } + // Text + if (!empty($aStyle['text_font'])) { + $aGeoJSONStyle['text']['font'] = $aStyle['text_font']; + } + if (!empty($aStyle['text_color'])) { + $aGeoJSONStyle['text']['color'] = $aStyle['text_color']; + } + if (!empty($aStyle['text_outline_color'])) { + $aGeoJSONStyle['text']['outline_color'] = $aStyle['text_outline_color']; + } + if (!empty($aStyle['text_size'])) { + $aGeoJSONStyle['text']['size'] = $aStyle['text_size']; + } + if (!empty($aStyle['text_outline_size'])) { + $aGeoJSONStyle['text']['outline_size'] = $aStyle['text_outline_size']; + } + if (!empty($aStyle['text_offset_x'])) { + $aGeoJSONStyle['text']['offsetX'] = $aStyle['text_offset_x']; + } + if (!empty($aStyle['text_offset_y'])) { + $aGeoJSONStyle['text']['offsetY'] = $aStyle['text_offset_y']; + } + if (!empty($aStyle['text_rotation'])) { + $aGeoJSONStyle['text']['rotation'] = $aStyle['text_rotation']; + } + if (!empty($aStyle['text_text'])) { + $aGeoJSONStyle['text']['text'] = $aStyle['text_text']; + } + // Vide draw ou text si ils sont vides + if (empty($aGeoJSONStyle['draw'])) { + unset($aGeoJSONStyle['draw']); + } + if (empty($aGeoJSONStyle['text'])) { + unset($aGeoJSONStyle['text']); + } + return $aGeoJSONStyle; + } +} +?> \ No newline at end of file diff --git a/src/module_anomalies/web_service/ws/Status.class.inc b/src/module_anomalies/web_service/ws/Status.class.inc new file mode 100644 index 0000000000000000000000000000000000000000..20e50419bf4d501cea8b3699df31f9df241491cf --- /dev/null +++ b/src/module_anomalies/web_service/ws/Status.class.inc @@ -0,0 +1,80 @@ +<?php + +require_once 'Anomalies.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Status.class.inc + * \class Status + * + * \author Ludivine Premont <ludivine.premont@veremes.com>. + * + * \brief This file contains the Status php class + * + * This class defines operation for one Status + * + */ +class Status extends Vitis { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + $this->aSelectedFields = Array('status_id', 'name', 'description', 'color'); + } + + /** + * @SWG\Get(path="/status/{status_id}", + * tags={"Status"}, + * summary="Get Status", + * description="Request to get Status 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="status_id", + * in="path", + * description="status id", + * 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="Poprerties Response", + * @SWG\Schema(ref="#/definitions/status") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + require dirname($_SERVER['SCRIPT_FILENAME']) . "/ws/vitis/" . $this->sRessourcesFile; + $this->aFields = $this->getFields($this->aProperties['schema_anomalies'], "rt_anomalies_status", "status_id"); + } +} + +?> \ No newline at end of file diff --git a/src/module_anomalies/web_service/ws/Statuss.class.inc b/src/module_anomalies/web_service/ws/Statuss.class.inc new file mode 100644 index 0000000000000000000000000000000000000000..e675b0370008d1aca4f2be5098b6f0190ebe0be2 --- /dev/null +++ b/src/module_anomalies/web_service/ws/Statuss.class.inc @@ -0,0 +1,128 @@ +<?php + +/** + * \file Statuss.class.inc + * \class Statuss + * + * \author Ludivine Premont <ludivine.premont@veremes.com>. + * + * \brief This file contains the Modes php class + * + * This class defines Rest Api to Vitis Statuss + * + */ +require_once 'Anomalies.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; +require_once 'Status.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; + +class Statuss extends Anomalies { + /** + * @SWG\Definition( + * definition="/status", + * allOf={ + * @SWG\Schema(ref="#/definitions/status") + * } + * ) + * * @SWG\Tag( + * name="Statuss", + * description="Operations about Statuss" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + $this->aSelectedFields = Array('status_id', 'name', 'description', 'color'); + } + + /** + * @SWG\Get(path="/statuss", + * tags={"Statuss"}, + * summary="Get Statuss", + * description="Request to get Statuss", + * 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="Properties Response", + * @SWG\Schema(ref="#/definitions/statuss") + * ) + * ) + */ + + /** + * get Statuss + * @return Statuss + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anomalies'], "rt_anomalies_status", "status_id"); + return $aReturn['sMessage']; + } +} +?> \ No newline at end of file diff --git a/src/module_anomalies/web_service/ws/Theme.class.inc b/src/module_anomalies/web_service/ws/Theme.class.inc new file mode 100644 index 0000000000000000000000000000000000000000..a3f4164e1d920a98151cffdc3737503cb66b5382 --- /dev/null +++ b/src/module_anomalies/web_service/ws/Theme.class.inc @@ -0,0 +1,80 @@ +<?php + +require_once 'AnomaliesAnomalies.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Theme.class.inc + * \class Theme + * + * \author Ludivine Premont <ludivine.premont@veremes.com>. + * + * \brief This file contains the Theme php class + * + * This class defines operation for one Theme + * + */ +class Theme extends Vitis { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + $this->aSelectedFields = Array('theme_id', 'name', 'short_name', 'description'); + } + + /** + * @SWG\Get(path="/theme/{theme_id}", + * tags={"Theme"}, + * summary="Get Theme", + * description="Request to get Theme 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="theme_id", + * in="path", + * description="theme id", + * 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="Poprerties Response", + * @SWG\Schema(ref="#/definitions/theme") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + require dirname($_SERVER['SCRIPT_FILENAME']) . "/ws/vitis/" . $this->sRessourcesFile; + $this->aFields = $this->getFields($this->aProperties['schema_anomalies'], "anomalies_theme", "theme_id"); + } +} + +?> \ No newline at end of file diff --git a/src/module_anomalies/web_service/ws/Themes.class.inc b/src/module_anomalies/web_service/ws/Themes.class.inc new file mode 100644 index 0000000000000000000000000000000000000000..dafcb5e9eb1926d8c7113bc27fe67a5eafab332e --- /dev/null +++ b/src/module_anomalies/web_service/ws/Themes.class.inc @@ -0,0 +1,128 @@ +<?php + +/** + * \file Themes.class.inc + * \class Themes + * + * \author Ludivine Premont <ludivine.premont@veremes.com>. + * + * \brief This file contains the Modes php class + * + * This class defines Rest Api to Vitis Themes + * + */ +require_once 'AnomaliesAnomalies.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; +require_once 'Theme.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; + +class Themes extends AnomaliesAnomalies { + /** + * @SWG\Definition( + * definition="/theme", + * allOf={ + * @SWG\Schema(ref="#/definitions/theme") + * } + * ) + * * @SWG\Tag( + * name="Themes", + * description="Operations about Themes" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + $this->aSelectedFields = Array('theme_id', 'name', 'short_name','description'); + } + + /** + * @SWG\Get(path="/themes", + * tags={"Themes"}, + * summary="Get Themes", + * description="Request to get Themes", + * 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="Properties Response", + * @SWG\Schema(ref="#/definitions/themes") + * ) + * ) + */ + + /** + * get Themes + * @return Themes + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anomalies'], "anomalies_theme", "theme_id"); + return $aReturn['sMessage']; + } +} +?> \ No newline at end of file diff --git a/src/module_anomalies/web_service/ws/overview.phtml b/src/module_anomalies/web_service/ws/overview.phtml new file mode 100755 index 0000000000000000000000000000000000000000..994e92d8456f76b484ab715a03af13950292cd94 --- /dev/null +++ b/src/module_anomalies/web_service/ws/overview.phtml @@ -0,0 +1,24 @@ +<?php +/** + * @SWG\Swagger( + * basePath="/[service_alias]/anomalies", + * host="[server]", + * schemes={"[protocol]"}, + * produces={ + * "application/json", + "application/xml", + "text/html" + * }, + * @SWG\Info( + * version="1.0.0", + * title="Cadastre Test Rest", + * description="All features to access server operation for cadastre", + * ) + * ) + */ +?> + +<h1 class="titleOverview">Service Anomalies </h1> +<p> + <a class="linkOverview" href="javascript:sService='anomalies';LoadApi()">anomalies</a> +</p> \ No newline at end of file diff --git a/src/module_cadastre b/src/module_cadastre deleted file mode 160000 index 967c9dc96920f6a0ab75a68af32396d3e2645dcc..0000000000000000000000000000000000000000 --- a/src/module_cadastre +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 967c9dc96920f6a0ab75a68af32396d3e2645dcc diff --git a/src/module_cadastreV2 b/src/module_cadastreV2 deleted file mode 160000 index 13b853814abf9c9a69ed7de90e0d0b1bdb43c303..0000000000000000000000000000000000000000 --- a/src/module_cadastreV2 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 13b853814abf9c9a69ed7de90e0d0b1bdb43c303 diff --git a/src/module_vm4ms b/src/module_vm4ms deleted file mode 160000 index 90bf409696644323e2d34154bc2be875a0736704..0000000000000000000000000000000000000000 --- a/src/module_vm4ms +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 90bf409696644323e2d34154bc2be875a0736704 diff --git a/src/module_vmap b/src/module_vmap deleted file mode 160000 index 7437cb2bc918f478a944f502e506ecce1a404784..0000000000000000000000000000000000000000 --- a/src/module_vmap +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7437cb2bc918f478a944f502e506ecce1a404784 diff --git a/src/vitis b/src/vitis deleted file mode 160000 index 576b4c6d3e82f280581ef3f9bb22f94b7b768a76..0000000000000000000000000000000000000000 --- a/src/vitis +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 576b4c6d3e82f280581ef3f9bb22f94b7b768a76 diff --git a/utils b/utils deleted file mode 160000 index 7ff89dfe29c22af33fa983fbeddc772e62fa8336..0000000000000000000000000000000000000000 --- a/utils +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7ff89dfe29c22af33fa983fbeddc772e62fa8336