annotate app/view/status/List.js @ 208:6527b1598196

Set maxlength to 5 for erzeuger.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 12 Jul 2013 10:53:24 +0200
parents 7997272bbf4b
children b7c419a2b476
rev   line source
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 Ext.define('Lada.view.status.List' ,{
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 extend: 'Ext.grid.Panel',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
3 alias: 'widget.statuslist',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 store: 'Status',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 viewConfig: {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 maxHeight: 350,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 emptyText: 'Keine Statusangaben gefunden.',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 // minHeight and deferEmptyText are needed to be able to show the
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 // emptyText message.
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 minHeight: 35,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 deferEmptyText: false
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 },
201
7997272bbf4b Added messungsid to the status list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
13 parentId: null,
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 probeId: null,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 initComponent: function() {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 this.dockedItems = [
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 xtype: 'toolbar',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 dock: 'top',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 items: [
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 text: 'Hinzufügen',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 icon: 'gfx/plus.gif',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 action: 'add',
201
7997272bbf4b Added messungsid to the status list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
25 probeId: this.probeId,
7997272bbf4b Added messungsid to the status list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
26 parentId: this.parentId
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 },
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
28 {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
29 text: 'Löschen',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30 icon: 'gfx/minus.gif',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 action: 'delete'
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
32 }
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
33 ]
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
34 }
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
35 ];
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
36 this.columns = [
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
37 {header: 'Erzeuger', dataIndex: 'erzeuger'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
38 {header: 'Status', dataIndex: 'status'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
39 {header: 'Datum', dataIndex: 'sdatum'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
40 {header: 'Text', dataIndex: 'stext', flex: 1}
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
41 ];
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
42 this.callParent(arguments);
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
43 }
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
44 });
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
45

http://lada.wald.intevation.org