torsten@472: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz torsten@472: * Software engineering by Intevation GmbH torsten@472: * torsten@472: * This file is Free Software under the GNU GPL (v>=3) torsten@472: * and comes with ABSOLUTELY NO WARRANTY! Check out raimund@497: * the documentation coming with IMIS-Labordaten-Application for details. torsten@472: */ torsten@472: torsten@198: var statuswerteStore = Ext.create('Ext.data.Store', { torsten@198: fields: ['id', 'status'], raimund@497: data: [{ raimund@497: 'id': 1, raimund@497: 'status': 'nicht vergeben' raimund@497: }, { raimund@497: 'id': 2, raimund@497: 'status': 'plausibel' raimund@497: }, { raimund@497: 'id': 3, raimund@497: 'status': 'nicht repräsentativ' raimund@497: }, { raimund@497: 'id': 4, raimund@497: 'status': 'nicht plausibel' raimund@497: }] torsten@198: }); torsten@198: torsten@352: /** torsten@352: * Combobox for Statuswert torsten@352: */ raimund@497: Ext.define('Lada.view.widgets.Statuswert', { raimund@491: extend: 'Ext.form.ComboBox', raimund@491: alias: 'widget.statuswert', raimund@491: store: statuswerteStore, raimund@497: displayField: 'status', raimund@491: valueField: 'id', raimund@497: emptyText: 'Wählen Sie eine Status', raimund@491: // Enable filtering of comboboxes raimund@491: autoSelect: false, raimund@491: queryMode: 'local', raimund@497: triggerAction: 'all', raimund@491: typeAhead: false, raimund@491: minChars: 0, raimund@491: torsten@198: initComponent: function() { torsten@198: this.callParent(arguments); torsten@198: } torsten@198: });