Mercurial > lada > lada-client
annotate app/view/widget/MessstelleLabor.js @ 1359:49efc1cc0eac
Remove trailing whitespace.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 07 Feb 2017 18:50:32 +0100 |
parents | cbe5a19449a4 |
children |
rev | line source |
---|---|
1066
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
2 * Software engineering by Intevation GmbH |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
3 * |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
7 */ |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
9 /** |
1083
cbe5a19449a4
Code style etc.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1066
diff
changeset
|
10 * Combobox for Messstelle/Labor |
1066
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 */ |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.view.widget.MessstelleLabor', { |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
13 extend: 'Lada.view.widget.base.ComboBox', |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
14 alias: 'widget.messstellelabor', |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 store: 'MessstelleLabor', |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 displayField: 'displayCombi', |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
17 valueField: 'id', |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
18 editable: this.editable || false, |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 forceSelection: true, |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
20 emptyText: 'Wählen Sie eine Kombination', |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
21 // Enable filtering of comboboxes |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
22 autoSelect: true, |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
23 queryMode: 'local', |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
24 triggerAction: 'all', |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
25 typeAhead: false, |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
26 minChars: 0, |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
27 |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
28 initComponent: function() { |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
29 this.store = Ext.data.StoreManager.get('messstellelabor'); |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
30 this.callParent(arguments); |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
31 this.down('combobox').isFormField = false; |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
32 } |
d198946e5540
Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 }); |