annotate app/view/status/List.js @ 486:0952c7767d98

Added new static data matching the new data model.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 21:06:19 +0100
parents debfcc7713e3
children 446e99cfd425
rev   line source
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 391
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 391
diff changeset
2 * Software engineering by Intevation GmbH
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 391
diff changeset
3 *
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 391
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 391
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 391
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 391
diff changeset
7 */
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 391
diff changeset
8
350
b7c419a2b476 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 201
diff changeset
9 /*
b7c419a2b476 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 201
diff changeset
10 * Grid to list Status
b7c419a2b476 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 201
diff changeset
11 */
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.view.status.List' ,{
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 extend: 'Ext.grid.Panel',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 alias: 'widget.statuslist',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 store: 'Status',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 viewConfig: {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 maxHeight: 350,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 emptyText: 'Keine Statusangaben gefunden.',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 // 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
20 // emptyText message.
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 minHeight: 35,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 deferEmptyText: false
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 },
201
7997272bbf4b Added messungsid to the status list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
24 parentId: null,
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 probeId: null,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 initComponent: function() {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 this.dockedItems = [
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 xtype: 'toolbar',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30 dock: 'top',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 items: [
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 text: 'Hinzufügen',
391
d1bb925bb5f5 Use the new icons in list views and status bar.
Raimund Renkert <rrenkert@intevation.de>
parents: 350
diff changeset
34 icon: 'gfx/list-add.png',
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
35 action: 'add',
201
7997272bbf4b Added messungsid to the status list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
36 probeId: this.probeId,
7997272bbf4b Added messungsid to the status list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
37 parentId: this.parentId
182
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 {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
40 text: 'Löschen',
391
d1bb925bb5f5 Use the new icons in list views and status bar.
Raimund Renkert <rrenkert@intevation.de>
parents: 350
diff changeset
41 icon: 'gfx/list-remove.png',
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
42 action: 'delete'
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 }
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 this.columns = [
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
48 {header: 'Erzeuger', dataIndex: 'erzeuger'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
49 {header: 'Status', dataIndex: 'status'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
50 {header: 'Datum', dataIndex: 'sdatum'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
51 {header: 'Text', dataIndex: 'stext', flex: 1}
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
52 ];
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
53 this.callParent(arguments);
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
54 }
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
55 });
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
56

http://lada.wald.intevation.org