comparison app/view/grid/MessprogrammeList.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
children 56470a075e6e
comparison
equal deleted inserted replaced
974:ea477f62a667 975:fb99332bb48e
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */
8
9 /**
10 * Grid to list the result of the Filter
11 */
12 Ext.define('Lada.view.grid.MessprogrammeList', {
13 extend: 'Lada.view.widget.DynamicGrid',
14 alias: 'widget.messprogrammelistgrid',
15
16 requires: 'Lada.view.window.DeleteProbe',
17
18 initComponent: function() {
19 var i18n = Lada.getApplication().bundle;
20 this.emptyText = i18n.getMsg('messprogramme.emptyGrid');
21
22 this.dockedItems = [{
23 xtype: 'toolbar',
24 dock: 'top',
25 items: [{
26 xtype: 'tbtext',
27 id: 'tbtitle',
28 text: i18n.getMsg('messprogramme.gridTitle')
29 },
30 '->',
31 {
32 text: i18n.getMsg('messprogramme.button.create'),
33 icon: 'resources/img/list-add.png',
34 action: 'addMessprogramm'
35 }, {
36 text: i18n.getMsg('messprogramme.button.generate'),
37 icon: 'resources/img/view-time-schedule-insert.png',
38 action: 'genProbenFromMessprogramm'
39 }]
40 }];
41 this.columns = [];
42 this.callParent(arguments);
43 }
44 });
45
46

http://lada.wald.intevation.org