annotate app/view/search/List.js @ 322:49a42c7f1d1f

Added docstring
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 13 Aug 2013 08:05:33 +0200
parents c2effc4a497b
children d5a2f7af695a
rev   line source
28
4d60b9ebce15 Renamed sql modul into search. Further display The query selection as Combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 25
diff changeset
1 Ext.define('Lada.view.search.List' ,{
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
2 extend: 'Ext.form.FieldSet',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
3 title: 'SQL-Auswahl',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
4 alias: 'widget.queryselector',
6
8e79bda4d55b Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 initComponent: function() {
254
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
6 this.layout = 'column',
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
7 this.items = [
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
8 {
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
9 id: 'search',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
10 xtype: 'combobox',
48
5a977bf18619 Make the combobox for selecting search queries not editiable. Only predefined
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 31
diff changeset
11 editable: false,
236
5a9c6b71bad2 Use new queries store in search selection.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 120
diff changeset
12 store: 'Queries',
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
13 displayField:'name',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
14 valueField:'id',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
15 emptyText:'Wählen Sie eine Abfrage'
254
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
16 },
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
17 {
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
18 xtype: 'panel',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
19 maxWidth: '500',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
20 border: false,
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
21 margin: '0 10',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
22 items: [
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
23 {
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
24 id: 'sqldesc',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
25 xtype: 'displayfield',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
26 fieldLabel: 'Beschreibung',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
27 value: '-/-'
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
28 },
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
29 {
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
30 id: 'sqlquery',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
31 xtype: 'displayfield',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
32 fieldLabel: 'Abfrage',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
33 value: '-/-'
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
34 }
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
35 ]
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
36 }
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
37 ];
6
8e79bda4d55b Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
38 this.callParent(arguments);
8e79bda4d55b Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
39 }
8e79bda4d55b Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
40 });

http://lada.wald.intevation.org