annotate app/model/StatusWerte.js @ 946:71e2acb1cdd6

added StatusWerte Model
author Dustin Demuth <dustin@intevation.de>
date Tue, 27 Oct 2015 16:52:30 +0100
parents
children 45c67a784b31
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 }, {
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
18 name: 'wert'
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
19 }],
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 idProperty: 'id',
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
22
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
23 proxy: {
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
24 type: 'rest',
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
25 url: 'lada-server/statuswert',
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
26 reader: {
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
27 type: 'json',
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
28 root: 'data'
71e2acb1cdd6 added StatusWerte Model
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
29 }
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 });

http://lada.wald.intevation.org