annotate app/view/zusatzwerte/CreateForm.js @ 170:738d657d8b6b

Added Status into Messungen listing.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 03 Jul 2013 16:08:22 +0200
parents 62b757ccdd8f
children d6d74718a102
rev   line source
110
c4f97a5a9939 Added Forms to add Zusatzwerte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 Ext.define('Lada.view.zusatzwerte.CreateForm', {
c4f97a5a9939 Added Forms to add Zusatzwerte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 extend: 'Lada.view.widgets.LadaForm',
122
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 114
diff changeset
3 requires : [
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 114
diff changeset
4 'Lada.view.widgets.Probenzusatzwert'
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 114
diff changeset
5 ],
110
c4f97a5a9939 Added Forms to add Zusatzwerte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 model: 'Lada.model.Zusatzwert',
c4f97a5a9939 Added Forms to add Zusatzwerte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 initComponent: function() {
c4f97a5a9939 Added Forms to add Zusatzwerte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 this.items = [
113
70f80c4ef90e Use new widgets in form for zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 110
diff changeset
9 {
122
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 114
diff changeset
10 xtype: 'probenzusatzwert',
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 114
diff changeset
11 name: 'pzsId',
143
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
12 fieldLabel: 'PZW-Größe',
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
13 listeners: {
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
14 scope: this,
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
15 'change': function (field, newv, oldv, opts) {
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
16 console.log(field, oldv, newv, opts);
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
17 var ffield = this.getForm().findField("messeinheit");
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
18 pzsId = newv;
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
19 if (pzsId == undefined) {
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
20 pzsId = oldv;
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
21 }
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
22 ffield.setValue(this.model.getMesseinheit(pzsId));
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
23 }
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
24 }
113
70f80c4ef90e Use new widgets in form for zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 110
diff changeset
25 },
70f80c4ef90e Use new widgets in form for zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 110
diff changeset
26 {
143
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
27 layout: "column",
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
28 border: 0,
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
29 items: [
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
30 {
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
31 xtype: 'textfield',
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
32 name: 'messwertPzs',
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
33 fieldLabel: 'Messwert'
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
34 },
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
35 {
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
36 xtype: 'displayfield',
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
37 name: 'messeinheit'
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
38 }
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
39 ]
113
70f80c4ef90e Use new widgets in form for zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 110
diff changeset
40 },
70f80c4ef90e Use new widgets in form for zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 110
diff changeset
41 {
70f80c4ef90e Use new widgets in form for zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 110
diff changeset
42 xtype: 'textfield',
70f80c4ef90e Use new widgets in form for zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 110
diff changeset
43 name: 'messfehler',
70f80c4ef90e Use new widgets in form for zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 110
diff changeset
44 fieldLabel: 'rel. Unsich.[%]'
70f80c4ef90e Use new widgets in form for zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 110
diff changeset
45 },
70f80c4ef90e Use new widgets in form for zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 110
diff changeset
46 {
114
189a93e31be9 Worked on Zusatzwerte. No all values are displayed correct in the List and
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 113
diff changeset
47 xtype: 'textfield',
189a93e31be9 Worked on Zusatzwerte. No all values are displayed correct in the List and
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 113
diff changeset
48 name: 'nwgZuMesswert',
189a93e31be9 Worked on Zusatzwerte. No all values are displayed correct in the List and
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 113
diff changeset
49 fieldLabel: 'Nachweisgrenze'
113
70f80c4ef90e Use new widgets in form for zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 110
diff changeset
50 }
110
c4f97a5a9939 Added Forms to add Zusatzwerte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
51 ];
c4f97a5a9939 Added Forms to add Zusatzwerte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
52 this.callParent();
c4f97a5a9939 Added Forms to add Zusatzwerte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
53 }
c4f97a5a9939 Added Forms to add Zusatzwerte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
54 });
143
62b757ccdd8f Show Messeinheit next to the Messwert field and change the value if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
55

http://lada.wald.intevation.org