Mercurial > lada > lada-client
annotate app/view/widget/MessprogrammLand.js @ 1114:66d4b392bc5f
Adapt icon for button to Rev 05948135ce75.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 18 May 2016 14:05:50 +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 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', |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
16 displayField: 'display', |
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 emptyText: 'Wählen Sie eine Landesmessprogramm', |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
19 // Enable filtering of comboboxes |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
20 queryMode: 'local', |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
21 triggerAction: 'all', |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
22 typeAhead: true, |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
23 minChars: 0, |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
24 layout: 'hbox', |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
25 |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
26 initComponent: function() { |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
27 this.store = Ext.data.StoreManager.get('messprogrammkategorie'); |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
28 if (!this.store) { |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
29 this.store = Ext.create('Lada.store.MessprogrammKategorie'); |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
30 } |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
31 else { |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
32 this.store.clearFilter(); |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
33 } |
9bcd17f7a0ae
change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents:
diff
changeset
|
34 this.callParent(arguments); |
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 }); |