raimund@548: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz raimund@548: * Software engineering by Intevation GmbH raimund@548: * raimund@548: * This file is Free Software under the GNU GPL (v>=3) raimund@548: * and comes with ABSOLUTELY NO WARRANTY! Check out raimund@548: * the documentation coming with IMIS-Labordaten-Application for details. raimund@548: */ raimund@548: raimund@548: var statuswerteStore = Ext.create('Ext.data.Store', { tom@1159: fields: ['id', 'wert'], raimund@548: data: [{ raimund@548: 'id': 1, tom@1159: 'wert': 'plausibel' raimund@548: }, { raimund@1080: 'id': 2, tom@1159: 'wert': 'nicht repräsentativ' raimund@548: }, { raimund@1080: 'id': 3, tom@1159: 'wert': 'nicht plausibel' raimund@1080: }, { tom@1115: 'id': 4, tom@1159: 'wert': 'Rückfrage' tom@1115: }, { raimund@1080: 'id': 7, tom@1159: 'wert': 'nicht lieferbar' raimund@1080: }, { raimund@1080: 'id': 8, tom@1159: 'wert': 'zurücksetzen' raimund@548: }] raimund@548: }); raimund@548: raimund@548: /** raimund@548: * Combobox for Statuswert raimund@548: */ raimund@548: Ext.define('Lada.view.widget.Status', { raimund@548: extend: 'Lada.view.widget.base.ComboBox', raimund@548: alias: 'widget.statuswert', raimund@548: store: statuswerteStore, tom@1159: displayField: 'wert', raimund@548: valueField: 'id', tom@1115: emptyText: 'Wählen Sie einen Status', raimund@548: // Enable filtering of comboboxes raimund@548: autoSelect: false, raimund@548: queryMode: 'local', raimund@548: triggerAction: 'all', raimund@548: typeAhead: false, raimund@548: minChars: 0, raimund@548: raimund@548: initComponent: function() { raimund@548: this.callParent(arguments); raimund@548: } raimund@548: });