comparison app/view/widget/OrtTyp.js @ 1316:f772e70ff723

Added model/store/widget for new stammdaten ort attributes.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 03 Feb 2017 13:16:53 +0100
parents
children 3a3148d50b9c
comparison
equal deleted inserted replaced
1315:d312e514875c 1316:f772e70ff723
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 * Combobox for OrtTyp
11 */
12 Ext.define('Lada.view.widget.OrtTyp', {
13 extend: 'Lada.view.widget.base.ComboBox',
14 alias: 'widget.orttyp',
15 store: 'OrtTyp',
16 displayField: 'id',
17 valueField: 'id',
18 // Enable filtering of comboboxes
19 queryMode: 'local',
20 triggerAction: 'all',
21 typeAhead: false,
22 tpl: Ext.create("Ext.XTemplate",
23 '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' +
24 '{code} - {ortTyp}</div></tpl>'),
25 displayTpl: Ext.create('Ext.XTemplate',
26 '<tpl for=".">{code} - {ortTyp}</tpl>'),
27
28 initComponent: function() {
29 var i18n = Lada.getApplication().bundle;
30 this.emptyText = i18n.getMsg('emptytext.orttyp');
31
32 this.store = Ext.data.StoreManager.get('orttyp');
33 if (!this.store) {
34 this.store = Ext.create('Lada.store.OrtTyp');
35 }
36 else {
37 this.store.clearFilter();
38 }
39 this.callParent(arguments);
40 }
41 });

http://lada.wald.intevation.org