Mercurial > lada > lada-server
annotate src/main/resources/probequery.json @ 649:53816b76753a
Added new validation rules for messwert objects.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 05 May 2015 14:10:15 +0200 |
parents | 76f08c40a13a |
children | 6441bb4a90f0 |
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 [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
2 { "id": "1", |
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", |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
5 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.mst_id as mstId, p.umw_id as umwId from land.probe p join land.probe_translation pt on p.id = pt.probe_id", |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
6 "result": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
7 {"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
|
8 {"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
|
9 {"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
|
10 ], |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 "filters": [ |
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 }, |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
14 { "id": "2", |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 "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
|
16 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs", |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
17 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.mst_id as mstId, p.umw_id as umwId 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)", |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
18 "result": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 {"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
|
20 {"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
|
21 {"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
|
22 ], |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
23 "filters": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
24 {"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
|
25 {"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
|
26 ] |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
27 }, |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
28 { "id": "3", |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
29 "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
|
30 "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
|
31 "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
|
32 "result": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 {"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
|
34 {"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
|
35 {"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
|
36 {"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
|
37 {"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
|
38 ], |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
39 "filters": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
40 {"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
|
41 ] |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
42 }, |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
43 { "id": "4", |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
44 "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
|
45 "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
|
46 "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
|
47 "result": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
48 {"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
|
49 {"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
|
50 {"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
|
51 {"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
|
52 {"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
|
53 {"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
|
54 {"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
|
55 ], |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
56 "filters": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
57 ] |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
58 }, |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
59 { "id": "5", |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
60 "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
|
61 "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
|
62 "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
|
63 "result": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
64 {"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
|
65 {"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
|
66 {"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
|
67 {"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
|
68 {"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
|
69 {"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
|
70 {"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
|
71 {"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
|
72 {"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
|
73 {"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
|
74 ], |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
75 "filters": [ |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
76 {"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
|
77 {"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
|
78 ] |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
79 } |
cdcb7a141529
Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
80 ] |