annotate app/view/messungen/CreateForm.js @ 196:2cf26580d75d

Set messungsId to the add buttons in the lists on edit page for messungen.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 08 Jul 2013 16:10:10 +0200
parents 062aa9001eb6
children a9a7d8abc45e
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',
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
53 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
54 probeId: this.model.get('probeId')
181
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 },
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
58 // Status
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
59 {
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
60 xtype: 'fieldset',
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
61 title: 'Messungsstatus',
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
62 collapsible: true,
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
63 collapsed: false,
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
64 padding: '10 10',
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
65 items: [
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
66 {
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
67 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
68 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
69 probeId: this.model.get('probeId')
181
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
70 }
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 },
179
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
73 // Messungskommentare
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
74 {
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
75 xtype: 'fieldset',
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
76 title: 'Messungskommentare',
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
77 collapsible: true,
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
78 collapsed: false,
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
79 padding: '10 10',
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
80 items: [
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
81 {
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
82 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
83 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
84 probeId: this.model.get('probeId')
179
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
85 }
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
86 ]
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
87 }
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
88 ];
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
89 this.callParent();
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
90 }
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
91 });

http://lada.wald.intevation.org