annotate app/model/Deskriptor.js @ 819:00072c3c926e

reload works now.
author Dustin Demuth <dustin@intevation.de>
date Fri, 29 May 2015 09:31:00 +0200
parents 274a843caf44
children f73ca04d73a7
rev   line source
769
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
1 /**
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
2 *
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
3 */
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
4 Ext.define('Lada.model.Deskriptor', {
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
5 extend: 'Ext.data.Model',
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
6
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
7 /**
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
8 * Fields are:
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
9 * - ...
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
10 */
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
11 fields: [{
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
12 name: 'bedeutung'
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
13 }, {
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
14 name: 'beschreibung'
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
15 }, {
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
16 name: 'ebene'
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
17 }, {
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
18 name: 'id'
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
19 }, {
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
20 name: 'sn'
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
21 }, {
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
22 name: 'sXx'
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
23 }],
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
24
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
25 idProperty: 'id',
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
26
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
27 proxy: {
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
28 type: 'rest',
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
29 url: 'lada-server/deskriptor',
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
30 reader: {
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
31 type: 'json',
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
32 root: 'data',
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
33 totalProperty: 'totalCount'
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
34 }
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
35 }
274a843caf44 Added model and store for deskriptoren.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
36 });

http://lada.wald.intevation.org