Mercurial > lada > lada-client
annotate app/view/proben/List.js @ 154:16ba7e2465fd
Implemented creating and editing new l_ort. Created editing orte.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 02 Jul 2013 15:28:41 +0200 |
parents | b6a05fe9f40e |
children | bc2d46a67bbd |
rev | line source |
---|---|
4
b8e56e880f02
Added a first example view (userlisting) from the EXJS Tutorial. Need to be
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 Ext.define('Lada.view.proben.List' ,{ |
b8e56e880f02
Added a first example view (userlisting) from the EXJS Tutorial. Need to be
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 extend: 'Ext.grid.Panel', |
b8e56e880f02
Added a first example view (userlisting) from the EXJS Tutorial. Need to be
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 alias: 'widget.probenlist', |
13
a8efc4b96888
Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
4
diff
changeset
|
4 store: 'Proben', |
37
e9229d79e430
Added empty text message to the probenlist.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
30
diff
changeset
|
5 viewConfig: { |
e9229d79e430
Added empty text message to the probenlist.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
30
diff
changeset
|
6 maxHeight: 350, |
e9229d79e430
Added empty text message to the probenlist.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
30
diff
changeset
|
7 emptyText: 'Keine Proben gefunden.', |
e9229d79e430
Added empty text message to the probenlist.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
30
diff
changeset
|
8 // minHeight and deferEmptyText are needed to be able to show the |
e9229d79e430
Added empty text message to the probenlist.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
30
diff
changeset
|
9 // emptyText message. |
e9229d79e430
Added empty text message to the probenlist.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
30
diff
changeset
|
10 minHeight: 35, |
e9229d79e430
Added empty text message to the probenlist.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
30
diff
changeset
|
11 deferEmptyText: false |
e9229d79e430
Added empty text message to the probenlist.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
30
diff
changeset
|
12 }, |
4
b8e56e880f02
Added a first example view (userlisting) from the EXJS Tutorial. Need to be
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 initComponent: function() { |
63
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
14 this.dockedItems = [ |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
15 { |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
16 xtype: 'toolbar', |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
17 dock: 'top', |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
18 items: [ |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
19 { |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
20 text: 'Hinzufügen', |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
21 icon: 'gfx/plus.gif', |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
22 action: 'add' |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
23 } |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
24 ] |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
25 } |
f7d40f8a6902
Added toolbar on the top of the proben listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
37
diff
changeset
|
26 ]; |
4
b8e56e880f02
Added a first example view (userlisting) from the EXJS Tutorial. Need to be
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 this.columns = [ |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
15
diff
changeset
|
28 {header: 'Datenbasis', dataIndex: 'datenbasisId', width: 70}, |
29
1fdef170d5a5
Changed MLP to MPL. It seems that this one was a typo.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
25
diff
changeset
|
29 {header: 'MPL', dataIndex: 'mplId', width: 50}, |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
15
diff
changeset
|
30 {header: 'UWB', dataIndex: 'umwId', width: 50}, |
99
b6a05fe9f40e
Setup missing fields in the proben overview.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
63
diff
changeset
|
31 {header: 'MMT', dataIndex: 'messmethode'}, |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
15
diff
changeset
|
32 {header: 'HPNR', dataIndex: 'hauptprobenNr'}, |
99
b6a05fe9f40e
Setup missing fields in the proben overview.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
63
diff
changeset
|
33 {header: 'NPNR', dataIndex: 'nebenprobenNr'}, |
b6a05fe9f40e
Setup missing fields in the proben overview.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
63
diff
changeset
|
34 {header: 'E.Gemeinde', dataIndex: 'bezeichnung', flex: 1}, |
b6a05fe9f40e
Setup missing fields in the proben overview.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
63
diff
changeset
|
35 {header: 'Ursprungsgemeinde', dataIndex: 'kreis', flex: 1}, |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
15
diff
changeset
|
36 {header: 'ProbeID', dataIndex: 'probeId'}, |
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
15
diff
changeset
|
37 {header: 'MST', dataIndex: 'mstId', width: 50} |
4
b8e56e880f02
Added a first example view (userlisting) from the EXJS Tutorial. Need to be
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
38 ]; |
b8e56e880f02
Added a first example view (userlisting) from the EXJS Tutorial. Need to be
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
39 this.callParent(arguments); |
b8e56e880f02
Added a first example view (userlisting) from the EXJS Tutorial. Need to be
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
40 } |
b8e56e880f02
Added a first example view (userlisting) from the EXJS Tutorial. Need to be
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
41 }); |