Mercurial > lada > lada-client
view 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 source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=3) * and comes with ABSOLUTELY NO WARRANTY! Check out * the documentation coming with IMIS-Labordaten-Application for details. */ /** * This is a Widget for a ProbenPlanungSwitcher */ Ext.define('Lada.view.ProbenPlanungSwitcher', { extend: 'Ext.form.FieldSet', alias: 'widget.probenplanungswitcher', mixins: { observable: 'Ext.util.Observable' }, /** * Initialise the Widget. * When the Checkbox is checked, it fires a 'check' Event */ initComponent: function() { var i18n = Lada.getApplication().bundle; this.title = i18n.getMsg('modus'); this.items= [{ xtype: 'radiogroup', columns: 1, width: '100%', items: [{ xtype: 'radiofield', name: 'ppswitch', 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) { this.fireEvent('check', field); } } },{ xtype: 'radiofield', name: 'ppswitch', 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); } } }] }]; this.callParent(arguments); } });