comparison queryconf.json @ 374:958b7ffbbfcc

merged.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 24 Sep 2013 14:01:06 +0200
parents 9c3b3d34b260
children 0ddfa534173e
comparison
equal deleted inserted replaced
373:bc6d0785986f 374:958b7ffbbfcc
1 [{ 1 [
2 "id": 1, 2 { "id": 1,
3 "name": "Kein Filter", 3 "name": "Kein Filter",
4 "description": "Abfrage der Proben ohne Filter", 4 "description": "Abfrage der Proben ohne Filter",
5 "sql": "select probe_id, mst_id, umw_id from l_probe", 5 "sql": "select probe_id, mst_id, umw_id from l_probe",
6 "result": [ 6 "result": [
7 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1}, 7 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
8 {"dataIndex": "mstId", "header": "MST", "width": 100}, 8 {"dataIndex": "mstId", "header": "MST", "width": 100},
9 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100} 9 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}
10 ], 10 ],
11 "filters": [ 11 "filters": [
12 ] 12 ]
13 }, { 13 },
14 "id": 2, 14 { "id": 2,
15 "name": "MST und UMW", 15 "name": "MST und UMW",
16 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs", 16 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs",
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)", 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)",
18 "result": [ 18 "result": [
19 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1}, 19 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
22 ], 22 ],
23 "filters": [ 23 "filters": [
24 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"}, 24 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"},
25 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich"} 25 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich"}
26 ] 26 ]
27 }, { 27 },
28 "id": 3, 28 { "id": 3,
29 "name": "3. Abfrage", 29 "name": "Proben pro Land",
30 "description": "Detailiertere Beschreibung der Abfrage", 30 "description": "Detailiertere Beschreibung der Abfrage",
31 "sql": "select probe_id, mst_id, umw_id from l_probe where (mst_id = :mst_id OR '' = :mst_id)", 31 "sql": "select probe_id, netzbetreiber_id, mst_id, umw_id, hauptproben_nr from l_probe where (netzbetreiber_id = :netz OR '' = :netz)",
32 "result": [
33 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
34 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100},
35 {"dataIndex": "mstId", "header": "MST", "width": 100},
36 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
37 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100}
38 ],
39 "filters": [
40 {"dataIndex": "netz", "type": "listnetz", "label": "Land"}
41 ]
42 },
43 { "id": 4,
44 "name": "alle Proben mit Ort",
45 "description": "alle Proben mit Entnahmeort",
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'",
47 "result": [
48 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
49 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100},
50 {"dataIndex": "mstId", "header": "MST", "width": 100},
51 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
52 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100},
53 {"dataIndex": "gemId", "header": "Gem-ID", "width": 100},
54 {"dataIndex": "bezeichnung", "header": "Gemeinde", "width": 100}
55 ],
56 "filters": [
57 ]
58 },
59 { "id": 5,
60 "name": "MST und mehrfach UMW",
61 "description": "Abfrage der Proben gefiltert nach MST ID und nach UMW_ID mit Mehrfachauswahl",
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)",
32 "result": [ 63 "result": [
33 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1}, 64 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
34 {"dataIndex": "mstId", "header": "MST", "width": 100}, 65 {"dataIndex": "mstId", "header": "MST", "width": 100},
35 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100} 66 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}
36 ], 67 ],
37 "filters": [ 68 "filters": [
38 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"} 69 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"},
70 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich", "multiselect":true}
39 ] 71 ]
40 }] 72 },
73 { "id": 6,
74 "name": "Proben pro Land",
75 "description": "Abfrage aller Proben über V_PROBE (View)",
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)",
77 "result": [
78 {"dataIndex": "probeId", "header": "ProbeId", "flex": 1},
79 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100},
80 {"dataIndex": "mstId", "header": "MST", "width": 100},
81 {"dataIndex": "entnahmeVon", "header": "Entnahme von", "width": 100},
82 {"dataIndex": "entnahmeBis", "header": "Entnahme bis", "width": 100},
83 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
84 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100},
85 {"dataIndex": "ortsTyp", "header": "Ortstyp", "width": 50},
86 {"dataIndex": "genId", "header": "Gemeinde-ID", "width": 100},
87 {"dataIndex": "bezeichnung", "header": "Gemeinde", "width": 100}
88 ],
89 "filters": [
90 {"dataIndex": "netz", "type": "listnetz", "label": "Land"},
91 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich", "multiselect":true}
92 ]
93 }
94 ]
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)