Mercurial > lada > lada-client
annotate app/view/widget/MessprogrammLand.js @ 1420:48c9c7b0ceef 2.6.1
make map panel collapsable in Stammdaten form
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Wed, 05 Apr 2017 16:02:45 +0200 |
parents | 418b9afee700 |
children |
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 MessprogrammLand |
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.MessprogrammLand', { |
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.messprogrammland', |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
15 store: 'messprogrammkategorie', |
1116
92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1107
diff
changeset
|
16 displayField: 'id', |
1247
74e4e5a7adc7
Fixed messprogramm_land widget.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1128
diff
changeset
|
17 valueField: 'id', |
1116
92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1107
diff
changeset
|
18 editable: this.editable || false, |
92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1107
diff
changeset
|
19 forceSelection: true, |
1107
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
20 // Enable filtering of comboboxes |
1116
92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1107
diff
changeset
|
21 autoSelect: false, |
1107
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', |
1116
92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1107
diff
changeset
|
24 typeAhead: false, |
1107
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
25 minChars: 0, |
1116
92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1107
diff
changeset
|
26 tpl: Ext.create("Ext.XTemplate", |
92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1107
diff
changeset
|
27 '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' + |
92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1107
diff
changeset
|
28 '{mplId} - {bezeichnung}</div></tpl>'), |
92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1107
diff
changeset
|
29 displayTpl: Ext.create('Ext.XTemplate', |
92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1107
diff
changeset
|
30 '<tpl for=".">{mplId} - {bezeichnung}</tpl>'), |
1107
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() { |
1128
9c8b5cbb929a
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1116
diff
changeset
|
33 var i18n = Lada.getApplication().bundle; |
9c8b5cbb929a
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1116
diff
changeset
|
34 this.emptyText = i18n.getMsg('emptytext.messprogrammland'); |
9c8b5cbb929a
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1116
diff
changeset
|
35 |
1107
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
36 this.store = Ext.data.StoreManager.get('messprogrammkategorie'); |
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.MessprogrammKategorie'); |
1396
418b9afee700
changed MessprogrammKategorie pageSize and added filter for combo dependent on selected messstelle in probeform and messprogrammform
Evi Huber <ehuber@bfs.de>
parents:
1247
diff
changeset
|
39 } else { |
418b9afee700
changed MessprogrammKategorie pageSize and added filter for combo dependent on selected messstelle in probeform and messprogrammform
Evi Huber <ehuber@bfs.de>
parents:
1247
diff
changeset
|
40 this.store.clearFilter(); |
1107
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
41 } |
1128
9c8b5cbb929a
complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents:
1116
diff
changeset
|
42 this.store.sort(); |
1107
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
43 this.callParent(arguments); |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
44 } |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
45 }); |