Mercurial > lada > lada-client
comparison app/view/widget/Status.js @ 1230:38599f18c863
Fix setting status in bulk via SetStatus window.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 28 Oct 2016 18:44:10 +0200 |
parents | 85acec6c6e6a |
children |
comparison
equal
deleted
inserted
replaced
1229:eeed1b92341f | 1230:38599f18c863 |
---|---|
4 * This file is Free Software under the GNU GPL (v>=3) | 4 * This file is Free Software under the GNU GPL (v>=3) |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | 5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
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 var statuswerteStore = Ext.create('Ext.data.Store', { | |
10 fields: ['id', 'wert'], | |
11 data: [{ | |
12 'id': 1, | |
13 'wert': 'plausibel' | |
14 }, { | |
15 'id': 2, | |
16 'wert': 'nicht repräsentativ' | |
17 }, { | |
18 'id': 3, | |
19 'wert': 'nicht plausibel' | |
20 }, { | |
21 'id': 4, | |
22 'wert': 'Rückfrage' | |
23 }, { | |
24 'id': 7, | |
25 'wert': 'nicht lieferbar' | |
26 }, { | |
27 'id': 8, | |
28 'wert': 'zurücksetzen' | |
29 }] | |
30 }); | |
31 | |
32 /** | 9 /** |
33 * Combobox for Statuswert | 10 * Combobox for Statuswert |
34 */ | 11 */ |
35 Ext.define('Lada.view.widget.Status', { | 12 Ext.define('Lada.view.widget.Status', { |
36 extend: 'Lada.view.widget.base.ComboBox', | 13 extend: 'Lada.view.widget.base.ComboBox', |
37 alias: 'widget.statuswert', | 14 alias: 'widget.statuswert', |
38 store: statuswerteStore, | 15 store: Ext.data.StoreManager.get('statuswerte'), |
39 displayField: 'wert', | 16 displayField: 'wert', |
40 valueField: 'id', | 17 valueField: 'id', |
41 emptyText: 'Wählen Sie einen Status', | 18 emptyText: 'Wählen Sie einen Status', |
42 // Enable filtering of comboboxes | 19 // Enable filtering of comboboxes |
43 autoSelect: false, | 20 autoSelect: false, |