annotate app/view/widgets/Betriebsart.js @ 121:c05fda928b82

Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 21 Jun 2013 16:55:23 +0200
parents 39f5f1529847
children 5fbcbf330839
rev   line source
121
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 46
diff changeset
1 // Combobox for Betriebsart
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 46
diff changeset
2 var betriebsartStore = Ext.create('Ext.data.Store', {
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 46
diff changeset
3 fields: ['betriebsartId', 'betriebsart'],
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 46
diff changeset
4 data: [
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 46
diff changeset
5 {"betriebsartId":"1", "betriebsart":"Normal-/Routinebtrieb"},
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 46
diff changeset
6 {"betriebsartId":"2", "betriebsart":"Störfall/Intensivbetrieb"}
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 46
diff changeset
7 ]
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 46
diff changeset
8 });
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 46
diff changeset
9
46
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 Ext.define('Lada.view.widgets.Betriebsart' ,{
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 extend: 'Ext.form.ComboBox',
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 alias: 'widget.betriebsart',
121
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 46
diff changeset
13 store: betriebsartStore,
46
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 queryMode: 'local',
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 displayField:'betriebsart',
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 valueField: 'betriebsartId',
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 emptyText:'Wählen Sie eine Betriebsart',
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 initComponent: function() {
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 this.callParent(arguments);
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 }
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 });

http://lada.wald.intevation.org