annotate app/model/StatusWerte.js @ 971:37f30b01788c

Uses a filtered store for the messtellen in PKommentare and MKommentare grids. This narrows down the list of selectable messstellen to those the user is currently associtated to
author Dustin Demuth <dustin@intevation.de>
date Mon, 16 Nov 2015 11:51:11 +0100
parents 45c67a784b31
children f73ca04d73a7
rev   line source
946
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
2 * Software engineering by Intevation GmbH
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
3 *
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
7 */
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
8
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
9 /**
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
10 * Model class for StatusWerte
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
11 */
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.model.StatusWerte', {
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
13 extend: 'Ext.data.Model',
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
14
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
15 fields: [{
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
16 name: 'id'
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
17 }, {
956
45c67a784b31 Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents: 946
diff changeset
18 name: 'wert',
45c67a784b31 Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents: 946
diff changeset
19 type: 'string'
946
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
20 }],
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
21
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
22 idProperty: 'id',
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
23
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
24 proxy: {
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
25 type: 'rest',
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
26 url: 'lada-server/statuswert',
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
27 reader: {
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
28 type: 'json',
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
29 root: 'data'
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
30 }
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
31 }
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
32
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
33 });

http://lada.wald.intevation.org