Mercurial > lada > lada-client
annotate app/view/search/List.js @ 542:0a948bb99b60
Added error and warning handling to date time field.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 18 Dec 2014 15:03:08 +0100 |
parents | 9545adcfceeb |
children |
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 |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
472
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 */ |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
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 alias: 'widget.queryselector', |
498
c1b77fb96b01
Have consistent requires in classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
497
diff
changeset
|
15 |
c1b77fb96b01
Have consistent requires in classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
497
diff
changeset
|
16 require: [ |
c1b77fb96b01
Have consistent requires in classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
497
diff
changeset
|
17 'Ext.layout.container.Column' |
c1b77fb96b01
Have consistent requires in classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
497
diff
changeset
|
18 ], |
c1b77fb96b01
Have consistent requires in classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
497
diff
changeset
|
19 |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
20 title: 'SQL-Auswahl', |
6
8e79bda4d55b
Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 initComponent: function() { |
520
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
22 this.layout = { |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
23 type: 'vbox', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
24 align: 'stretch' |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
25 }; |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
26 this.items = [{ |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
27 id: 'search', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
28 xtype: 'combobox', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
29 editable: false, |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
30 store: 'Queries', |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
31 displayField: 'name', |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
32 valueField: 'id', |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
33 emptyText: 'Wählen Sie eine Abfrage' |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
34 }, { |
520
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
35 // Buttons to trigger the search. |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
36 id: 'SearchBtnPanel', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
37 xtype: 'panel', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
38 border: false, |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
39 margin: '0 0 10 0', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
40 items: [{ |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
41 id: 'SearchBtn', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
42 text: 'Suchen', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
43 xtype: 'button', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
44 margin: '0 10 0 0' |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
45 }, { |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
46 id: 'ResetBtn', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
47 text: 'Zurücksetzen', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
48 xtype: 'button' |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
49 }], |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
50 hidden: false |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
51 }, { |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
52 xtype: 'panel', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
53 maxWidth: '500', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
54 border: false, |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
55 margin: '0 10', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
56 items: [{ |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
57 id: 'sqldesc', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
58 xtype: 'displayfield', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
59 fieldLabel: 'Beschreibung', |
520
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
60 shrinkWrap: 3, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
61 value: '-/-' |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
62 }, { |
527
9545adcfceeb
Removed sql statement and added column header to query selection.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
520
diff
changeset
|
63 id: 'results', |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
64 xtype: 'displayfield', |
527
9545adcfceeb
Removed sql statement and added column header to query selection.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
520
diff
changeset
|
65 fieldLabel: 'Spalten', |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
66 value: '-/-' |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
67 }] |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
478
diff
changeset
|
68 }]; |
6
8e79bda4d55b
Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
69 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
|
70 } |
8e79bda4d55b
Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
71 }); |