Mercurial > lada > lada-client
annotate app/model/Deskriptor.js @ 1346:8742d020c685
Get kta code to display the correct value in ortszuordnung grid.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 06 Feb 2017 12:02:37 +0100 |
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 }); |