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' ,{ torsten@49: extend: 'Ext.form.ComboBox', torsten@49: editable: false, torsten@49: alias: 'widget.testdatensatz', torsten@121: store: testdatensatzStore, torsten@49: queryMode: 'local', torsten@49: displayField:'testdatensatz', torsten@49: valueField: 'testdatensatzId', torsten@49: emptyText:'Testdatensatz?', torsten@49: initComponent: function() { torsten@49: this.callParent(arguments); torsten@49: } torsten@49: });