Mercurial > lada > lada-client
annotate app/model/Query.js @ 488:f7446ebfe5d0
Added and updated models.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 21:10:35 +0100 |
parents | debfcc7713e3 |
children | 850ccfe5f3c4 |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
8 |
320
bc87e080ad05
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
306
diff
changeset
|
9 /** |
bc87e080ad05
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
306
diff
changeset
|
10 * Model class for SQL-Querys |
bc87e080ad05
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
306
diff
changeset
|
11 */ |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.model.Query', { |
333
6964cd97d35f
Inherit form model.base. Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
320
diff
changeset
|
13 extend: 'Lada.model.Base', |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 fields: [ |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 {name: "id"}, |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 {name: "name"}, |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 {name: "description"}, |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 {name: "sql"}, |
248
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
19 {name: "results"}, |
422
f9bb1ecf6462
Removed trailing commas.
Raimund Renkert <rrenkert@intevation.de>
parents:
333
diff
changeset
|
20 {name: "filters"} |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 ], |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 proxy: { |
248
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
23 type: 'rest', |
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
24 url: 'server/rest/query', |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 reader: { |
248
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
26 type: 'json', |
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
27 root: 'data' |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 } |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 } |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 }); |