Mercurial > lada > lada-client
annotate app/model/Query.js @ 284:c32be5f97b5d
Fix for issue58. Get the related probe for the messwert and check if the probe
is set readonly. If so set the messwert dialog to readonly true.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 08 Aug 2013 15:50:07 +0200 |
parents | d40a552382a3 |
children | 5e4d926d7717 |
rev | line source |
---|---|
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 Ext.define('Lada.model.Query', { |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 extend: 'Ext.data.Model', |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 fields: [ |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 {name: "id"}, |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 {name: "name"}, |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 {name: "description"}, |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 {name: "sql"}, |
248
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
8 {name: "results"}, |
244
7097182150d9
Added filter attribute and added comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
235
diff
changeset
|
9 {name: "filters"}, |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 ], |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 proxy: { |
248
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
12 type: 'rest', |
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
13 url: 'server/rest/query', |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 reader: { |
248
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
15 type: 'json', |
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
16 root: 'data' |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 } |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 } |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 }); |