comparison src/main/resources/probequery.json @ 740:b79afbdadbf7

add new entry in probenquery
author Michael Stanko <mstanko@bfs.de>
date Fri, 09 Oct 2015 09:23:22 +0200
parents add3e994b4c4
children 54462abc373c
comparison
equal deleted inserted replaced
739:add3e994b4c4 740:b79afbdadbf7
108 ], 108 ],
109 "filters": [ 109 "filters": [
110 {"dataIndex": "netz", "type": "listnetz", "label": "Land"}, 110 {"dataIndex": "netz", "type": "listnetz", "label": "Land"},
111 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich", "multiselect":true} 111 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich", "multiselect":true}
112 ] 112 ]
113 },
114 { "id": "7",
115 "name": "Proben und Messungen pro Land und UMW (Multiselect)",
116 "description": "Abfrage aller Proben/Messungen gefiltert pro Land und Umweltbereich (mit Mehrfachauswahl)",
117 "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, m.mmt_id as mmtId, 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 left outer join land.probe_translation pt on p.id = pt.probe_id left outer join land.messung m on p.id = m.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)",
118 "result": [
119 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
120 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
121 {"dataIndex": "mstId", "header": "MST", "width": 50},
122 {"dataIndex": "entnahmeVon", "header": "Entnahme von", "width": 120},
123 {"dataIndex": "entnahmeBis", "header": "Entnahme bis", "width": 120},
124 {"dataIndex": "mmtId", "header": "MMT", "width": 50},
125 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
126 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100},
127 {"dataIndex": "ortsTyp", "header": "Ortstyp", "width": 50},
128 {"dataIndex": "genId", "header": "Gemeinde-ID", "width": 100},
129 {"dataIndex": "bezeichnung", "header": "Gemeinde", "flex": 1}
130 ],
131 "filters": [
132 {"dataIndex": "netz", "type": "listnetz", "label": "Land"},
133 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich", "multiselect":true}
134 ]
113 } 135 }
114 ] 136 ]
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)