annotate app/view/widget/DatensatzErzeuger.js @ 1115:6866be10e40c

Add missing status value.
author Tom Gottfried <tom@intevation.de>
date Wed, 18 May 2016 18:22:33 +0200
parents 9bcd17f7a0ae
children 92c0fa2f29b0
rev   line source
1107
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
2 * Software engineering by Intevation GmbH
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
3 *
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
7 */
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
8
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
9 /**
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
10 * Combobox for Umweltbereich
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
11 */
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
12 Ext.define('Lada.view.widget.DatensatzErzeuger' ,{
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
13 extend: 'Lada.view.widget.base.ComboBox',
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
14 alias: 'widget.datensatzerzeuger',
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
15 store: 'datensatzerzeuger',
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
16 displayField: 'id',
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
17 valueField: 'id',
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
18 editable: this.editable || false,
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
19 forceSelection: true,
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
20 // Enable filtering of comboboxes
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
21 autoSelect: false,
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
22 queryMode: 'local',
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
23 triggerAction: 'all',
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
24 typeAhead: false,
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
25 minChars: 0,
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
26 tpl: Ext.create("Ext.XTemplate",
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
27 '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' +
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
28 '{id} - {datensatzErzeuger}</div></tpl>'),
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
29 displayTpl: Ext.create('Ext.XTemplate',
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
30 '<tpl for=".">{id} - {datensatzErzeuger}</tpl>'),
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
31
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
32 initComponent: function() {
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
33 var i18n = Lada.getApplication().bundle;
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
34 this.emptyText = i18n.getMsg('emptytext.datensatzerzeuger');
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
35
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
36 this.store = Ext.data.StoreManager.get('datensatz_erzeuger');
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
37 if (!this.store) {
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
38 this.store = Ext.create('Lada.store.DatensatzErzeuger');
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
39 }
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
40 this.store.sort();
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
41 this.callParent(arguments);
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
42 }
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
43 });

http://lada.wald.intevation.org