annotate src/main/resources/probequery.json @ 974:6ab55e59cfae

Fix multiselect delimiter.
author Tom Gottfried <tom@intevation.de>
date Wed, 08 Jun 2016 12:15:37 +0200
parents 9ed60af6e61e
children
rev   line source
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
1 [
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
2 { "id": "0",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
3 "name": "Kein Filter",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
4 "description": "Abfrage der Proben ohne Filter",
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
5 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr from land.probe p join land.probe_translation pt on p.id = pt.probe_id",
812
9ed60af6e61e Added attribute 'type' to query configs.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 807
diff changeset
6 "type": "probe",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
7 "result": [
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
8 {"dataIndex": "probeId", "header": "ProbeId", "width": 120},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
9 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
10 {"dataIndex": "mstId", "header": "MST", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
11 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
12 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 120}
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
13 ],
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
14 "filters": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
15 ]
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
16 },
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
17 { "id": "1",
807
54462abc373c Fix typos in query config.
Tom Gottfried <tom@intevation.de>
parents: 740
diff changeset
18 "name": "HP-Nr-Filter",
54462abc373c Fix typos in query config.
Tom Gottfried <tom@intevation.de>
parents: 740
diff changeset
19 "description": "Abfrage der Proben mit Wildcardfilter für die Hauptproben-Nr.",
739
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
20 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr from land.probe p join land.probe_translation pt on p.id = pt.probe_id where (p.hauptproben_nr like :hp_nr_id or '' = :hp_nr_id)",
812
9ed60af6e61e Added attribute 'type' to query configs.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 807
diff changeset
21 "type": "probe",
739
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
22 "result": [
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
23 {"dataIndex": "probeId", "header": "ProbeId", "width": 120},
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
24 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
25 {"dataIndex": "mstId", "header": "MST", "width": 60},
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
26 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60},
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
27 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 120}
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
28 ],
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
29 "filters": [
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
30 {"dataIndex": "hp_nr_id", "type": "text", "label": "Probe_id-Filter"}
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
31 ]
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
32 },
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
33 { "id": "2",
807
54462abc373c Fix typos in query config.
Tom Gottfried <tom@intevation.de>
parents: 740
diff changeset
34 "name": "Probe-ID-Filter",
54462abc373c Fix typos in query config.
Tom Gottfried <tom@intevation.de>
parents: 740
diff changeset
35 "description": "Abfrage der Proben mit Wildcardfilter für die Probe_id",
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
36 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr from land.probe p join land.probe_translation pt on p.id = pt.probe_id where (pt.probe_id_alt like :probe_id or '' = :probe_id)",
812
9ed60af6e61e Added attribute 'type' to query configs.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 807
diff changeset
37 "type": "probe",
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
38 "result": [
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
39 {"dataIndex": "probeId", "header": "ProbeId", "width": 120},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
40 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
41 {"dataIndex": "mstId", "header": "MST", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
42 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
43 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 120}
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
44 ],
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
45 "filters": [
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
46 {"dataIndex": "probe_id", "type": "text", "label": "Probe_id-Filter"}
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
47 ]
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
48 },
739
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
49 { "id": "3",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
50 "name": "MST und UMW",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
51 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs",
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
52 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr from land.probe p join land.probe_translation pt on p.id = pt.probe_id where (p.mst_id = :mst_id OR '' = :mst_id) and (p.umw_id = :umw_id OR '' = :umw_id)",
812
9ed60af6e61e Added attribute 'type' to query configs.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 807
diff changeset
53 "type": "probe",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
54 "result": [
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
55 {"dataIndex": "probeId", "header": "ProbeId", "width": 120},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
56 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
57 {"dataIndex": "mstId", "header": "MST", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
58 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
59 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 120}
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
60 ],
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
61 "filters": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
62 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
63 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich"}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
64 ]
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
65 },
739
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
66 { "id": "4",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
67 "name": "Proben pro Land",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
68 "description": "Proben gefiltert nach Ländern",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
69 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr from land.probe p join land.probe_translation pt on p.id = pt.probe_id where (netzbetreiber_id = :netz OR '' = :netz)",
812
9ed60af6e61e Added attribute 'type' to query configs.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 807
diff changeset
70 "type": "probe",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
71 "result": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
72 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
73 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
74 {"dataIndex": "mstId", "header": "MST", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
75 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
76 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
77 ],
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
78 "filters": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
79 {"dataIndex": "netz", "type": "listnetz", "label": "Land"}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
80 ]
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
81 },
739
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
82 { "id": "5",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
83 "name": "alle Proben mit Ort",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
84 "description": "alle Proben mit Entnahmeort",
638
76f08c40a13a Added column probe_id_alt in query 4 in probequery.json
Michael Stanko <mstanko@bfs.de>
parents: 636
diff changeset
85 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr, so.gem_id as gemId, v.bezeichnung as bezeichnung from land.probe p join land.probe_translation pt on p.id = pt.probe_id left outer join land.ort o on (p.id = o.probe_id) left outer join stammdaten.ort so on (o.ort_id = so.id) left outer join stammdaten.verwaltungseinheit v on (so.gem_id = v.id) where o.orts_typ = 'E' or o.orts_typ is null",
812
9ed60af6e61e Added attribute 'type' to query configs.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 807
diff changeset
86 "type": "probe",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
87 "result": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
88 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
89 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
90 {"dataIndex": "mstId", "header": "MST", "width": 60},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
91 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
92 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
93 {"dataIndex": "gemId", "header": "Gem-ID", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
94 {"dataIndex": "bezeichnung", "header": "Gemeinde", "flex": 1}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
95 ],
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
96 "filters": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
97 ]
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
98 },
739
add3e994b4c4 add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents: 690
diff changeset
99 { "id": "6",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
100 "name": "Proben pro Land und UMW (Multiselect)",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
101 "description": "Abfrage aller Proben gefiltert pro Land und Umweltbereich (mit Mehrfachauswahl)",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
102 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, to_char(p.probeentnahme_beginn,'YYYY-mm-dd HH24:MI') entnahmeVon, to_char(p.probeentnahme_ende,'YYYY-mm-dd HH24:MI') entnahmeBis, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr, o.orts_typ as ortsTyp, so.gem_id as gemId, v.bezeichnung as bezeichnung from land.probe p join land.probe_translation pt on p.id = pt.probe_id left outer join land.ort o on (p.id = o.probe_id) left outer join stammdaten.ort so on (o.ort_id = so.id) left outer join stammdaten.verwaltungseinheit v on (so.gem_id = v.id) where (o.orts_typ = 'E' or o.orts_typ is null) and (p.netzbetreiber_id = :netz OR '' =:netz) and (p.umw_id similar to (:umw_id) OR '' = :umw_id)",
812
9ed60af6e61e Added attribute 'type' to query configs.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 807
diff changeset
103 "type": "probe",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
104 "result": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
105 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
106 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
107 {"dataIndex": "mstId", "header": "MST", "width": 50},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
108 {"dataIndex": "entnahmeVon", "header": "Entnahme von", "width": 120},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
109 {"dataIndex": "entnahmeBis", "header": "Entnahme bis", "width": 120},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
110 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
111 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
112 {"dataIndex": "ortsTyp", "header": "Ortstyp", "width": 50},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
113 {"dataIndex": "genId", "header": "Gemeinde-ID", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
114 {"dataIndex": "bezeichnung", "header": "Gemeinde", "flex": 1}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
115 ],
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
116 "filters": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
117 {"dataIndex": "netz", "type": "listnetz", "label": "Land"},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
118 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich", "multiselect":true}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
119 ]
740
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
120 },
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
121 { "id": "7",
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
122 "name": "Proben und Messungen pro Land und UMW (Multiselect)",
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
123 "description": "Abfrage aller Proben/Messungen gefiltert pro Land und Umweltbereich (mit Mehrfachauswahl)",
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
124 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, to_char(p.probeentnahme_beginn,'YYYY-mm-dd HH24:MI') entnahmeVon, to_char(p.probeentnahme_ende,'YYYY-mm-dd HH24:MI') entnahmeBis, m.mmt_id as mmtId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr, o.orts_typ as ortsTyp, so.gem_id as gemId, v.bezeichnung as bezeichnung from land.probe p left outer join land.probe_translation pt on p.id = pt.probe_id left outer join land.messung m on p.id = m.probe_id left outer join land.ort o on (p.id = o.probe_id) left outer join stammdaten.ort so on (o.ort_id = so.id) left outer join stammdaten.verwaltungseinheit v on (so.gem_id = v.id) where (o.orts_typ = 'E' or o.orts_typ is null) and (p.netzbetreiber_id = :netz OR '' =:netz) and (p.umw_id similar to (:umw_id) OR '' = :umw_id)",
812
9ed60af6e61e Added attribute 'type' to query configs.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 807
diff changeset
125 "type": "probe",
740
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
126 "result": [
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
127 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
128 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
129 {"dataIndex": "mstId", "header": "MST", "width": 50},
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
130 {"dataIndex": "entnahmeVon", "header": "Entnahme von", "width": 120},
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
131 {"dataIndex": "entnahmeBis", "header": "Entnahme bis", "width": 120},
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
132 {"dataIndex": "mmtId", "header": "MMT", "width": 50},
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
133 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
134 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100},
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
135 {"dataIndex": "ortsTyp", "header": "Ortstyp", "width": 50},
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
136 {"dataIndex": "genId", "header": "Gemeinde-ID", "width": 100},
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
137 {"dataIndex": "bezeichnung", "header": "Gemeinde", "flex": 1}
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
138 ],
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
139 "filters": [
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
140 {"dataIndex": "netz", "type": "listnetz", "label": "Land"},
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
141 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich", "multiselect":true}
b79afbdadbf7 add new entry in probenquery
Michael Stanko <mstanko@bfs.de>
parents: 739
diff changeset
142 ]
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
143 }
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
144 ]
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)