Mercurial > lada > lada-client
annotate app/view/messungen/CreateForm.js @ 460:4e20552b4a3d
Added tag 1.0 for changeset 487ae31f4c5d
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 08 Jan 2014 16:49:16 +0100 |
parents | eccf58d3b106 |
children | debfcc7713e3 |
rev | line source |
---|---|
343
eccf58d3b106
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
278
diff
changeset
|
1 /* |
eccf58d3b106
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
278
diff
changeset
|
2 * Formular to create a Messung |
eccf58d3b106
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
278
diff
changeset
|
3 */ |
108
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 Ext.define('Lada.view.messungen.CreateForm', { |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 extend: 'Lada.view.widgets.LadaForm', |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 model: 'Lada.model.Messung', |
176
74fc25979b51
Require messmethode widget. Fix fieldname.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
174
diff
changeset
|
7 requires: [ |
179
f1f0351b6e2f
Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
177
diff
changeset
|
8 'Lada.view.widgets.Messmethode', |
231
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
209
diff
changeset
|
9 'Lada.view.widgets.Testdatensatz' |
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', |
209
a9a7d8abc45e
Set maxlength of NPR to 10
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
196
diff
changeset
|
16 maxLength: 10, |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
17 fieldLabel: 'NPR' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
18 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
19 { |
177
311065a9e6df
Use Messmethodewidget.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
176
diff
changeset
|
20 xtype: 'messmethode', |
176
74fc25979b51
Require messmethode widget. Fix fieldname.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
174
diff
changeset
|
21 name: 'mmtId', |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
22 fieldLabel: 'MMT' |
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 { |
276
dee3e54a61b1
Use datetimepicker for all datefields
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
231
diff
changeset
|
25 xtype: 'datetime', |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
26 name: 'messzeitpunkt', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
27 fieldLabel: 'Messzeitpunkt' |
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 { |
278
d6d74718a102
Clientseitige Überprüfung der Datenfelder hinzugefügt: Nutzung von "numberfields" bei Zahlenwerten, maxLength, min/maxValue
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
30 xtype: 'numberfield', |
d6d74718a102
Clientseitige Überprüfung der Datenfelder hinzugefügt: Nutzung von "numberfields" bei Zahlenwerten, maxLength, min/maxValue
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
31 allowDecimals: false, |
d6d74718a102
Clientseitige Überprüfung der Datenfelder hinzugefügt: Nutzung von "numberfields" bei Zahlenwerten, maxLength, min/maxValue
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
32 minValue: 0, |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
33 name: 'messdauer', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
34 fieldLabel: 'Messdauer' |
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 { |
181
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
37 xtype: 'testdatensatz', |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
38 name: 'fertig', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
39 fieldLabel: 'Fertig' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
40 }, |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
41 { |
181
062aa9001eb6
Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
179
diff
changeset
|
42 xtype: 'testdatensatz', |
174
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
43 name: 'geplant', |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
44 fieldLabel: 'Geplant' |
b0dcaaadb079
Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
108
diff
changeset
|
45 } |
108
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
46 ]; |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
47 this.callParent(); |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
48 } |
6c69bbb61c65
Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
49 }); |