Mercurial > lada > lada-client
annotate app/view/messungen/CreateForm.js @ 179:f1f0351b6e2f
Show List of Messungskommentare
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 04 Jul 2013 12:21:25 +0200 |
parents | 311065a9e6df |
children | 062aa9001eb6 |
rev | line source |
---|---|
108
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 Ext.define('Lada.view.messungen.CreateForm', { |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 extend: 'Lada.view.widgets.LadaForm', |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 model: 'Lada.model.Messung', |
176
74fc25979b51
Require messmethode widget. Fix fieldname.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
174
diff
changeset
|
4 requires: [ |
179
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
5 'Lada.view.widgets.Messmethode', |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
6 'Lada.view.mkommentare.List' |
176
74fc25979b51
Require messmethode widget. Fix fieldname.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
174
diff
changeset
|
7 ], |
108
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 initComponent: function() { |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 this.items = [ |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
10 { |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
11 xtype: 'textfield', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
12 name: 'nebenprobenNr', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
13 fieldLabel: 'NPR' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
14 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
15 { |
177
311065a9e6df
Use Messmethodewidget.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
176
diff
changeset
|
16 xtype: 'messmethode', |
176
74fc25979b51
Require messmethode widget. Fix fieldname.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
174
diff
changeset
|
17 name: 'mmtId', |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
18 fieldLabel: 'MMT' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
19 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
20 { |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
21 xtype: 'datefield', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
22 name: 'messzeitpunkt', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
23 fieldLabel: 'Messzeitpunkt' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
24 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
25 { |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
26 xtype: 'textfield', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
27 name: 'messdauer', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
28 fieldLabel: 'Messdauer' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
29 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
30 { |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
31 xtype: 'textfield', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
32 name: 'fertig', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
33 fieldLabel: 'Fertig' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
34 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
35 { |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
36 xtype: 'textfield', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
37 name: 'geplant', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
38 fieldLabel: 'Geplant' |
179
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
39 }, |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
40 // Messungskommentare |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
41 { |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
42 xtype: 'fieldset', |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
43 title: 'Messungskommentare', |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
44 collapsible: true, |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
45 collapsed: false, |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
46 padding: '10 10', |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
47 items: [ |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
48 { |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
49 xtype: 'mkommentarelist', |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
50 parentId: this.modelId |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
51 } |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
52 ] |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
53 } |
108
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
54 ]; |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
55 this.callParent(); |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
56 } |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
57 }); |