comparison app/view/Viewport.js @ 31:897e3100c6da

Changed logic of the Probenauswahl. Now logic works like the BFS version.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 21 May 2013 17:53:51 +0200
parents 4d60b9ebce15
children 4040d384d6b3
comparison
equal deleted inserted replaced
30:c684f01c0b72 31:897e3100c6da
1 Ext.define('Lada.view.Viewport' ,{ 1 Ext.define('Lada.view.Viewport' ,{
2 extend: 'Ext.container.Viewport', 2 extend: 'Ext.container.Viewport',
3 requires: [ 3 requires: [
4 'Lada.view.search.List', 4 'Lada.view.search.List',
5 'Lada.view.search.Variables', 5 'Lada.view.search.Query1',
6 'Lada.view.search.Query2',
6 'Lada.view.proben.List' 7 'Lada.view.proben.List'
7 ], 8 ],
8 initComponent: function() { 9 initComponent: function() {
9 console.log('Setting up Viewport'); 10 console.log('Setting up Viewport');
10 this.items = { 11 this.items = {
11 xtype: 'panel', 12 xtype: 'panel',
12 title: '<center>Probenauswahlmaske</center>', 13 title: '<center>Probenauswahlmaske</center>',
13 bodyPadding: '10 10', 14 bodyPadding: '10 10',
14 items: [ 15 items: [
16 // Auswahl einer Abfrage.
15 { 17 {
16 xtype: 'queryselector', 18 xtype: 'queryselector',
17 margin: '0 0 10 0' 19 margin: '0 0 10 0'
18 }, 20 },
19 // Variables settings for the current selected sql statement. 21 // Variables settings for the current selected sql statement.
20 //{ 22 {
21 // id: 'variables', 23 id: 'query1',
22 // xtype: 'variables' 24 xtype: 'query1',
23 //}, 25 hidden: true
26 },
27 {
28 id: 'query2',
29 xtype: 'query2',
30 hidden: true
31
32 },
33 {
34 id: 'SearchBtnPanel',
35 xtype: 'panel',
36 border: false,
37 margin: '0 0 10 0',
38 items: [
39 {
40 id: 'SearchBtn',
41 text: 'Suchen',
42 xtype: 'button',
43 margin: '0 10 0 0'
44 },
45 {
46 id: 'ResetBtn',
47 text: 'Zurücksetzen',
48 xtype: 'button'
49 }
50 ],
51 hidden: true
52
53 },
54 // Buttons to trigger the search.
24 // Resultlist for the query. 55 // Resultlist for the query.
25 { 56 {
26 id: 'result', 57 id: 'result',
27 xtype: 'probenlist' 58 xtype: 'probenlist',
59 hidden: true
28 } 60 }
29 ] 61 ]
30 }; 62 };
31 this.callParent(arguments); 63 this.callParent(arguments);
32 } 64 }

http://lada.wald.intevation.org