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: dustin@611: raimund@548: raimund@548: /** raimund@548: * Combobox for Testdatensatz. raimund@548: * This widget is also used a generic "Ja/Nein" combobox. raimund@548: */ raimund@548: Ext.define('Lada.view.widget.Testdatensatz', { raimund@548: extend: 'Lada.view.widget.base.ComboBox', raimund@548: alias: 'widget.testdatensatz', raimund@548: queryMode: 'local', raimund@548: displayField: 'testdatensatz', raimund@548: valueField: 'testdatensatzId', raimund@548: emptyText: 'Testdatensatz?', raimund@548: raimund@548: initComponent: function() { dustin@611: this.store = Ext.create('Ext.data.Store', { dustin@611: fields: ['testdatensatzId', 'testdatensatz'], dustin@611: data: [{ dustin@611: 'testdatensatzId': true, dustin@611: 'testdatensatz': 'Ja' dustin@611: }, { dustin@611: 'testdatensatzId': false, dustin@611: 'testdatensatz': 'Nein' dustin@611: }] dustin@611: }); raimund@548: this.callParent(arguments); raimund@548: } raimund@548: });