Mercurial > lada > lada-client
annotate app/model/Deskriptor.js @ 1159:85acec6c6e6a
Use equal fieldnames as in model for StatusWerte.
This will enable us to use a model based store here too.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 08 Jun 2016 12:37:53 +0200 |
parents | f73ca04d73a7 |
children |
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', |
999 | 29 url: 'lada-server/rest/deskriptor', |
769
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 }); |