annotate app/view/messungen/CreateForm.js @ 212:92facbaece42

add getEidi function to model
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 12 Jul 2013 15:57:09 +0200
parents a9a7d8abc45e
children edb2b636319f
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',
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 {
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
25 xtype: 'datefield',
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 {
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
30 xtype: 'textfield',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
31 name: 'messdauer',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
32 fieldLabel: 'Messdauer'
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
33 },
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
34 {
181
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
35 xtype: 'testdatensatz',
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
36 name: 'fertig',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
37 fieldLabel: 'Fertig'
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
38 },
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
39 {
181
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
40 xtype: 'testdatensatz',
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
41 name: 'geplant',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
42 fieldLabel: 'Geplant'
179
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
43 },
181
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
44 // Messwerte
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
45 {
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
46 xtype: 'fieldset',
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
47 title: 'Messwerte',
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
48 collapsible: true,
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
49 collapsed: false,
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
50 padding: '10 10',
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
51 items: [
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
52 {
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
53 xtype: 'messwertelist',
196
2cf26580d75d Set messungsId to the add buttons in the lists on edit page for messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
54 parentId: this.model.get('messungsId'),
2cf26580d75d Set messungsId to the add buttons in the lists on edit page for messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
55 probeId: this.model.get('probeId')
181
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 ]
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 // Status
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
60 {
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
61 xtype: 'fieldset',
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
62 title: 'Messungsstatus',
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
63 collapsible: true,
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
64 collapsed: false,
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
65 padding: '10 10',
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
66 items: [
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
67 {
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
68 xtype: 'statuslist',
196
2cf26580d75d Set messungsId to the add buttons in the lists on edit page for messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
69 parentId: this.model.get('messungsId'),
2cf26580d75d Set messungsId to the add buttons in the lists on edit page for messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
70 probeId: this.model.get('probeId')
181
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
71 }
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
72 ]
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
73 },
179
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
74 // Messungskommentare
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
75 {
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
76 xtype: 'fieldset',
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
77 title: 'Messungskommentare',
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
78 collapsible: true,
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
79 collapsed: false,
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
80 padding: '10 10',
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
81 items: [
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 xtype: 'mkommentarelist',
196
2cf26580d75d Set messungsId to the add buttons in the lists on edit page for messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
84 parentId: this.model.get('messungsId'),
2cf26580d75d Set messungsId to the add buttons in the lists on edit page for messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
85 probeId: this.model.get('probeId')
179
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
86 }
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
87 ]
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
88 }
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
89 ];
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
90 this.callParent();
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
91 }
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
92 });

http://lada.wald.intevation.org