annotate queryconf.json @ 370:9c3b3d34b260

New querconfig with custom queries created by Mr. Stanko from BfS.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 23 Sep 2013 14:47:59 +0200
parents 82bea32eddb7
children 0ddfa534173e
rev   line source
370
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
1 [
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
2 { "id": 1,
300
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
3 "name": "Kein Filter",
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
4 "description": "Abfrage der Proben ohne Filter",
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
5 "sql": "select probe_id, mst_id, umw_id from l_probe",
270
a6185d60c2a1 Added example of a query configuration.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 "result": [
307
82bea32eddb7 Edited Example.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
7 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
300
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
8 {"dataIndex": "mstId", "header": "MST", "width": 100},
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
9 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}
270
a6185d60c2a1 Added example of a query configuration.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 ],
a6185d60c2a1 Added example of a query configuration.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 "filters": [
a6185d60c2a1 Added example of a query configuration.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 ]
370
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
13 },
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
14 { "id": 2,
300
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
15 "name": "MST und UMW",
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
16 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs",
307
82bea32eddb7 Edited Example.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
17 "sql": "select probe_id, mst_id, umw_id from l_probe where (mst_id = :mst_id OR '' = :mst_id) and (umw_id = :umw_id OR '' = :umw_id)",
300
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
18 "result": [
307
82bea32eddb7 Edited Example.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
19 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
300
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
20 {"dataIndex": "mstId", "header": "MST", "width": 100},
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
21 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
22 ],
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
23 "filters": [
307
82bea32eddb7 Edited Example.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
24 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"},
82bea32eddb7 Edited Example.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
25 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich"}
300
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
26 ]
370
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
27 },
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
28 { "id": 3,
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
29 "name": "Proben pro Land",
300
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
30 "description": "Detailiertere Beschreibung der Abfrage",
370
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
31 "sql": "select probe_id, netzbetreiber_id, mst_id, umw_id, hauptproben_nr from l_probe where (netzbetreiber_id = :netz OR '' = :netz)",
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
32 "result": [
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
33 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
34 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
35 {"dataIndex": "mstId", "header": "MST", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
36 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
37 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100}
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
38 ],
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
39 "filters": [
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
40 {"dataIndex": "netz", "type": "listnetz", "label": "Land"}
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
41 ]
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
42 },
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
43 { "id": 4,
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
44 "name": "alle Proben mit Ort",
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
45 "description": "alle Proben mit Entnahmeort",
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
46 "sql": "select lp.probe_id, lp.netzbetreiber_id, lp.mst_id, lp.umw_id, lp.hauptproben_nr, ort.gem_id, s_verwaltungseinheit.bezeichnung from l_probe left outer join l_ort on (lp.probe_id = l_ort.probe_id) join ort on (l_ort.ort_id = ort.ort_id) left outer join s_verwaltungseinheit on (ort.gem_id = s_verwaltungseinheit.gem_id) where l_ort.orts_typ = 'E'",
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
47 "result": [
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
48 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
49 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
50 {"dataIndex": "mstId", "header": "MST", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
51 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
52 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
53 {"dataIndex": "gemId", "header": "Gem-ID", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
54 {"dataIndex": "bezeichnung", "header": "Gemeinde", "width": 100}
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
55 ],
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
56 "filters": [
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
57 ]
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
58 },
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
59 { "id": 5,
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
60 "name": "MST und mehrfach UMW",
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
61 "description": "Abfrage der Proben gefiltert nach MST ID und nach UMW_ID mit Mehrfachauswahl",
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
62 "sql": "select probe_id, mst_id, umw_id from l_probe where (mst_id = :mst_id OR '' = :mst_id) and (umw_id similar to (:umw_id) OR '' = :umw_id)",
300
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
63 "result": [
307
82bea32eddb7 Edited Example.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
64 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
300
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
65 {"dataIndex": "mstId", "header": "MST", "width": 100},
307
82bea32eddb7 Edited Example.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
66 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}
300
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
67 ],
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
68 "filters": [
370
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
69 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
70 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich", "multiselect":true}
300
dd0dec2609ad Changed example queryconf
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
71 ]
370
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
72 },
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
73 { "id": 6,
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
74 "name": "Proben pro Land",
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
75 "description": "Abfrage aller Proben über V_PROBE (View)",
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
76 "sql": "select lp.probe_id, lp.netzbetreiber_id, lp.mst_id, to_char(lp.probeentnahme_beginn,'YYYY-mm-dd HH24:MI') entnahme_von, to_char(lp.probeentnahme_ende,'YYYY-mm-dd HH24:MI') entnahme_bis, lp.umw_id, lp.hauptproben_nr, l_ort.orts_typ, ort.gem_id, s_verwaltungseinheit.bezeichnung from l_probe left outer join l_ort on (lp.probe_id = l_ort.probe_id) join ort on (l_ort.ort_id = ort.ort_id) left outer join s_verwaltungseinheit on (ort.gem_id = s_verwaltungseinheit.gem_id) where l_ort.orts_typ = 'E' and lp.netzbetreiber_id = :netz and (umw_id similar to (:umw_id) OR '' = :umw_id)",
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
77 "result": [
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
78 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
79 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
80 {"dataIndex": "mstId", "header": "MST", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
81 {"dataIndex": "entnahmeVon", "header": "Entnahme von", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
82 {"dataIndex": "entnahmeBis", "header": "Entnahme bis", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
83 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
84 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
85 {"dataIndex": "ortsTyp", "header": "Ortstyp", "width": 50},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
86 {"dataIndex": "genId", "header": "Gemeinde-ID", "width": 100},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
87 {"dataIndex": "bezeichnung", "header": "Gemeinde", "width": 100}
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
88 ],
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
89 "filters": [
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
90 {"dataIndex": "netz", "type": "listnetz", "label": "Land"},
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
91 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich", "multiselect":true}
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
92 ]
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
93 }
9c3b3d34b260 New querconfig with custom queries created by Mr. Stanko from BfS.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 307
diff changeset
94 ]
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)