Mercurial > lada > lada-client
annotate app/store/Queries.js @ 244:7097182150d9
Added filter attribute and added comments.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 23 Jul 2013 14:14:45 +0200 |
parents | 331c77afdbcb |
children | fa108c53da5a |
rev | line source |
---|---|
240
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
1 /* |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
2 * The following fields are avalailable to show in the search result. Please |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
3 * Define which columns should be visible in whioch order in the fields |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
4 * variable for each query. |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
5 * |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
6 'datenbasisId' |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
7 'mplId' |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
8 'umwId' |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
9 'messmethode' |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
10 'hauptprobenNr' |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
11 'nebenprobenNr' |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
12 'bezeichnung' |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
13 'kreis' |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
14 'probeId' |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
15 'mstId' |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
16 */ |
910cd477bfda
Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
17 |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 Ext.define('Lada.store.Queries', { |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 extend: 'Ext.data.Store', |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 model: 'Lada.model.Query', |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 data : [ |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 { |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 'id': '1', |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 'name': 'MST, UWB', |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 'description': 'Beschreibung der MST, UWB Abfrage', |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 'sql': 'select * from xxx', |
244
7097182150d9
Added filter attribute and added comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
243
diff
changeset
|
27 /* List of fields which should be displayed in the proben list. |
7097182150d9
Added filter attribute and added comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
243
diff
changeset
|
28 * The field names must match the fieldnames in returned JSON object. */ |
7097182150d9
Added filter attribute and added comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
243
diff
changeset
|
29 'fields': ['datenbasisId', 'mplId', 'umwId', 'messmethode', 'hauptprobenNr', 'nebenprobenNr', 'bezeichnung', 'kreis', 'probeId', 'mstId'], |
7097182150d9
Added filter attribute and added comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
243
diff
changeset
|
30 /* List of filters. The filters must match the fields in the |
7097182150d9
Added filter attribute and added comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
243
diff
changeset
|
31 * "WHERE" part of the defined SQL query. */ |
7097182150d9
Added filter attribute and added comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
243
diff
changeset
|
32 'filters': ['mstId', 'umwId'], |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
33 }, |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
34 { |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
35 'id': '2', |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
36 'name': 'Rbegin', |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
37 'description': 'Beschreibung der Rbegin Abfrage', |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
38 'sql': 'select * from xxx', |
244
7097182150d9
Added filter attribute and added comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
243
diff
changeset
|
39 'fields': ['mplId', 'datenbasisId', 'umwId', 'messmethode', 'hauptprobenNr', 'nebenprobenNr', 'bezeichnung', 'kreis', 'probeId', 'mstId'], |
7097182150d9
Added filter attribute and added comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
243
diff
changeset
|
40 'filters': [], |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
41 } |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
42 ], |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
43 }); |