annotate app/view/form/Location.js @ 984:b21421ba6917 stammdatengrids

added buttons for datensatzerzeuger, pobenehmer, added controllers
author Dustin Demuth <dustin@intevation.de>
date Thu, 10 Dec 2015 08:30:14 +0100
parents a1d72228af00
children
rev   line source
604
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
2 * Software engineering by Intevation GmbH
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
3 *
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
7 */
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
8
894
a1d72228af00 jsduck for forms
Dustin Demuth <dustin@intevation.de>
parents: 877
diff changeset
9 /**
a1d72228af00 jsduck for forms
Dustin Demuth <dustin@intevation.de>
parents: 877
diff changeset
10 * Form to edit the Location of a Probe
604
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
11 */
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.view.form.Location', {
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
13 extend: 'Ext.form.Panel',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
14 alias: 'widget.locationform',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
15
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
16 requires: [
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
17 'Lada.view.widget.Verwaltungseinheit',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
18 'Lada.view.widget.Staat'
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
19 ],
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
20
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
21 model: 'Lada.model.Ort',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
22 minWidth: 300,
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
23 margin: 5,
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
24 border: 0,
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
25
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
26 recordId: null,
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
27
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
28 trackResetOnLoad: true,
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
29
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
30 initComponent: function() {
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
31 this.items = [{
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
32 xtype: 'fieldset',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
33 title: 'Details',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
34 items: [{
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
35 border: 0,
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
36 margin: '0, 0, 10, 0',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
37 dockedItems: [{
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
38 xtype: 'toolbar',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
39 dock: 'bottom',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
40 border: '0, 1, 1, 1',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
41 style: {
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
42 borderBottom: '1px solid #b5b8c8 !important',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
43 borderLeft: '1px solid #b5b8c8 !important',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
44 borderRight: '1px solid #b5b8c8 !important'
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
45 },
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
46 items: ['->', {
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
47 text: 'Speichern',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
48 qtip: 'Daten speichern',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
49 icon: 'resources/img/dialog-ok-apply.png',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
50 action: 'save',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
51 disabled: true
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
52 }, {
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
53 text: 'Verwerfen',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
54 qtip: 'Änderungen verwerfen',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
55 icon: 'resources/img/dialog-cancel.png',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
56 action: 'discard',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
57 disabled: true
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
58 }]
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
59 }],
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
60 items: [{
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
61 xtype: 'tfield',
876
6451d095ff4e Restored Beschreibung Field
Dustin Demuth <dustin@intevation.de>
parents: 852
diff changeset
62 maxLength: 100,
6451d095ff4e Restored Beschreibung Field
Dustin Demuth <dustin@intevation.de>
parents: 852
diff changeset
63 name: 'beschreibung',
6451d095ff4e Restored Beschreibung Field
Dustin Demuth <dustin@intevation.de>
parents: 852
diff changeset
64 fieldLabel: 'Beschreibung',
6451d095ff4e Restored Beschreibung Field
Dustin Demuth <dustin@intevation.de>
parents: 852
diff changeset
65 width: 280,
6451d095ff4e Restored Beschreibung Field
Dustin Demuth <dustin@intevation.de>
parents: 852
diff changeset
66 labelWidth: 80
6451d095ff4e Restored Beschreibung Field
Dustin Demuth <dustin@intevation.de>
parents: 852
diff changeset
67 }, {
604
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
68 xtype: 'staat',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
69 name: 'staatId',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
70 fieldLabel: 'Staat',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
71 width: 280,
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
72 labelWidth: 80
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
73 }, {
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
74 xtype: 'verwaltungseinheit',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
75 name: 'verwaltungseinheitId',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
76 fieldLabel: 'Gemeinde',
675
fe527f380b10 merged.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 604
diff changeset
77 editable: true,
604
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
78 width: 280,
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
79 labelWidth: 80
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
80 }, {
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
81 xtype: 'numberfield',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
82 name: 'latitude',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
83 fieldLabel: 'Lat',
802
3139b920dd0e Increased decimalPrecision for LatLon
Dustin Demuth <dustin@intevation.de>
parents: 708
diff changeset
84 decimalPrecision: 5,
604
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
85 width: 280,
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
86 labelWidth: 80
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
87 }, {
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
88 xtype: 'numberfield',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
89 name: 'longitude',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
90 fieldLabel: 'Lon',
802
3139b920dd0e Increased decimalPrecision for LatLon
Dustin Demuth <dustin@intevation.de>
parents: 708
diff changeset
91 decimalPrecision: 5,
604
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
92 width: 280,
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
93 labelWidth: 80
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
94 }, {
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
95 xtype: 'numberfield',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
96 name: 'hoeheLand',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
97 fieldLabel: 'Höhe',
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
98 width: 280,
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
99 labelWidth: 80
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
100 }]
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
101 }]
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
102 }];
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
103 this.callParent(arguments);
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
104 },
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
105
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
106 setRecord: function(record) {
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
107 this.getForm().loadRecord(record);
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
108 },
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
109
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
110 setMessages: function(errors, warnings) {
708
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
111 var key;
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
112 var element;
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
113 var content;
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
114 var i18n = Lada.getApplication().bundle;
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
115 if (warnings) {
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
116 for (key in warnings) {
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
117 element = this.down('component[name=' + key + ']');
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
118 if (!element) {
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
119 continue;
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
120 }
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
121 content = warnings[key];
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
122 var warnText = '';
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
123 for (var i = 0; i < content.length; i++) {
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
124 warnText += i18n.getMsg(content[i].toString()) + '\n';
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
125 }
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
126 element.showWarnings(warnText);
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
127 }
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
128 }
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
129 if (errors) {
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
130 for (key in errors) {
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
131 element = this.down('component[name=' + key + ']');
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
132 if (!element) {
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
133 continue;
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
134 }
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
135 content = errors[key];
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
136 var errorText = '';
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
137 for (var i = 0; i < content.length; i++) {
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
138 errorText += i18n.getMsg(content[i].toString()) + '\n';
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
139 }
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
140 element.showErrors(errorText);
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
141 }
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
142 }
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
143 },
604
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
144
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
145 clearMessages: function() {
876
6451d095ff4e Restored Beschreibung Field
Dustin Demuth <dustin@intevation.de>
parents: 852
diff changeset
146 this.down('tfield[name=beschreibung]').clearWarningOrError();
708
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
147 this.down('staat[name=staatId]').clearWarningOrError();
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
148 this.down('verwaltungseinheit[name=verwaltungseinheitId]').clearWarningOrError();
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
149 //this.down('numberfield[name=longitude]').clearWarningOrError();
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
150 //this.down('numberfield[name=latitude]').clearWarningOrError();
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
151 //this.down('numberfield[name=hoeheLand]').clearWarningOrError();
2ad36c8db968 Added ClearMessages, SetWarnigs, SetReadonly
Dustin Demuth <dustin@intevation.de>
parents: 675
diff changeset
152 },
604
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
153
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
154 setReadOnly: function(value) {
876
6451d095ff4e Restored Beschreibung Field
Dustin Demuth <dustin@intevation.de>
parents: 852
diff changeset
155 this.down('tfield[name=beschreibung]').setReadOnly(value);
604
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
156 this.down('staat[name=staatId]').setReadOnly(value);
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
157 this.down('verwaltungseinheit[name=verwaltungseinheitId]').setReadOnly(value);
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
158 this.down('numberfield[name=longitude]').setReadOnly(value);
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
159 this.down('numberfield[name=latitude]').setReadOnly(value);
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
160 this.down('numberfield[name=hoeheLand]').setReadOnly(value);
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
161 }
2f17dd53e69f Added form for locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
162 });

http://lada.wald.intevation.org