Mercurial > lada > lada-client
annotate app/model/Deskriptor.js @ 1190:d7bcd31ceaa6
Added reference to probe window when opening messung create window.
(grafted from af65544e47e259b355212d8d1f3598a2de60320d)
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 31 Aug 2016 15:56:07 +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 }); |