annotate app/view/Viewport.js @ 376:90cec3bb9c09

Updated URL for import service.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 23 Aug 2013 12:57:05 +0200
parents cebed9ef8293
children fe8d6e1b08ff
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',
369
cebed9ef8293 Dynamically add configured search filters. Send needed values to the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 357
diff changeset
13 '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
14 ],
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 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
16 console.log('Setting up Viewport');
357
94884cd8f8c0 Added logic to upload a file to the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
17 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
18
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
19 // 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
20 // 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
21 // 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
22 // the whole application.
230
7bea6974fb5b Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 214
diff changeset
23 //this.initProbe();
180
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
24 //this.initOrt();
184
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
25 //this.initMessung();
357
94884cd8f8c0 Added logic to upload a file to the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
26 //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
27
357
94884cd8f8c0 Added logic to upload a file to the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
28 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
29 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
30 },
341
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
31 /**
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
32 * 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
33 * 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
34 */
259
d19ad9d28de5 Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 250
diff changeset
35 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
36 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
37 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
38 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
39 var info = store.data.items[0];
262
1626279daadb Set client version
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 259
diff changeset
40 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
41 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
42 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
43 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
44 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
45 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
46 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
47 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
48 }
d19ad9d28de5 Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 250
diff changeset
49 });
d19ad9d28de5 Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 250
diff changeset
50 },
341
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
51 /**
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
52 * 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
53 * @private
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
54 */
230
7bea6974fb5b Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 214
diff changeset
55 initProbe: function() {
7bea6974fb5b Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 214
diff changeset
56 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
57 store.load({
7bea6974fb5b Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 214
diff changeset
58 params: {
7bea6974fb5b Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 214
diff changeset
59 probeId: "000007575943X"
7bea6974fb5b Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 214
diff changeset
60 },
7bea6974fb5b Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 214
diff changeset
61 callback: function() {
7bea6974fb5b Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 214
diff changeset
62 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
63 mstore.load({
7bea6974fb5b Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 214
diff changeset
64 params: {
7bea6974fb5b Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 214
diff changeset
65 probeId: "000007575943X"
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 });
7bea6974fb5b Added function to directly initialize the probenendit form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 214
diff changeset
68 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
69 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
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 },
341
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
73 /**
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
74 * 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
75 * @private
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
76 */
180
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
77 initMesswert: function() {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
78 var store = Ext.getStore('Messwerte');
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
79 store.load({
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
80 params: {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
81 probeId: "000007575853X",
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
82 messungsId: "1"
184
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
83 },
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
84 callback: function() {
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
85 var model = store.data.items[0];
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
86 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
87 }
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
88 });
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
89 },
341
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
90 /**
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
91 * 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
92 * @private
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
93 */
180
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
94 initOrt: function() {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
95 var ort = Ext.create('Lada.model.Ort');
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
96 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
97 },
341
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
98 /**
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
99 * 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
100 * @private
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
101 */
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
102 initMessung: function() {
180
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
103 var store = Ext.getStore('Messungen');
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
104 var kstore = Ext.getStore('MKommentare');
184
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
105 var mstore = Ext.getStore('Messwerte');
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
106 var sstore = Ext.getStore('Status');
180
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
107 probeId = "000007578314X";
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
108 store.load({
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
109 params: {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
110 probeId: probeId
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
111 },
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
112 callback: function () {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
113 console.log(store);
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
114 var messung = store.data.items[0];
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
115 console.log(store.data.items[0]);
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
116 kstore.load({
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
117 params: {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
118 probeId: probeId,
214
38e84783785f Fix getting messerte, status and kommentare in debug mode
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 184
diff changeset
119 messungsId: messung.get('id').messungsId
180
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
120 }
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
121 });
184
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
122 sstore.load({
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
123 params: {
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
124 probeId: probeId,
214
38e84783785f Fix getting messerte, status and kommentare in debug mode
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 184
diff changeset
125 messungsId: messung.get('id').messungsId
184
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
126 }
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
127 });
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
128 mstore.load({
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
129 params: {
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
130 probeId: probeId,
214
38e84783785f Fix getting messerte, status and kommentare in debug mode
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 184
diff changeset
131 messungsId: messung.get('id').messungsId
184
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
132 }
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
133 });
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
134 console.log('Creating Messung window');
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
135 //var messung = Ext.create('Lada.model.Messung');
cfa4ed3b62b5 Show search on app startup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 180
diff changeset
136 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
137 }
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
138 });
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
139 },
341
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
140 /**
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
141 * 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
142 * called by the {@link Lada.view.Viewport#initComponent initComponent} method.
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
143 * @private
6eaa741b396b Added documentation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 262
diff changeset
144 */
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
145 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
146 this.items = {
25
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
147 xtype: 'panel',
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
148 title: '<center>Probenauswahlmaske</center>',
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
149 bodyPadding: '10 10',
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
150 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
151 // 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
152 {
d19ad9d28de5 Added code to show general information about the application in the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 250
diff changeset
153 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
154 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
155 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
156 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
157 },
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
158 // Auswahl einer Abfrage.
25
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
159 {
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
160 xtype: 'queryselector',
369
cebed9ef8293 Dynamically add configured search filters. Send needed values to the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 357
diff changeset
161 id: 'queryselector',
25
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
162 margin: '0 0 10 0'
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
163 },
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
164 // 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
165 {
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
166 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
167 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
168 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
169 hidden: true,
369
cebed9ef8293 Dynamically add configured search filters. Send needed values to the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 357
diff changeset
170 items: []
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
171 },
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
172 // 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
173 {
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
174 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
175 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
176 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
177 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
178 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
179 {
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
180 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
181 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
182 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
183 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
184 },
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
185 {
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
186 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
187 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
188 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
189 }
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
190 ],
148
ed7fb4fa32dc Do not hide search buttons and the resultlist on initial load.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 120
diff changeset
191 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
192
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
193 },
25
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
194 // Resultlist for the query.
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
195 {
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
196 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
197 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
198 hidden: false
25
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
199 }
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
200 ]
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
201 };
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
202 }
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
203 });

http://lada.wald.intevation.org