Mercurial > lada > lada-client
annotate app/view/Viewport.js @ 341:6eaa741b396b
Added documentation.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 13 Aug 2013 11:12:09 +0200 |
parents | 1626279daadb |
children | b8bd8d9a93ab |
rev | line source |
---|---|
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
1 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
2 * Viewport for the Lada-Client |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
3 * |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
4 * The viewport initialises the graphical elements of the application. For |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
5 * debugging it is possible to initialize other components directly see the |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
6 * initComponent function. |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
7 */ |
12
cdcaf38eab45
Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 Ext.define('Lada.view.Viewport' ,{ |
cdcaf38eab45
Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 extend: 'Ext.container.Viewport', |
cdcaf38eab45
Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 requires: [ |
259
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
11 'Lada.store.Info', |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
12 'Lada.view.search.List', |
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
|
13 'Lada.view.search.List', |
245
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
14 'Lada.view.proben.List', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
15 'Lada.view.widgets.Mst', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
16 'Lada.view.widgets.Uwb', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
17 'Lada.view.widgets.Datetime' |
12
cdcaf38eab45
Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 ], |
cdcaf38eab45
Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 initComponent: function() { |
cdcaf38eab45
Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 console.log('Setting up Viewport'); |
184
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
21 this.initSearch(); |
173
1a11ae666f11
Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
148
diff
changeset
|
22 |
1a11ae666f11
Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
148
diff
changeset
|
23 // Development related: |
1a11ae666f11
Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
148
diff
changeset
|
24 // Disable "initSearch" call and enable one of the following init |
1a11ae666f11
Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
148
diff
changeset
|
25 // methods to get a dialog directly without the need to click through |
1a11ae666f11
Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
148
diff
changeset
|
26 // the whole application. |
230
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
27 //this.initProbe(); |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
28 //this.initOrt(); |
184
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
29 //this.initMessung(); |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
30 //this.initMesswert(); |
173
1a11ae666f11
Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
148
diff
changeset
|
31 |
259
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
32 this.setInfo(); |
173
1a11ae666f11
Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
148
diff
changeset
|
33 this.callParent(arguments); |
1a11ae666f11
Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
148
diff
changeset
|
34 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
35 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
36 * Set some information about user, client and server version in the top |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
37 * of the application window. The data will be fetched from the server. |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
38 */ |
259
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
39 setInfo: function() { |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
40 var store = Ext.create('Lada.store.Info'); |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
41 store.load({ |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
42 callback: function(a,b,c) { |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
43 var info = store.data.items[0]; |
262
1626279daadb
Set client version
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
259
diff
changeset
|
44 var clientVersion = "r261 (2013-07-26)"; |
259
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
45 var user = info.get('user'); |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
46 var groups = info.get('groups'); |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
47 var serverVersion = info.get('version'); |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
48 var info = Ext.getCmp('systeminfo'); |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
49 info.update('Nutzer: '+user+' | Gruppe(n): '+groups+' | Server: '+serverVersion+' | Client: '+clientVersion); |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
50 info.show(); |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
51 console.log(info); |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
52 } |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
53 }); |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
54 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
55 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
56 * Function to initialize the edit window for a priticular probe directly |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
57 * @private |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
58 */ |
230
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
59 initProbe: function() { |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
60 var store = Ext.getStore('Proben'); |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
61 store.load({ |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
62 params: { |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
63 probeId: "000007575943X" |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
64 }, |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
65 callback: function() { |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
66 var mstore = Ext.getStore('Messungen'); |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
67 mstore.load({ |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
68 params: { |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
69 probeId: "000007575943X" |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
70 } |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
71 }); |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
72 var model = store.data.items[0]; |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
73 var win = Ext.create('Lada.view.proben.Edit', {model: model}); |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
74 } |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
75 }); |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
76 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
77 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
78 * Function to initialize the edit window for a priticular messwert directly |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
79 * @private |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
80 */ |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
81 initMesswert: function() { |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
82 var store = Ext.getStore('Messwerte'); |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
83 store.load({ |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
84 params: { |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
85 probeId: "000007575853X", |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
86 messungsId: "1" |
184
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
87 }, |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
88 callback: function() { |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
89 var model = store.data.items[0]; |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
90 var win = Ext.create('Lada.view.messwerte.Create', {model: model}); |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
91 } |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
92 }); |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
93 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
94 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
95 * Function to initialize the edit window for a priticular ort directly |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
96 * @private |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
97 */ |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
98 initOrt: function() { |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
99 var ort = Ext.create('Lada.model.Ort'); |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
100 var win = Ext.create('Lada.view.orte.Create', {model: ort}); |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
101 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
102 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
103 * Function to initialize the edit window for a priticular ort directly |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
104 * @private |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
105 */ |
173
1a11ae666f11
Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
148
diff
changeset
|
106 initMessung: function() { |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
107 var store = Ext.getStore('Messungen'); |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
108 var kstore = Ext.getStore('MKommentare'); |
184
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
109 var mstore = Ext.getStore('Messwerte'); |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
110 var sstore = Ext.getStore('Status'); |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
111 probeId = "000007578314X"; |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
112 store.load({ |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
113 params: { |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
114 probeId: probeId |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
115 }, |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
116 callback: function () { |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
117 console.log(store); |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
118 var messung = store.data.items[0]; |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
119 console.log(store.data.items[0]); |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
120 kstore.load({ |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
121 params: { |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
122 probeId: probeId, |
214
38e84783785f
Fix getting messerte, status and kommentare in debug mode
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
184
diff
changeset
|
123 messungsId: messung.get('id').messungsId |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
124 } |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
125 }); |
184
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
126 sstore.load({ |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
127 params: { |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
128 probeId: probeId, |
214
38e84783785f
Fix getting messerte, status and kommentare in debug mode
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
184
diff
changeset
|
129 messungsId: messung.get('id').messungsId |
184
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
130 } |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
131 }); |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
132 mstore.load({ |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
133 params: { |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
134 probeId: probeId, |
214
38e84783785f
Fix getting messerte, status and kommentare in debug mode
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
184
diff
changeset
|
135 messungsId: messung.get('id').messungsId |
184
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
136 } |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
137 }); |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
138 console.log('Creating Messung window'); |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
139 //var messung = Ext.create('Lada.model.Messung'); |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
140 var win = Ext.create('Lada.view.messungen.Create', {model: messung}); |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
141 } |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
142 }); |
173
1a11ae666f11
Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
148
diff
changeset
|
143 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
144 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
145 * Function to initialize the search window. This is the default method |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
146 * called by the {@link Lada.view.Viewport#initComponent initComponent} method. |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
147 * @private |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
148 */ |
173
1a11ae666f11
Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
148
diff
changeset
|
149 initSearch: function() { |
12
cdcaf38eab45
Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
150 this.items = { |
25
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
151 xtype: 'panel', |
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
152 title: '<center>Probenauswahlmaske</center>', |
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
153 bodyPadding: '10 10', |
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
154 items: [ |
259
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
155 // Informationen über Nutzer/Gruppe/Version |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
156 { |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
157 xtype: 'panel', |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
158 id: 'systeminfo', |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
159 bodyPadding: '5', |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
160 hidden: true, |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
161 }, |
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
|
162 // Auswahl einer Abfrage. |
25
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
163 { |
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
|
164 xtype: 'queryselector', |
25
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
165 margin: '0 0 10 0' |
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
166 }, |
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
167 // Variables settings for the current selected sql statement. |
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
|
168 { |
245
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
169 xtype: 'fieldset', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
170 id: 'queryfilters', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
171 title: 'Variablenbelegung', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
172 hidden: true, |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
173 items: [ |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
174 { |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
175 id: 'filter-mstId', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
176 xtype: 'mst', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
177 fieldLabel: 'Messstelle', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
178 labelWidth: 100, |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
179 hidden: true |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
180 }, |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
181 { |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
182 id: 'filter-umwId', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
183 xtype: 'uwb', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
184 fieldLabel: 'Umweltbereich', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
185 labelWidth: 100, |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
186 hidden: true |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
187 }, |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
188 { |
250
125e2d43cd0f
Fixed id of filter
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
245
diff
changeset
|
189 id: 'filter-pbegin', |
245
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
190 xtype: 'datetime', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
191 fieldLabel: 'Probenbeginn', |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
192 labelWidth: 100, |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
193 hidden: true |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
194 } |
9a2c04b19874
Put all available search filters to the viewport. They are later hidden and
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
230
diff
changeset
|
195 ] |
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
|
196 }, |
120
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
39
diff
changeset
|
197 // Buttons to trigger the search. |
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
|
198 { |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
199 id: 'SearchBtnPanel', |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
200 xtype: 'panel', |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
201 border: false, |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
202 margin: '0 0 10 0', |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
203 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
|
204 { |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
205 id: 'SearchBtn', |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
206 text: 'Suchen', |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
207 xtype: 'button', |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
208 margin: '0 10 0 0' |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
209 }, |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
210 { |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
211 id: 'ResetBtn', |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
212 text: 'Zurücksetzen', |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
213 xtype: 'button' |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
214 } |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
215 ], |
148
ed7fb4fa32dc
Do not hide search buttons and the resultlist on initial load.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
120
diff
changeset
|
216 hidden: false |
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
|
217 |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
28
diff
changeset
|
218 }, |
25
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
219 // Resultlist for the query. |
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
220 { |
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
221 id: 'result', |
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
|
222 xtype: 'probenlist', |
148
ed7fb4fa32dc
Do not hide search buttons and the resultlist on initial load.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
120
diff
changeset
|
223 hidden: false |
25
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
224 } |
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
225 ] |
12
cdcaf38eab45
Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
226 }; |
cdcaf38eab45
Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
227 } |
cdcaf38eab45
Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
228 }); |