comparison app/view/widget/Probenintervall.js @ 757:b8502964f5c3

Added missing files. Added MmtMockup
author Dustin Demuth <dustin@intevation.de>
date Wed, 06 May 2015 14:15:37 +0200
parents
children
comparison
equal deleted inserted replaced
756:f2db1ae1d012 757:b8502964f5c3
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */
8
9
10
11
12 /**
13 * Combobox for Probenintervall
14 */
15 Ext.define('Lada.view.widget.Probenintervall', {
16 extend: 'Lada.view.widget.base.ComboBox',
17 alias: 'widget.probenintervall',
18 requires: [
19 'Lada.store.Probenintervall'
20 ],
21 store: 'Probenintervall',
22 displayField: 'probenintervall',
23 valueField: 'probenintervall',
24 forceSelection: true,
25 //editable: this.editable || false,
26 // Enable filtering of comboboxes
27 queryMode: 'local',
28 triggerAction: 'all',
29 typeAhead: false,
30 tpl: Ext.create("Ext.XTemplate",
31 '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' +
32 '{probenintervall} - {piTexti18nId}</div></tpl>'),
33 displayTpl: Ext.create('Ext.XTemplate',
34 '<tpl for=".">{probenintervall} -'+
35 '{piTexti18nId}</tpl>'),
36
37 initComponent: function() {
38 var i18n = Lada.getApplication().bundle;
39 this.emptyText = i18n.getMsg('emptytext.probenintervall');
40
41 this.store = Ext.data.StoreManager.get('Probenintervall');
42
43 if (!this.store) {
44 this.store = Ext.create('Lada.store.Probenintervall');
45 }
46 else {
47 this.store.clearFilter();
48 }
49 this.callParent(arguments);
50 }
51 });

http://lada.wald.intevation.org