Mercurial > lada > lada-client
diff app/view/ProbenPlanungSwitcher.js @ 975:fb99332bb48e stammdatengrids
Severe changes concerning the Resultgrids.
- Intrduced "Stammdaten" which can be selected in the Mode Field on the left side,
- Added Stores and Models for the Stammdaten
- Removed the FilterResultgrid and replaced it with a model which uses inheritance.
Dynamic Grid Columns can now be derived from app/view/widget/DynamicGrid.js
For Proben and Messprogramme this is already done.
- There might be some REGRESSION concerning the buttons in the ProbeList and
MessprogrammeList grid, as those are not disabled properly.
This needs to be fixed in future commits.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 02 Dec 2015 17:39:04 +0100 |
parents | bc6bc71efb78 |
children |
line wrap: on
line diff
--- a/app/view/ProbenPlanungSwitcher.js Mon Nov 30 14:52:59 2015 +0100 +++ b/app/view/ProbenPlanungSwitcher.js Wed Dec 02 17:39:04 2015 +0100 @@ -30,9 +30,9 @@ items: [{ xtype: 'radiofield', name: 'ppswitch', - boxLabel: i18n.getMsg('probelist'), - inputValue: 'ProbeList', //this determines the store - // which will be loaded, + boxLabel: i18n.getMsg('proben'), + inputValue: 'proben', //this determines the store + // which will be loaded by the controller, checked: true, handler: function(field, state){ if (state === true) { @@ -42,8 +42,18 @@ },{ xtype: 'radiofield', name: 'ppswitch', - boxLabel: i18n.getMsg('probeplanning'), - inputValue: 'MessprogrammList', //name of a store + boxLabel: i18n.getMsg('messprogramme'), + inputValue: 'messprogramme', + handler: function(field, state){ + if (state === true) { + this.fireEvent('check', field); + } + } + },{ + xtype: 'radiofield', + name: 'ppswitch', + boxLabel: i18n.getMsg('stammdaten'), + inputValue: 'stammdaten', handler: function(field, state){ if (state === true) { this.fireEvent('check', field);