Mercurial > lada > lada-client
comparison app/view/window/Messprogramm.js @ 1289:bfdc00c24baf
Ortszuordnung for messprogramm and probe using same form
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Wed, 01 Feb 2017 14:52:51 +0100 |
parents | f3945506a4c5 |
children | 1a2cd9bef6d7 |
comparison
equal
deleted
inserted
replaced
1288:08085b7d1d0b | 1289:bfdc00c24baf |
---|---|
92 autoScroll: true, | 92 autoScroll: true, |
93 items: [{ | 93 items: [{ |
94 xtype: 'messprogrammform', | 94 xtype: 'messprogrammform', |
95 recordId: this.record ? this.record.get('id') : null | 95 recordId: this.record ? this.record.get('id') : null |
96 }, { | 96 }, { |
97 xtype: 'fset', | |
98 name: 'orte', | |
99 title: 'Ortsangaben', | |
100 padding: '5, 5', | |
101 margin: 5, | |
102 items: [{ | |
103 xtype: 'ortszuordnunggrid', | |
104 recordId: me.record ? me.record.get('id') : null | |
105 }] | |
106 }, { | |
97 //Messmethoden | 107 //Messmethoden |
98 xtype: 'fieldset', | 108 xtype: 'fieldset', |
99 padding: '5, 5', | 109 padding: '5, 5', |
100 title: i18n.getMsg('mmtmessprogramm.form.fieldset.title'), | 110 title: i18n.getMsg('mmtmessprogramm.form.fieldset.title'), |
101 margin: 5, | 111 margin: 5, |
157 } | 167 } |
158 } | 168 } |
159 // If the Messprogramm is ReadOnly, disable Inputfields and grids | 169 // If the Messprogramm is ReadOnly, disable Inputfields and grids |
160 if (this.record.get('readonly') === true) { | 170 if (this.record.get('readonly') === true) { |
161 this.down('messprogrammform').setReadOnly(true); | 171 this.down('messprogrammform').setReadOnly(true); |
162 //this.disableChildren(); | 172 this.disableChildren(); |
163 } | 173 } |
164 else { | 174 else { |
165 this.down('messprogrammform').setReadOnly(false); | 175 this.down('messprogrammform').setReadOnly(false); |
166 //this.enableChildren(); | 176 this.enableChildren(); |
167 } | 177 } |
168 me.setLoading(false); | 178 me.setLoading(false); |
169 }, | 179 }, |
170 scope: this | 180 scope: this |
171 }); | 181 }); |
187 this.down('fset[name=messungen]').down('messunggrid').setReadOnly(false); | 197 this.down('fset[name=messungen]').down('messunggrid').setReadOnly(false); |
188 }, | 198 }, |
189 */ | 199 */ |
190 | 200 |
191 disableChildren: function() { | 201 disableChildren: function() { |
192 // there are no children.... | 202 this.down('fset[name=orte]').down('ortszuordnunggrid').setReadOnly(true); |
193 }, | 203 }, |
194 | 204 |
195 enableChildren: function() { | 205 enableChildren: function() { |
196 // there are no children.... | 206 this.down('fset[name=orte]').down('ortszuordnunggrid').setReadOnly(false); |
197 }, | 207 }, |
198 | 208 |
199 /** | 209 /** |
200 * Instructs the fields / forms listed in this method to set a message. | 210 * Instructs the fields / forms listed in this method to set a message. |
201 * @param errors These Errors shall be shown | 211 * @param errors These Errors shall be shown |