annotate app/view/status/List.js @ 424:9c44ce52a33c

Fix rendering of the orte list. Some fields was not shown because of wrong loading of ortedetails
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 08 Nov 2013 09:58:54 +0100
parents d1bb925bb5f5
children debfcc7713e3
rev   line source
350
b7c419a2b476 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 201
diff changeset
1 /*
b7c419a2b476 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 201
diff changeset
2 * Grid to list Status
b7c419a2b476 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 201
diff changeset
3 */
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 Ext.define('Lada.view.status.List' ,{
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 extend: 'Ext.grid.Panel',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 alias: 'widget.statuslist',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 store: 'Status',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 viewConfig: {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 maxHeight: 350,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 emptyText: 'Keine Statusangaben gefunden.',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 // 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
12 // emptyText message.
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 minHeight: 35,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 deferEmptyText: false
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 },
201
7997272bbf4b Added messungsid to the status list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
16 parentId: null,
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 probeId: null,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 initComponent: function() {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 this.dockedItems = [
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 xtype: 'toolbar',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 dock: 'top',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 items: [
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 text: 'Hinzufügen',
391
d1bb925bb5f5 Use the new icons in list views and status bar.
Raimund Renkert <rrenkert@intevation.de>
parents: 350
diff changeset
26 icon: 'gfx/list-add.png',
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 action: 'add',
201
7997272bbf4b Added messungsid to the status list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
28 probeId: this.probeId,
7997272bbf4b Added messungsid to the status list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
29 parentId: this.parentId
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30 },
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
32 text: 'Löschen',
391
d1bb925bb5f5 Use the new icons in list views and status bar.
Raimund Renkert <rrenkert@intevation.de>
parents: 350
diff changeset
33 icon: 'gfx/list-remove.png',
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
34 action: 'delete'
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 ]
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
37 }
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
38 ];
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
39 this.columns = [
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
40 {header: 'Erzeuger', dataIndex: 'erzeuger'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
41 {header: 'Status', dataIndex: 'status'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
42 {header: 'Datum', dataIndex: 'sdatum'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
43 {header: 'Text', dataIndex: 'stext', flex: 1}
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 this.callParent(arguments);
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
46 }
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
47 });
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
48

http://lada.wald.intevation.org