Mercurial > lada > lada-client
comparison app.js @ 1015:af9879d72310
Updated UI, added window for filter management and added fieldset for query
details.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 02 Feb 2016 15:25:16 +0100 |
parents | 9ac03f461ab4 |
children | 77e22ad5cc84 |
comparison
equal
deleted
inserted
replaced
1010:94a6b5415d73 | 1015:af9879d72310 |
---|---|
104 Ext.MessageBox.alert('Kommunikation mit dem Lada Server fehlgeschlagen', | 104 Ext.MessageBox.alert('Kommunikation mit dem Lada Server fehlgeschlagen', |
105 'Es konnte keine erfolgreiche Verbindung zum lada server aufgebaut werden.'); | 105 'Es konnte keine erfolgreiche Verbindung zum lada server aufgebaut werden.'); |
106 }, | 106 }, |
107 | 107 |
108 onLoginSuccess: function(response) { | 108 onLoginSuccess: function(response) { |
109 Ext.create('Lada.view.Viewport'); | |
110 | 109 |
111 /* Parse Username and Timestamp */ | 110 /* Parse Username and Timestamp */ |
112 var json = Ext.decode(response.responseText); | 111 var json = Ext.decode(response.responseText); |
113 Lada.username = json.data.username; | 112 Lada.username = json.data.username; |
114 Lada.userroles = json.data.roles; | 113 Lada.userroles = json.data.roles; |
162 }); | 161 }); |
163 Ext.create('Lada.store.StatusStufe', { | 162 Ext.create('Lada.store.StatusStufe', { |
164 storeId: 'statusstufe', | 163 storeId: 'statusstufe', |
165 autoLoad: 'true' | 164 autoLoad: 'true' |
166 }); | 165 }); |
166 Ext.create('Lada.store.ProbeQueries', { | |
167 storeId: 'probequeries', | |
168 autoLoad: 'true' | |
169 }); | |
170 Ext.create('Lada.store.MessprogrammQueries', { | |
171 storeId: 'messprogrammqueries', | |
172 autoLoad: 'true' | |
173 }); | |
174 Ext.create('Lada.store.StammdatenQueries', { | |
175 storeId: 'stammdatenqueries', | |
176 autoLoad: 'true' | |
177 }); | |
178 | |
167 //A Store containing all MST a User is allowed to set. | 179 //A Store containing all MST a User is allowed to set. |
168 Ext.create('Lada.store.Messstellen', { | 180 Ext.create('Lada.store.Messstellen', { |
169 storeId: 'messstellenFiltered', | 181 storeId: 'messstellenFiltered', |
170 filters: function(item) { | 182 filters: function(item) { |
171 if (Ext.Array.contains(Lada.mst, item.get('id'))) { | 183 if (Ext.Array.contains(Lada.mst, item.get('id'))) { |
172 return true; | 184 return true; |
173 } | 185 } |
174 return false; | 186 return false; |
175 } | 187 } |
176 }); | 188 }); |
189 Ext.create('Lada.view.Viewport'); | |
177 }, | 190 }, |
178 | 191 |
179 getServerVersion: function() { | 192 getServerVersion: function() { |
180 var i18n = Lada.getApplication().bundle; | 193 var i18n = Lada.getApplication().bundle; |
181 Ext.Ajax.request({ | 194 Ext.Ajax.request({ |
217 'Lada.controller.grid.Messwert', | 230 'Lada.controller.grid.Messwert', |
218 'Lada.controller.grid.Status', | 231 'Lada.controller.grid.Status', |
219 'Lada.controller.Map', | 232 'Lada.controller.Map', |
220 'Lada.controller.form.Location', | 233 'Lada.controller.form.Location', |
221 'Lada.controller.form.Messprogramm', | 234 'Lada.controller.form.Messprogramm', |
222 'Lada.controller.grid.Messmethode' | 235 'Lada.controller.grid.Messmethode', |
236 'Lada.controller.FilterManagement' | |
223 ] | 237 ] |
224 }); | 238 }); |