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 torsten@472: * the documentation coming with IMIS-Labordaten-Application for details. torsten@472: */ torsten@472: torsten@121: var testdatensatzStore = Ext.create('Ext.data.Store', { torsten@121: fields: ['testdatensatzId', 'testdatensatz'], torsten@121: data: [ torsten@121: {"testdatensatzId":true, "testdatensatz":"Ja"}, torsten@121: {"testdatensatzId":false, "testdatensatz":"Nein"} torsten@121: ] torsten@121: }); torsten@121: torsten@352: /** torsten@352: * Combobox for Testdatensatz. torsten@352: * This widget is also used a generic "Ja/Nein" combobox. torsten@352: */ torsten@49: Ext.define('Lada.view.widgets.Testdatensatz' ,{ raimund@491: extend: 'Ext.form.ComboBox', raimund@491: editable: false, raimund@491: alias: 'widget.testdatensatz', raimund@491: store: testdatensatzStore, raimund@491: queryMode: 'local', raimund@491: displayField:'testdatensatz', raimund@491: valueField: 'testdatensatzId', raimund@491: emptyText:'Testdatensatz?', raimund@491: torsten@49: initComponent: function() { torsten@49: this.callParent(arguments); torsten@49: } torsten@49: });