Mercurial > lada > lada-client
annotate app/model/StatusKombi.js @ 1186:a1c480be0b79 schema-update
Load status_kombi store on application launch.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 31 Aug 2016 15:59:28 +0200 |
parents | 90ae675a1224 |
children | 5b5d9d7a771a |
rev | line source |
---|---|
1185
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
2 * Software engineering by Intevation GmbH |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
3 * |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
7 */ |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
9 /** |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
10 * Model class for StatusKombi |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 */ |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.model.StatusKombi', { |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
13 extend: 'Ext.data.Model', |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
14 |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 fields: [{ |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 name: 'id' |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
17 }, { |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
18 name: 'stufeId', |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 type: 'int' |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
20 }, { |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
21 name: 'stufeId', |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
22 type: 'int' |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
23 }], |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
24 |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
25 idProperty: 'id', |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
26 |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
27 proxy: { |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
28 type: 'rest', |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
29 url: 'lada-server/rest/statuskombi', |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
30 reader: { |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
31 type: 'json', |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
32 root: 'data' |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 } |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
34 } |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
35 }); |
90ae675a1224
Updated client status workflow and model.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
36 |