annotate app/view/widget/OrtszuordnungTyp.js @ 1339:1a2cd9bef6d7

messprogramm zuordnung now functional
author Maximilian Krambach <mkrambach@intevation.de>
date Fri, 03 Feb 2017 19:37:28 +0100
parents d2f06ce4d43a
children
rev   line source
1338
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
2 * Software engineering by Intevation GmbH
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
3 *
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
7 */
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
8
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
9 /**
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
10 * Combobox for type of Ortszuordnung
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
11 */
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.view.widget.OrtszuordnungTyp' ,{
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
13 extend: 'Lada.view.widget.base.ComboBox',
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
14 alias: 'widget.ortszuordnungtyp',
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
15 store: 'OrtszuordnungTyp',
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
16 displayField: 'ortstyp',
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
17 valueField: 'id',
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
18 editable: this.editable || false,
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
19 forceSelection: true,
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
20 // Enable filtering of comboboxes
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
21 autoSelect: false,
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
22 queryMode: 'local',
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
23 triggerAction: 'all',
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
24 typeAhead: false,
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
25 minChars: 0,
1339
1a2cd9bef6d7 messprogramm zuordnung now functional
Maximilian Krambach <mkrambach@intevation.de>
parents: 1338
diff changeset
26 allowBlank: this.allowBlank,
1338
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
27
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
28 initComponent: function() {
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
29 var i18n = Lada.getApplication().bundle;
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
30 this.emptyText = i18n.getMsg('emptytext.ortszuordnungtyp');
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
31
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
32 this.store = Ext.data.StoreManager.get('ortszuordnungtyp');
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
33 if (!this.store) {
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
34 this.store = Ext.create('Lada.store.OrtszuordnungTyp');
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
35 }
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
36 this.store.sort();
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
37 this.callParent(arguments);
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
38 }
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
39 });

http://lada.wald.intevation.org