Mercurial > lada > lada-client
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/view/messungen/List.js Mon Jun 17 16:59:04 2013 +0200 @@ -0,0 +1,45 @@ +Ext.define('Lada.view.messungen.List' ,{ + extend: 'Ext.grid.Panel', + alias: 'widget.messungenlist', + store: 'Messungen', + viewConfig: { + maxHeight: 350, + emptyText: 'Keine Messungen gefunden.', + // minHeight and deferEmptyText are needed to be able to show the + // emptyText message. + minHeight: 35, + deferEmptyText: false + }, + initComponent: function() { + this.dockedItems = [ + { + xtype: 'toolbar', + dock: 'top', + items: [ + { + text: 'Hinzufügen', + icon: 'gfx/plus.gif', + action: 'add' + }, + { + text: 'Löschen', + icon: 'gfx/minus.gif', + action: 'delete' + } + ] + } + ]; + this.columns = [ + {header: 'Mess.ID', dataIndex: "messungsId", width: 50}, + {header: 'NPR-Nr.', dataIndex: "nebenprobenNr", width: 50}, + {header: 'MMT', dataIndex: "mmtId", width: 50}, + {header: 'Messzeit', dataIndex: "messdauer"}, + {header: 'Status'}, + {header: 'OK-Flag', dataIndex: "fertig"}, + {header: 'Anzahl Nuklide'}, + {header: 'Anzahl Kommentare', flex: 1} + ]; + this.callParent(arguments); + } +}); +