Mercurial > lada > lada-client
annotate app/view/Viewport.js @ 528:8b4ec83ddca3
merged.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 16 Dec 2014 18:28:58 +0100 |
parents | 16fbbad55589 |
children |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
426
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:
426
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
426
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
426
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:
426
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:
426
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
426
diff
changeset
|
8 |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
9 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
10 * Viewport for the Lada-Client |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
11 * |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
12 * The viewport initialises the graphical elements of the application. For |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
13 * 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
|
14 * initComponent function. |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
15 */ |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
16 Ext.define('Lada.view.Viewport', { |
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
|
17 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
|
18 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
|
19 '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
|
20 'Lada.view.search.List', |
369
cebed9ef8293
Dynamically add configured search filters. Send needed values to the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
357
diff
changeset
|
21 'Lada.view.proben.List' |
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
|
22 ], |
425
2ff236e5d2d0
Added layout to the Viewport (root panel) to fix some layout issues.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
412
diff
changeset
|
23 layout: 'fit', |
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
|
24 initComponent: function() { |
357
94884cd8f8c0
Added logic to upload a file to the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
355
diff
changeset
|
25 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
|
26 |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
27 // Development related: |
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
|
28 // 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
|
29 // 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
|
30 // the whole application. |
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 // this.initProbe(); |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
32 // this.initOrt(); |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
33 // this.initMessung(); |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
34 // 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
|
35 |
357
94884cd8f8c0
Added logic to upload a file to the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
355
diff
changeset
|
36 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
|
37 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
|
38 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
39 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
40 * 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
|
41 * 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
|
42 */ |
259
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
43 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
|
44 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
|
45 store.load({ |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
46 callback: function() { |
259
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 info = store.data.items[0]; |
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 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
|
49 var groups = info.get('groups'); |
383
fe8d6e1b08ff
Added toolbar to the mainwindow.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
369
diff
changeset
|
50 var groupinfo = Ext.getCmp('groupinfo'); |
fe8d6e1b08ff
Added toolbar to the mainwindow.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
369
diff
changeset
|
51 var userinfo = Ext.getCmp('userinfo'); |
fe8d6e1b08ff
Added toolbar to the mainwindow.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
369
diff
changeset
|
52 userinfo.update(user); |
fe8d6e1b08ff
Added toolbar to the mainwindow.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
369
diff
changeset
|
53 groupinfo.update(groups); |
259
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
54 } |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
55 }); |
d19ad9d28de5
Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
250
diff
changeset
|
56 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
57 /** |
412
cf4b6e93f956
Typo fixed.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
393
diff
changeset
|
58 * Function to initialize the edit window for a particular probe directly |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
59 * @private |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
60 */ |
230
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
61 initProbe: function() { |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
62 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
|
63 store.load({ |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
64 params: { |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
65 probeId: '000007575943X' |
230
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
66 }, |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
67 callback: function() { |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
68 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
|
69 mstore.load({ |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
70 params: { |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
71 probeId: '000007575943X' |
230
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
72 } |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
73 }); |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
74 var model = store.data.items[0]; |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
75 Ext.create('Lada.view.proben.Edit', { |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
76 model: model |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
77 }); |
230
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
78 } |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
79 }); |
7bea6974fb5b
Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
214
diff
changeset
|
80 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
81 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
82 * 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
|
83 * @private |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
84 */ |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
85 initMesswert: function() { |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
86 var store = Ext.getStore('Messwerte'); |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
87 store.load({ |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
88 params: { |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
89 probeId: '000007575853X', |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
90 messungsId: '1' |
184
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
91 }, |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
92 callback: function() { |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
93 var model = store.data.items[0]; |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
94 Ext.create('Lada.view.messwerte.Create', { |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
95 model: model |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
96 }); |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
97 } |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
98 }); |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
99 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
100 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
101 * 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
|
102 * @private |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
103 */ |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
104 initOrt: function() { |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
105 var ort = Ext.create('Lada.model.Ort'); |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
106 Ext.create('Lada.view.orte.Create', { |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
107 model: ort |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
108 }); |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
109 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
110 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
111 * 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
|
112 * @private |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
113 */ |
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
|
114 initMessung: function() { |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
115 var store = Ext.getStore('Messungen'); |
490
446e99cfd425
Updated views and controllers using the new model and stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
116 var kstore = Ext.getStore('KommentareM'); |
184
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
117 var mstore = Ext.getStore('Messwerte'); |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
118 var sstore = Ext.getStore('Status'); |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
119 var probeId = '000007578314X'; |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
120 store.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 |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
123 }, |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
124 callback: function() { |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
125 var messung = store.data.items[0]; |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
126 kstore.load({ |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
127 params: { |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
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 |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
130 } |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
131 }); |
184
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
132 sstore.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 mstore.load({ |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
139 params: { |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
140 probeId: probeId, |
214
38e84783785f
Fix getting messerte, status and kommentare in debug mode
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
184
diff
changeset
|
141 messungsId: messung.get('id').messungsId |
184
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
142 } |
cfa4ed3b62b5
Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
180
diff
changeset
|
143 }); |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
144 // var messung = Ext.create('Lada.model.Messung'); |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
145 Ext.create('Lada.view.messungen.Create', { |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
146 model: messung |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
147 }); |
180
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
148 } |
133df8f75a12
Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
173
diff
changeset
|
149 }); |
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
|
150 }, |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
151 /** |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
152 * Function to initialize the search window. This is the default method |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
153 * called by the {@link Lada.view.Viewport#initComponent initComponent} |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
154 * method. |
341
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
155 * @private |
6eaa741b396b
Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
262
diff
changeset
|
156 */ |
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
|
157 initSearch: function() { |
383
fe8d6e1b08ff
Added toolbar to the mainwindow.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
369
diff
changeset
|
158 this.items = [{ |
25
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
12
diff
changeset
|
159 title: '<center>Probenauswahlmaske</center>', |
520
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
160 layout: 'border', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
161 items: [{ |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
162 layout: { |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
163 type: 'vbox', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
164 align: 'stretch' |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
165 }, |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
166 region: 'west', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
167 split: true, |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
168 border: 1, |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
169 flex: 1, |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
170 dockedItems: [{ |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
171 xtype: 'toolbar', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
172 dock: 'top', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
173 items: [{ |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
174 xtype: 'splitbutton', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
175 text: 'Info', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
176 menu: { |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
177 items: [{ |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
178 id: 'AboutBtn', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
179 text: 'About' |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
180 }] |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
181 } |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
182 }, '->', { |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
183 xtype: 'box', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
184 autoEl: { |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
185 tag: 'img', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
186 src: 'gfx/user-identity.png' |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
187 } |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
188 }, { |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
189 xtype: 'tbtext', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
190 id: 'userinfo', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
191 text: '' |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
192 }, { |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
193 xtype: 'box', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
194 autoEl: { |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
195 tag: 'img', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
196 src: 'gfx/network-workgroup.png' |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
197 } |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
198 }, { |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
199 xtype: 'tbtext', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
200 id: 'groupinfo', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
201 text: '' |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
202 }] |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
203 }], |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
204 items: [{ |
520
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
205 // Auswahl einer Abfrage. |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
206 xtype: 'queryselector', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
207 margin: '0, 10, 0, 10', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
208 id: 'queryselector' |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
209 }, { |
520
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
210 // Variables settings for the current selected sql statement. |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
211 xtype: 'fieldset', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
212 id: 'queryfilters', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
213 title: 'Variablenbelegung', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
214 hidden: true, |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
215 margin: '0, 10, 0, 10', |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
216 items: [] |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
217 }] |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
218 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
219 // Resultlist for the query. |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
220 id: 'result', |
520
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
221 flex: 3, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
222 xtype: 'probenlist', |
520
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
223 hidden: false, |
16fbbad55589
Updated viewport layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
224 region: 'center' |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
225 }] |
383
fe8d6e1b08ff
Added toolbar to the mainwindow.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
369
diff
changeset
|
226 }]; |
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
|
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 }); |