Mercurial > lada > lada-client
annotate app/view/messungen/CreateForm.js @ 181:062aa9001eb6
Completed Messwertelist
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 04 Jul 2013 15:11:01 +0200 |
parents | f1f0351b6e2f |
children | 2cf26580d75d |
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', |
181
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
6 'Lada.view.widgets.Testdatensatz', |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
7 'Lada.view.mkommentare.List', |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
8 'Lada.view.status.List', |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
9 'Lada.view.messwerte.List' |
176
74fc25979b51
Require messmethode widget. Fix fieldname.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
174
diff
changeset
|
10 ], |
108
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 initComponent: function() { |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 this.items = [ |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
13 { |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
14 xtype: 'textfield', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
15 name: 'nebenprobenNr', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
16 fieldLabel: 'NPR' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
17 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
18 { |
177
311065a9e6df
Use Messmethodewidget.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
176
diff
changeset
|
19 xtype: 'messmethode', |
176
74fc25979b51
Require messmethode widget. Fix fieldname.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
174
diff
changeset
|
20 name: 'mmtId', |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
21 fieldLabel: 'MMT' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
22 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
23 { |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
24 xtype: 'datefield', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
25 name: 'messzeitpunkt', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
26 fieldLabel: 'Messzeitpunkt' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
27 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
28 { |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
29 xtype: 'textfield', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
30 name: 'messdauer', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
31 fieldLabel: 'Messdauer' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
32 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
33 { |
181
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
34 xtype: 'testdatensatz', |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
35 name: 'fertig', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
36 fieldLabel: 'Fertig' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
37 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
38 { |
181
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
39 xtype: 'testdatensatz', |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
40 name: 'geplant', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
41 fieldLabel: 'Geplant' |
179
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
42 }, |
181
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
43 // Messwerte |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
44 { |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
45 xtype: 'fieldset', |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
46 title: 'Messwerte', |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
47 collapsible: true, |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
48 collapsed: false, |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
49 padding: '10 10', |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
50 items: [ |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
51 { |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
52 xtype: 'messwertelist', |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
53 parentId: this.modelId |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
54 } |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
55 ] |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
56 }, |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
57 // Status |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
58 { |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
59 xtype: 'fieldset', |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
60 title: 'Messungsstatus', |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
61 collapsible: true, |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
62 collapsed: false, |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
63 padding: '10 10', |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
64 items: [ |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
65 { |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
66 xtype: 'statuslist', |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
67 parentId: this.modelId |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
68 } |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
69 ] |
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
70 }, |
179
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
71 // Messungskommentare |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
72 { |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
73 xtype: 'fieldset', |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
74 title: 'Messungskommentare', |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
75 collapsible: true, |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
76 collapsed: false, |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
77 padding: '10 10', |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
78 items: [ |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
79 { |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
80 xtype: 'mkommentarelist', |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
81 parentId: this.modelId |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
82 } |
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
83 ] |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
84 } |
108
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
85 ]; |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
86 this.callParent(); |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
87 } |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
88 }); |