annotate app/view/widgets/Messmethode.js @ 531:7fb335bf6799

Fixed messmethode combobox display value.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 17 Dec 2014 11:34:43 +0100
parents c1b77fb96b01
children
rev   line source
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
2 * Software engineering by Intevation GmbH
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
3 *
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 496
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
7 */
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
8
352
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 272
diff changeset
9 /**
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 272
diff changeset
10 * Combobox for Messmethode
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 272
diff changeset
11 */
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 496
diff changeset
12 Ext.define('Lada.view.widgets.Messmethode', {
490
446e99cfd425 Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
13 extend: 'Ext.form.ComboBox',
446e99cfd425 Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
14 alias: 'widget.messmethode',
446e99cfd425 Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
15 store: 'StaMessmethoden',
531
7fb335bf6799 Fixed messmethode combobox display value.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
16 displayField: 'display',
490
446e99cfd425 Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
17 valueField: 'id',
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 496
diff changeset
18 emptyText: 'Wählen Sie eine Messmethode',
490
446e99cfd425 Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
19 // Enable filtering of comboboxes
446e99cfd425 Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
20 autoSelect: false,
446e99cfd425 Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
21 queryMode: 'local',
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 496
diff changeset
22 triggerAction: 'all',
531
7fb335bf6799 Fixed messmethode combobox display value.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
23 typeAhead: true,
490
446e99cfd425 Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
24 minChars: 0,
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 490
diff changeset
25
178
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 initComponent: function() {
496
d07e5086a64b Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
27 this.store = Ext.data.StoreManager.get('staMessmethoden');
490
446e99cfd425 Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
28 if (!this.store) {
446e99cfd425 Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
29 this.store = Ext.create('Lada.store.StaMessmethoden');
446e99cfd425 Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 481
diff changeset
30 }
178
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 this.callParent(arguments);
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
32 }
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
33 });

http://lada.wald.intevation.org