comparison app/view/messwerte/List.js @ 183:ceb04286152a

Added missing file.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 05 Jul 2013 09:36:23 +0200
parents
children f3a2f985f451
comparison
equal deleted inserted replaced
182:23f74ae3bb87 183:ceb04286152a
1 Ext.define('Lada.view.messwerte.List' ,{
2 extend: 'Ext.grid.Panel',
3 alias: 'widget.messwertelist',
4 store: 'Messwerte',
5 viewConfig: {
6 maxHeight: 350,
7 emptyText: 'Keine Messwerte gefunden.',
8 // minHeight and deferEmptyText are needed to be able to show the
9 // emptyText message.
10 minHeight: 35,
11 deferEmptyText: false
12 },
13 probeId: null,
14 initComponent: function() {
15 this.dockedItems = [
16 {
17 xtype: 'toolbar',
18 dock: 'top',
19 items: [
20 {
21 text: 'Hinzufügen',
22 icon: 'gfx/plus.gif',
23 action: 'add',
24 probeId: this.probeId
25 },
26 {
27 text: 'Löschen',
28 icon: 'gfx/minus.gif',
29 action: 'delete'
30 }
31 ]
32 }
33 ];
34 this.columns = [
35 {header: 'Messwert', dataIndex: 'messwert'},
36 {header: 'Messfehler', dataIndex: 'messfehler'},
37 {
38 header: 'Messgröße',
39 dataIndex: 'messgroesseId',
40 renderer: function(value) {
41 var store = Ext.getStore('Messgroessen');
42 return store.findRecord('messgroesseId', value).get('messgro0esse');
43 }
44 },
45 {
46 header: 'Messeinheit',
47 dataIndex: 'mehId',
48 renderer: function(value) {
49 var store = Ext.getStore('Messeinheit');
50 return store.findRecord('mehId', value).get('einheit');
51 }
52 },
53 {
54 header: 'Grenzwertüberschreitung',
55 dataIndex: 'grenzwertueberschreitung',
56 flex: 1,
57 renderer: function(value) {
58 if (value === true) {
59 return "Ja";
60 } else {
61 return "Nein";
62 }
63 }
64 }
65 ];
66 this.callParent(arguments);
67 }
68 });
69

http://lada.wald.intevation.org