comparison app/view/widget/Testdatensatz.js @ 611:8a156a7fbe67

added a controller for messungforms, modified testdatensatz-widget to load a local store, removed dirtychange listeners from probe-form
author Dustin Demuth <dustin@intevation.de>
date Fri, 13 Mar 2015 15:11:12 +0100
parents d47ee7439f44
children 2e8da590ea0c
comparison
equal deleted inserted replaced
610:f240fe19ff5d 611:8a156a7fbe67
4 * This file is Free Software under the GNU GPL (v>=3) 4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out 5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details. 6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */ 7 */
8 8
9 var testdatensatzStore = Ext.create('Ext.data.Store', { 9
10 fields: ['testdatensatzId', 'testdatensatz'],
11 data: [{
12 'testdatensatzId': true,
13 'testdatensatz': 'Ja'
14 }, {
15 'testdatensatzId': false,
16 'testdatensatz': 'Nein'
17 }]
18 });
19 10
20 /** 11 /**
21 * Combobox for Testdatensatz. 12 * Combobox for Testdatensatz.
22 * This widget is also used a generic "Ja/Nein" combobox. 13 * This widget is also used a generic "Ja/Nein" combobox.
23 */ 14 */
24 Ext.define('Lada.view.widget.Testdatensatz', { 15 Ext.define('Lada.view.widget.Testdatensatz', {
25 extend: 'Lada.view.widget.base.ComboBox', 16 extend: 'Lada.view.widget.base.ComboBox',
26 editable: false,
27 alias: 'widget.testdatensatz', 17 alias: 'widget.testdatensatz',
28 store: testdatensatzStore,
29 queryMode: 'local', 18 queryMode: 'local',
30 displayField: 'testdatensatz', 19 displayField: 'testdatensatz',
31 valueField: 'testdatensatzId', 20 valueField: 'testdatensatzId',
32 emptyText: 'Testdatensatz?', 21 emptyText: 'Testdatensatz?',
33 22
34 initComponent: function() { 23 initComponent: function() {
24 this.store = Ext.create('Ext.data.Store', {
25 fields: ['testdatensatzId', 'testdatensatz'],
26 data: [{
27 'testdatensatzId': true,
28 'testdatensatz': 'Ja'
29 }, {
30 'testdatensatzId': false,
31 'testdatensatz': 'Nein'
32 }]
33 });
35 this.callParent(arguments); 34 this.callParent(arguments);
36 } 35 }
37 }); 36 });

http://lada.wald.intevation.org