Mercurial > lada > lada-server
annotate src/main/resources/probequery.json @ 739:add3e994b4c4
add new search 'HP-Nr-Filter'
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Tue, 22 Sep 2015 11:51:50 +0200 |
parents | 6441bb4a90f0 |
children | b79afbdadbf7 |
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 | 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 | 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", |
636
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
6 "result": [ |
690 | 7 {"dataIndex": "probeId", "header": "ProbeId", "width": 120}, |
8 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50}, | |
9 {"dataIndex": "mstId", "header": "MST", "width": 60}, | |
10 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60}, | |
11 {"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
|
12 ], |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
13 "filters": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
14 ] |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 }, |
690 | 16 { "id": "1", |
739
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
17 "name": "HP-Nr-Filer", |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
18 "description": "Abfrage der Proben mit Wildcardfilter fuer die Hauptproben-Nr.", |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
19 "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)", |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
20 "result": [ |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
21 {"dataIndex": "probeId", "header": "ProbeId", "width": 120}, |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
22 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50}, |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
23 {"dataIndex": "mstId", "header": "MST", "width": 60}, |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
24 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60}, |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
25 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 120} |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
26 ], |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
27 "filters": [ |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
28 {"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
|
29 ] |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
30 }, |
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
31 { "id": "2", |
690 | 32 "name": "Probe-ID-Filer", |
33 "description": "Abfrage der Proben mit Wildcardfilter fuer die Probe_id", | |
34 "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)", | |
35 "result": [ | |
36 {"dataIndex": "probeId", "header": "ProbeId", "width": 120}, | |
37 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50}, | |
38 {"dataIndex": "mstId", "header": "MST", "width": 60}, | |
39 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60}, | |
40 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 120} | |
41 ], | |
42 "filters": [ | |
43 {"dataIndex": "probe_id", "type": "text", "label": "Probe_id-Filter"} | |
44 ] | |
45 }, | |
739
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
46 { "id": "3", |
636
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
47 "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
|
48 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs", |
690 | 49 "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)", |
636
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
50 "result": [ |
690 | 51 {"dataIndex": "probeId", "header": "ProbeId", "width": 120}, |
52 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50}, | |
53 {"dataIndex": "mstId", "header": "MST", "width": 60}, | |
54 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60}, | |
55 {"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
|
56 ], |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
57 "filters": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
58 {"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
|
59 {"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
|
60 ] |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
61 }, |
739
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
62 { "id": "4", |
636
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
63 "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
|
64 "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
|
65 "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)", |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
66 "result": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
67 {"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
|
68 {"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
|
69 {"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
|
70 {"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
|
71 {"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
|
72 ], |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
73 "filters": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
74 {"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
|
75 ] |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
76 }, |
739
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
77 { "id": "5", |
636
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
78 "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
|
79 "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
|
80 "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", |
636
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
81 "result": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
82 {"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
|
83 {"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
|
84 {"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
|
85 {"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
|
86 {"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
|
87 {"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
|
88 {"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
|
89 ], |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
90 "filters": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
91 ] |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
92 }, |
739
add3e994b4c4
add new search 'HP-Nr-Filter'
Michael Stanko <mstanko@bfs.de>
parents:
690
diff
changeset
|
93 { "id": "6", |
636
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
94 "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
|
95 "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
|
96 "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)", |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
97 "result": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
98 {"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
|
99 {"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
|
100 {"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
|
101 {"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
|
102 {"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
|
103 {"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
|
104 {"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
|
105 {"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
|
106 {"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
|
107 {"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
|
108 ], |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
109 "filters": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
110 {"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
|
111 {"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
|
112 ] |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
113 } |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
114 ] |