Mercurial > lada > lada-client
diff app/controller/Filter.js @ 1077:2a5d42045c63
Display Messungen query mode and use the new messung list grid.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 08 Apr 2016 19:33:46 +0200 |
parents | 4654b788f3d4 |
children | ecce10cf32dc a73726bba79c |
line wrap: on
line diff
--- a/app/controller/Filter.js Fri Apr 08 19:32:02 2016 +0200 +++ b/app/controller/Filter.js Fri Apr 08 19:33:46 2016 +0200 @@ -17,6 +17,8 @@ 'Lada.view.widget.Messstelle', 'Lada.view.grid.MessprogrammeList', 'Lada.view.grid.ProbeList', + 'Lada.view.grid.MessungList', + 'Lada.store.MessungenList', 'Lada.view.window.FilterManagement', 'Lada.view.widget.Umwelt' ], @@ -113,7 +115,9 @@ this.displayFields.reverse(); } - if (queryType == 'probe' || queryType == 'messprogramm') { + if (queryType == 'probe' || + queryType == 'messung' || + queryType == 'messprogramm') { // Dynamic Grids // We need to set both grid and Store. var frgrid; // The Resultgrid @@ -124,6 +128,10 @@ gridstore = Ext.create('Lada.store.ProbenList'); frgrid = Ext.create('Lada.view.grid.ProbeList'); break; + case 'messung': + gridstore = Ext.create('Lada.store.MessungenList'); + frgrid = Ext.create('Lada.view.grid.MessungList'); + break; case 'messprogramm': gridstore = Ext.create('Lada.store.MessprogrammeList'); frgrid = Ext.create('Lada.view.grid.MessprogrammeList'); @@ -326,6 +334,9 @@ case 'probe': sname = 'Lada.store.ProbenList'; break; + case 'messung': + sname = 'Lada.store.MessungenList'; + break; case 'messprogramm': sname = 'Lada.store.MessprogrammeList'; break; @@ -456,6 +467,9 @@ else if (this.mode === 'stammdaten') { store = Ext.StoreManager.get('stammdatenqueries'); } + else if (this.mode === 'messungen') { + store = Ext.StoreManager.get('messungqueries'); + } else { return; } @@ -525,6 +539,9 @@ else if (query.get('type') === 'messprogramm') { Ext.StoreManager.get('messprogrammqueries').load(); } + else if (query.get('type') === 'messung') { + Ext.StoreManager.get('messungqueries').load(); + } else { Ext.StoreManager.get('stammdatenqueries').load(); } @@ -568,6 +585,9 @@ else if (query.get('type') === 'messprogramm') { Ext.StoreManager.get('messprogrammqueries').reload(); } + else if (query.get('type') === 'messung') { + Ext.StoreManager.get('messungqueries').reload(); + } else { Ext.StoreManager.get('stammdatenqueries').reload(); }