Mercurial > lada > lada-client
comparison app/store/StatusWerte.js @ 945:023e622f9551
Added the ability to work with "StatusWerten" which are delivered by the lada-server.
To enable the uses of StatusWerte, the controller for the status grid, needed to be extended.
In addition, the form and grid views of Messung and Status were updated.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 27 Oct 2015 16:46:58 +0100 |
parents | ad24af3fcf89 |
children | 6a6f2c6fe8ee |
comparison
equal
deleted
inserted
replaced
944:1f1467713c3f | 945:023e622f9551 |
---|---|
6 * the documentation coming with IMIS-Labordaten-Application for details. | 6 * the documentation coming with IMIS-Labordaten-Application for details. |
7 */ | 7 */ |
8 | 8 |
9 /** | 9 /** |
10 * Store for Status-Werte | 10 * Store for Status-Werte |
11 * TODO i18n | |
12 */ | 11 */ |
13 Ext.define('Lada.store.StatusWerte', { | 12 Ext.define('Lada.store.StatusWerte', { |
14 extend: 'Ext.data.Store', | 13 extend: 'Ext.data.Store', |
15 fields: ['display', 'id'], | 14 model: 'Lada.model.StatusWerte', |
16 data: [{ | 15 autoLoad: true, |
17 display: 'unbekannt', id: 0 | 16 storeId: 'StatusWerte' |
18 }, { | |
19 display: 'nicht vergeben', id: 1 | |
20 }, { | |
21 display: 'plausibel', id: 2 | |
22 }, { | |
23 display: 'nicht repräsentativ', id: 3 | |
24 }, { | |
25 display: 'nicht plausibel', id: 4 | |
26 }] | |
27 }); | 17 }); |