comparison 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
comparison
equal deleted inserted replaced
738:1ed5e3692215 739:add3e994b4c4
12 ], 12 ],
13 "filters": [ 13 "filters": [
14 ] 14 ]
15 }, 15 },
16 { "id": "1", 16 { "id": "1",
17 "name": "HP-Nr-Filer",
18 "description": "Abfrage der Proben mit Wildcardfilter fuer die Hauptproben-Nr.",
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)",
20 "result": [
21 {"dataIndex": "probeId", "header": "ProbeId", "width": 120},
22 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
23 {"dataIndex": "mstId", "header": "MST", "width": 60},
24 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60},
25 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 120}
26 ],
27 "filters": [
28 {"dataIndex": "hp_nr_id", "type": "text", "label": "Probe_id-Filter"}
29 ]
30 },
31 { "id": "2",
17 "name": "Probe-ID-Filer", 32 "name": "Probe-ID-Filer",
18 "description": "Abfrage der Proben mit Wildcardfilter fuer die Probe_id", 33 "description": "Abfrage der Proben mit Wildcardfilter fuer die Probe_id",
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 (pt.probe_id_alt like :probe_id or '' = :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)",
20 "result": [ 35 "result": [
21 {"dataIndex": "probeId", "header": "ProbeId", "width": 120}, 36 {"dataIndex": "probeId", "header": "ProbeId", "width": 120},
26 ], 41 ],
27 "filters": [ 42 "filters": [
28 {"dataIndex": "probe_id", "type": "text", "label": "Probe_id-Filter"} 43 {"dataIndex": "probe_id", "type": "text", "label": "Probe_id-Filter"}
29 ] 44 ]
30 }, 45 },
31 { "id": "2", 46 { "id": "3",
32 "name": "MST und UMW", 47 "name": "MST und UMW",
33 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs", 48 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs",
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 (p.mst_id = :mst_id OR '' = :mst_id) and (p.umw_id = :umw_id OR '' = :umw_id)", 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)",
35 "result": [ 50 "result": [
36 {"dataIndex": "probeId", "header": "ProbeId", "width": 120}, 51 {"dataIndex": "probeId", "header": "ProbeId", "width": 120},
42 "filters": [ 57 "filters": [
43 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"}, 58 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"},
44 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich"} 59 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich"}
45 ] 60 ]
46 }, 61 },
47 { "id": "3", 62 { "id": "4",
48 "name": "Proben pro Land", 63 "name": "Proben pro Land",
49 "description": "Proben gefiltert nach Ländern", 64 "description": "Proben gefiltert nach Ländern",
50 "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)", 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)",
51 "result": [ 66 "result": [
52 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, 67 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
57 ], 72 ],
58 "filters": [ 73 "filters": [
59 {"dataIndex": "netz", "type": "listnetz", "label": "Land"} 74 {"dataIndex": "netz", "type": "listnetz", "label": "Land"}
60 ] 75 ]
61 }, 76 },
62 { "id": "4", 77 { "id": "5",
63 "name": "alle Proben mit Ort", 78 "name": "alle Proben mit Ort",
64 "description": "alle Proben mit Entnahmeort", 79 "description": "alle Proben mit Entnahmeort",
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, 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", 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",
66 "result": [ 81 "result": [
67 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, 82 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
73 {"dataIndex": "bezeichnung", "header": "Gemeinde", "flex": 1} 88 {"dataIndex": "bezeichnung", "header": "Gemeinde", "flex": 1}
74 ], 89 ],
75 "filters": [ 90 "filters": [
76 ] 91 ]
77 }, 92 },
78 { "id": "5", 93 { "id": "6",
79 "name": "Proben pro Land und UMW (Multiselect)", 94 "name": "Proben pro Land und UMW (Multiselect)",
80 "description": "Abfrage aller Proben gefiltert pro Land und Umweltbereich (mit Mehrfachauswahl)", 95 "description": "Abfrage aller Proben gefiltert pro Land und Umweltbereich (mit Mehrfachauswahl)",
81 "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)", 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)",
82 "result": [ 97 "result": [
83 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, 98 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)