annotate app/view/widget/Status.js @ 1227:848b50a4a4eb

Add missing requirements.
author Tom Gottfried <tom@intevation.de>
date Thu, 27 Oct 2016 19:52:29 +0200
parents 85acec6c6e6a
children 38599f18c863
rev   line source
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
2 * Software engineering by Intevation GmbH
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
3 *
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
7 */
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
8
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
9 var statuswerteStore = Ext.create('Ext.data.Store', {
1159
85acec6c6e6a Use equal fieldnames as in model for StatusWerte.
Tom Gottfried <tom@intevation.de>
parents: 1115
diff changeset
10 fields: ['id', 'wert'],
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
11 data: [{
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
12 'id': 1,
1159
85acec6c6e6a Use equal fieldnames as in model for StatusWerte.
Tom Gottfried <tom@intevation.de>
parents: 1115
diff changeset
13 'wert': 'plausibel'
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
14 }, {
1080
15d7b7a9e177 Override getValue for Netzbetreiber Combobox to allways return the correct
Raimund Renkert <raimund.renkert@intevation.de>
parents: 548
diff changeset
15 'id': 2,
1159
85acec6c6e6a Use equal fieldnames as in model for StatusWerte.
Tom Gottfried <tom@intevation.de>
parents: 1115
diff changeset
16 'wert': 'nicht repräsentativ'
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
17 }, {
1080
15d7b7a9e177 Override getValue for Netzbetreiber Combobox to allways return the correct
Raimund Renkert <raimund.renkert@intevation.de>
parents: 548
diff changeset
18 'id': 3,
1159
85acec6c6e6a Use equal fieldnames as in model for StatusWerte.
Tom Gottfried <tom@intevation.de>
parents: 1115
diff changeset
19 'wert': 'nicht plausibel'
1080
15d7b7a9e177 Override getValue for Netzbetreiber Combobox to allways return the correct
Raimund Renkert <raimund.renkert@intevation.de>
parents: 548
diff changeset
20 }, {
1115
6866be10e40c Add missing status value.
Tom Gottfried <tom@intevation.de>
parents: 1080
diff changeset
21 'id': 4,
1159
85acec6c6e6a Use equal fieldnames as in model for StatusWerte.
Tom Gottfried <tom@intevation.de>
parents: 1115
diff changeset
22 'wert': 'Rückfrage'
1115
6866be10e40c Add missing status value.
Tom Gottfried <tom@intevation.de>
parents: 1080
diff changeset
23 }, {
1080
15d7b7a9e177 Override getValue for Netzbetreiber Combobox to allways return the correct
Raimund Renkert <raimund.renkert@intevation.de>
parents: 548
diff changeset
24 'id': 7,
1159
85acec6c6e6a Use equal fieldnames as in model for StatusWerte.
Tom Gottfried <tom@intevation.de>
parents: 1115
diff changeset
25 'wert': 'nicht lieferbar'
1080
15d7b7a9e177 Override getValue for Netzbetreiber Combobox to allways return the correct
Raimund Renkert <raimund.renkert@intevation.de>
parents: 548
diff changeset
26 }, {
15d7b7a9e177 Override getValue for Netzbetreiber Combobox to allways return the correct
Raimund Renkert <raimund.renkert@intevation.de>
parents: 548
diff changeset
27 'id': 8,
1159
85acec6c6e6a Use equal fieldnames as in model for StatusWerte.
Tom Gottfried <tom@intevation.de>
parents: 1115
diff changeset
28 'wert': 'zurücksetzen'
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
29 }]
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
30 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
31
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
32 /**
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
33 * Combobox for Statuswert
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
34 */
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
35 Ext.define('Lada.view.widget.Status', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
36 extend: 'Lada.view.widget.base.ComboBox',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
37 alias: 'widget.statuswert',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
38 store: statuswerteStore,
1159
85acec6c6e6a Use equal fieldnames as in model for StatusWerte.
Tom Gottfried <tom@intevation.de>
parents: 1115
diff changeset
39 displayField: 'wert',
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
40 valueField: 'id',
1115
6866be10e40c Add missing status value.
Tom Gottfried <tom@intevation.de>
parents: 1080
diff changeset
41 emptyText: 'Wählen Sie einen Status',
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
42 // Enable filtering of comboboxes
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
43 autoSelect: false,
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
44 queryMode: 'local',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
45 triggerAction: 'all',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
46 typeAhead: false,
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
47 minChars: 0,
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
48
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
49 initComponent: function() {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
50 this.callParent(arguments);
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
51 }
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
52 });

http://lada.wald.intevation.org