Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
974:ea477f62a667 | 975:fb99332bb48e |
---|---|
28 columns: 1, | 28 columns: 1, |
29 width: '100%', | 29 width: '100%', |
30 items: [{ | 30 items: [{ |
31 xtype: 'radiofield', | 31 xtype: 'radiofield', |
32 name: 'ppswitch', | 32 name: 'ppswitch', |
33 boxLabel: i18n.getMsg('probelist'), | 33 boxLabel: i18n.getMsg('proben'), |
34 inputValue: 'ProbeList', //this determines the store | 34 inputValue: 'proben', //this determines the store |
35 // which will be loaded, | 35 // which will be loaded by the controller, |
36 checked: true, | 36 checked: true, |
37 handler: function(field, state){ | 37 handler: function(field, state){ |
38 if (state === true) { | 38 if (state === true) { |
39 this.fireEvent('check', field); | 39 this.fireEvent('check', field); |
40 } | 40 } |
41 } | 41 } |
42 },{ | 42 },{ |
43 xtype: 'radiofield', | 43 xtype: 'radiofield', |
44 name: 'ppswitch', | 44 name: 'ppswitch', |
45 boxLabel: i18n.getMsg('probeplanning'), | 45 boxLabel: i18n.getMsg('messprogramme'), |
46 inputValue: 'MessprogrammList', //name of a store | 46 inputValue: 'messprogramme', |
47 handler: function(field, state){ | |
48 if (state === true) { | |
49 this.fireEvent('check', field); | |
50 } | |
51 } | |
52 },{ | |
53 xtype: 'radiofield', | |
54 name: 'ppswitch', | |
55 boxLabel: i18n.getMsg('stammdaten'), | |
56 inputValue: 'stammdaten', | |
47 handler: function(field, state){ | 57 handler: function(field, state){ |
48 if (state === true) { | 58 if (state === true) { |
49 this.fireEvent('check', field); | 59 this.fireEvent('check', field); |
50 } | 60 } |
51 } | 61 } |