annotate app/view/messungen/CreateForm.js @ 255:82118c01bc52

#57: Open Edit-Dialog after creating a new Probe.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 24 Jul 2013 19:14:02 +0200
parents edb2b636319f
children dee3e54a61b1
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 {
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
22 xtype: 'datefield',
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 {
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
27 xtype: 'textfield',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
28 name: 'messdauer',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
29 fieldLabel: 'Messdauer'
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 {
181
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
32 xtype: 'testdatensatz',
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
33 name: 'fertig',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
34 fieldLabel: 'Fertig'
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: 'geplant',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
39 fieldLabel: 'Geplant'
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
40 }
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
41 ];
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
42 this.callParent();
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 });

http://lada.wald.intevation.org