annotate app/view/messungen/CreateForm.js @ 322:49a42c7f1d1f

Added docstring
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 13 Aug 2013 08:05:33 +0200
parents d6d74718a102
children eccf58d3b106
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',
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
6 'Lada.view.widgets.Testdatensatz'
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',
209
a9a7d8abc45e Set maxlength of NPR to 10
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 196
diff changeset
13 maxLength: 10,
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
14 fieldLabel: 'NPR'
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
15 },
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
16 {
177
311065a9e6df Use Messmethodewidget.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 176
diff changeset
17 xtype: 'messmethode',
176
74fc25979b51 Require messmethode widget. Fix fieldname.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 174
diff changeset
18 name: 'mmtId',
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
19 fieldLabel: 'MMT'
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 {
276
dee3e54a61b1 Use datetimepicker for all datefields
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 231
diff changeset
22 xtype: 'datetime',
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
23 name: 'messzeitpunkt',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
24 fieldLabel: 'Messzeitpunkt'
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 {
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
27 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
28 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
29 minValue: 0,
174
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'
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
42 }
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
43 ];
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
44 this.callParent();
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
45 }
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
46 });

http://lada.wald.intevation.org