annotate app/view/proben/EditForm.js @ 490:446e99cfd425

Updated views and controllers using the new model and stores.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 21:28:31 +0100
parents debfcc7713e3
children 850ccfe5f3c4
rev   line source
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 348
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 348
diff changeset
2 * Software engineering by Intevation GmbH
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 348
diff changeset
3 *
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 348
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 348
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 348
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 348
diff changeset
7 */
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 348
diff changeset
8
348
6007d11b81c2 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 278
diff changeset
9 /*
6007d11b81c2 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 278
diff changeset
10 * Formular to edit a Probe
6007d11b81c2 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 278
diff changeset
11 */
268
a191ab267e5f Fixed Syntax.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 267
diff changeset
12 Ext.define('Lada.view.proben.EditForm', {
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 extend: 'Lada.view.widgets.LadaForm',
121
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 106
diff changeset
14 requires: [
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 106
diff changeset
15 'Lada.view.widgets.Datenbasis',
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 106
diff changeset
16 'Lada.view.widgets.Netzbetreiber',
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 106
diff changeset
17 'Lada.view.widgets.Betriebsart',
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 106
diff changeset
18 'Lada.view.widgets.Testdatensatz',
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 106
diff changeset
19 'Lada.view.widgets.Probenart',
122
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
20 'Lada.view.widgets.Uwb',
144
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
21 'Lada.view.zusatzwerte.List',
150
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
22 'Lada.view.kommentare.List',
160
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
23 'Lada.view.orte.List',
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
24 'Lada.view.messungen.List'
121
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 106
diff changeset
25 ],
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 model: 'Lada.model.Probe',
121
c05fda928b82 Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 106
diff changeset
27 alias: 'widget.probeneditform',
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
28
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
29 initComponent: function() {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30 this.items = [
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
32 xtype: 'fieldset',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
33 title: 'Probenangaben',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
34 defaults: {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
35 labelWidth: 150
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
36 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
37 items: [
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
38 {
90
f25918e6911e Changed type of messstelle field to combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 89
diff changeset
39 xtype: 'mst',
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
40 name: 'mstId',
128
9b14742a8117 Added allowBlanks to the Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 125
diff changeset
41 fieldLabel: 'Messstelle',
9b14742a8117 Added allowBlanks to the Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 125
diff changeset
42 allowBlank: false
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
43 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
44 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
45 xtype: 'textfield',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
46 name: 'hauptprobenNr',
269
eda619ad45b0 Set maxlength to 20
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 268
diff changeset
47 maxLength: 20,
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
48 fieldLabel: 'Hauptprobennr.'
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
49 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
50 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
51 xtype: 'fieldset',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
52 title: 'Erweiterte Probenangaben',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
53 collapsible: true,
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
54 collapsed: true,
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
55 items: [
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
56 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
57 xtype: 'datenbasis',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
58 id: 'datenbasis',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
59 editable: false,
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
60 name: 'datenbasisId',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
61 fieldLabel: 'Datenbasis'
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
62 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
63 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
64 xtype: 'betriebsart',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
65 name: 'baId',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
66 fieldLabel: 'Betriebsart'
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
67 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
68 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
69 xtype: 'testdatensatz',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
70 name: 'test',
128
9b14742a8117 Added allowBlanks to the Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 125
diff changeset
71 fieldLabel: 'Testdatensatz',
9b14742a8117 Added allowBlanks to the Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 125
diff changeset
72 allowBlank: false
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
73 },
88
8594cd215732 Fixed naming of fields.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 87
diff changeset
74 {
8594cd215732 Fixed naming of fields.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 87
diff changeset
75 xtype: 'probenart',
8594cd215732 Fixed naming of fields.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 87
diff changeset
76 id: 'probenart',
8594cd215732 Fixed naming of fields.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 87
diff changeset
77 editable: false,
8594cd215732 Fixed naming of fields.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 87
diff changeset
78 name: 'probenartId',
128
9b14742a8117 Added allowBlanks to the Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 125
diff changeset
79 fieldLabel: 'Probenart',
9b14742a8117 Added allowBlanks to the Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 125
diff changeset
80 allowBlank: false
88
8594cd215732 Fixed naming of fields.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 87
diff changeset
81 },
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
82 {
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
83 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
84 allowDecimals: false,
88
8594cd215732 Fixed naming of fields.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 87
diff changeset
85 name: 'probeNehmerId',
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
86 fieldLabel: 'Probennehmer'
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
87 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
88 {
92
4b9ea5fd9d2b Fixed name of xtype
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 91
diff changeset
89 xtype: 'netzbetreiber',
87
ee1d1305dcff Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 71
diff changeset
90 name: 'netzbetreiberId',
91
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 90
diff changeset
91 editable: false,
87
ee1d1305dcff Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 71
diff changeset
92 fieldLabel: 'Netzbetreiber',
ee1d1305dcff Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 71
diff changeset
93 allowBlank: false
ee1d1305dcff Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 71
diff changeset
94 },
ee1d1305dcff Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 71
diff changeset
95 {
ee1d1305dcff Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 71
diff changeset
96 xtype: 'textfield',
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
97 name: 'x11',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
98 fieldLabel: 'Datensatzerzeuger'
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
99 }
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
100 ]
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
101 }
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
102 ]
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
103 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
104 // Medium
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
105 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
106 xtype: 'fieldset',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
107 title: 'Medium',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
108 defaults: {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
109 labelWidth: 150
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
110 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
111 items: [
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
112 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
113 xtype: 'uwb',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
114 name: 'umwId',
128
9b14742a8117 Added allowBlanks to the Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 125
diff changeset
115 fieldLabel: 'Umweltbereich',
9b14742a8117 Added allowBlanks to the Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 125
diff changeset
116 allowBlank: false
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
117 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
118 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
119 xtype: 'textfield',
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
120 maxLength: 100,
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
121 name: 'media',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
122 fieldLabel: 'Medienbezeichnung'
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
123 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
124 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
125 xtype: 'textfield',
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
126 maxLength: 100,
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
127 name: 'mediaDesk',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
128 fieldLabel: 'Deskriptoren'
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
129 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
130 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
131 xtype: 'fieldset',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
132 title: 'Details Deskriptoren',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
133 collapsible: true,
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
134 collapsed: true,
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
135 defaultType: 'textfield',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
136 items: this.buildDescriptors()
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
137 }
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
138 ]
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
139 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
140 // Zeit
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
141 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
142 xtype: 'fieldset',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
143 title: 'Zeit',
276
dee3e54a61b1 Use datetimepicker for all datefields
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 269
diff changeset
144 defaultType: 'datetime',
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
145 defaults: {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
146 labelWidth: 150
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
147 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
148 items: [
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
149 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
150 fieldLabel: 'Probennahme Beginn',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
151 name: 'probeentnahmeBeginn'
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
152 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
153 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
154 fieldLabel: 'Probennahme Ende',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
155 name: 'probeentnahmeEnde'
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
156 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
157 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
158 fieldLabel: 'Sollzeit Von',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
159 name: 'solldatumBeginn'
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
160 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
161 {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
162 fieldLabel: 'Sollzeit Bis',
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
163 name: 'solldatumEnde'
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
164 }
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
165 ]
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
166 },
150
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
167 // Ortsangaben
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
168 {
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
169 xtype: 'fieldset',
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
170 title: 'Ortsangaben',
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
171 padding: '10 10',
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
172 items: [
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
173 {
154
16ba7e2465fd Implemented creating and editing new l_ort. Created editing orte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 150
diff changeset
174 xtype: 'ortelist',
16ba7e2465fd Implemented creating and editing new l_ort. Created editing orte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 150
diff changeset
175 probeId: this.modelId
150
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
176 }
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
177 ]
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
178 },
122
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
179 // Probenzusatzwerte
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
180 {
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
181 xtype: 'fieldset',
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
182 title: 'Probenzusatzwerte',
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
183 collapsible: true,
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
184 collapsed: true,
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
185 padding: '10 10',
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
186 items: [
125
324b11db4323 Store probeId as attribute of the "add" button in the zusatzwerte list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
187 {
324b11db4323 Store probeId as attribute of the "add" button in the zusatzwerte list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
188 xtype: 'zusatzwertelist',
324b11db4323 Store probeId as attribute of the "add" button in the zusatzwerte list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
189 probeId: this.modelId
324b11db4323 Store probeId as attribute of the "add" button in the zusatzwerte list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 122
diff changeset
190 }
122
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
191 ]
144
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
192 },
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
193 // Probenkommentar
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
194 {
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
195 xtype: 'fieldset',
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
196 title: 'Probenkommentare',
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
197 collapsible: true,
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
198 collapsed: true,
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
199 padding: '10 10',
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
200 items: [
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
201 {
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
202 xtype: 'kommentarelist',
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
203 probeId: this.modelId
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
204 }
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
205 ]
160
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
206 },
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
207 // Messungsangaben
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
208 {
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
209 xtype: 'fieldset',
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
210 title: 'Messungsangaben',
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
211 padding: '10 10',
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
212 items: [
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
213 {
172
cfa0cc437781 Implemented opening a new Messungen form when clicking and the "Add Button" on
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 160
diff changeset
214 xtype: 'messungenlist',
cfa0cc437781 Implemented opening a new Messungen form when clicking and the "Add Button" on
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 160
diff changeset
215 probeId: this.modelId
160
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
216 }
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
217 ]
122
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
218 }
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
219 ];
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
220 this.callParent();
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
221 },
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
222 buildDescriptors: function() {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
223 var fields = new Array();
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
224 for ($i=0; $i<12; $i++) {
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
225 fields[$i] = {fieldLabel: 'S'+$i, name: 's'+$i};
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
226 }
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
227 return fields;
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
228 }
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
229 });

http://lada.wald.intevation.org