annotate app/view/search/List.js @ 478:a07cf685606c

Added dependency to colum layout.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 21 Jan 2014 15:08:08 +0100
parents debfcc7713e3
children 850ccfe5f3c4
rev   line source
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 349
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: 349
diff changeset
2 * Software engineering by Intevation GmbH
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 349
diff changeset
3 *
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 349
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: 349
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 349
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 349
diff changeset
7 */
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 349
diff changeset
8
349
d5a2f7af695a Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 254
diff changeset
9 /*
d5a2f7af695a Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 254
diff changeset
10 * Grid to list available search queryies
d5a2f7af695a Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 254
diff changeset
11 */
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
12 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
13 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
14 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
15 alias: 'widget.queryselector',
478
a07cf685606c Added dependency to colum layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
16 require: ['Ext.layout.container.Column'],
6
8e79bda4d55b Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 initComponent: function() {
254
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
18 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
19 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
20 {
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
21 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
22 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
23 editable: false,
236
5a9c6b71bad2 Use new queries store in search selection.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 120
diff changeset
24 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
25 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
26 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
27 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
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 xtype: 'panel',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
31 maxWidth: '500',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
32 border: false,
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
33 margin: '0 10',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
34 items: [
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
35 {
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
36 id: 'sqldesc',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
37 xtype: 'displayfield',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
38 fieldLabel: 'Beschreibung',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
39 value: '-/-'
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
40 },
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
41 {
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
42 id: 'sqlquery',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
43 xtype: 'displayfield',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
44 fieldLabel: 'Abfrage',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
45 value: '-/-'
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
46 }
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
47 ]
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
48 }
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
49 ];
6
8e79bda4d55b Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
50 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
51 }
8e79bda4d55b Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
52 });

http://lada.wald.intevation.org