annotate app/model/StatusWerte.js @ 975:fb99332bb48e stammdatengrids

Severe changes concerning the Resultgrids. - Intrduced "Stammdaten" which can be selected in the Mode Field on the left side, - Added Stores and Models for the Stammdaten - Removed the FilterResultgrid and replaced it with a model which uses inheritance. Dynamic Grid Columns can now be derived from app/view/widget/DynamicGrid.js For Proben and Messprogramme this is already done. - There might be some REGRESSION concerning the buttons in the ProbeList and MessprogrammeList grid, as those are not disabled properly. This needs to be fixed in future commits.
author Dustin Demuth <dustin@intevation.de>
date Wed, 02 Dec 2015 17:39:04 +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