Mercurial > lada > lada-client
comparison app/view/messungen/List.js @ 103:3552b0ee4526
Added Messungenlist to the Proben eddit view.
author | Torsten Irländer <torsten@irlaender.de> |
---|---|
date | Mon, 17 Jun 2013 16:59:04 +0200 |
parents | |
children | 767300b2c70f |
comparison
equal
deleted
inserted
replaced
102:804864f6274c | 103:3552b0ee4526 |
---|---|
1 Ext.define('Lada.view.messungen.List' ,{ | |
2 extend: 'Ext.grid.Panel', | |
3 alias: 'widget.messungenlist', | |
4 store: 'Messungen', | |
5 viewConfig: { | |
6 maxHeight: 350, | |
7 emptyText: 'Keine Messungen gefunden.', | |
8 // minHeight and deferEmptyText are needed to be able to show the | |
9 // emptyText message. | |
10 minHeight: 35, | |
11 deferEmptyText: false | |
12 }, | |
13 initComponent: function() { | |
14 this.dockedItems = [ | |
15 { | |
16 xtype: 'toolbar', | |
17 dock: 'top', | |
18 items: [ | |
19 { | |
20 text: 'Hinzufügen', | |
21 icon: 'gfx/plus.gif', | |
22 action: 'add' | |
23 }, | |
24 { | |
25 text: 'Löschen', | |
26 icon: 'gfx/minus.gif', | |
27 action: 'delete' | |
28 } | |
29 ] | |
30 } | |
31 ]; | |
32 this.columns = [ | |
33 {header: 'Mess.ID', dataIndex: "messungsId", width: 50}, | |
34 {header: 'NPR-Nr.', dataIndex: "nebenprobenNr", width: 50}, | |
35 {header: 'MMT', dataIndex: "mmtId", width: 50}, | |
36 {header: 'Messzeit', dataIndex: "messdauer"}, | |
37 {header: 'Status'}, | |
38 {header: 'OK-Flag', dataIndex: "fertig"}, | |
39 {header: 'Anzahl Nuklide'}, | |
40 {header: 'Anzahl Kommentare', flex: 1} | |
41 ]; | |
42 this.callParent(arguments); | |
43 } | |
44 }); | |
45 |