comparison app/view/form/Probe.js @ 931:746b429917a8

remove obsolate code from Probe-Form
author Michael Stanko <mstanko@bfs.de>
date Tue, 22 Sep 2015 12:56:30 +0200
parents efb8cf646771
children d198946e5540
comparison
equal deleted inserted replaced
930:efb8cf646771 931:746b429917a8
190 margin: 0, 190 margin: 0,
191 layout: { 191 layout: {
192 type: 'hbox' 192 type: 'hbox'
193 }, 193 },
194 items: [{ 194 items: [{
195 xtype: 'datetime', 195 xtype: 'datefield',
196 emptyText: ' ', 196 emptyText: ' ',
197 fieldLabel: 'Sollzeitraum von', 197 fieldLabel: 'Sollzeitraum von',
198 labelWidth: 130, 198 labelWidth: 130,
199 margin: '0, 5, 5, 5', 199 margin: '0, 5, 5, 5',
200 name: 'solldatumBeginn', 200 name: 'solldatumBeginn',
201 format: 'd.m.Y H:i', 201 format: 'd.m.Y',
202 period: 'start', 202 period: 'start',
203 readOnly: true 203 readOnly: true
204 }, { 204 }, {
205 xtype: 'datetime', 205 xtype: 'datefield',
206 emptyText: ' ', 206 emptyText: ' ',
207 fieldLabel: 'bis', 207 fieldLabel: 'bis',
208 labelWidth: 17, 208 labelWidth: 17,
209 margin: '0, 5, 5, 5', 209 margin: '0, 5, 5, 5',
210 name: 'solldatumEnde', 210 name: 'solldatumEnde',
211 format: 'd.m.Y H:i', 211 format: 'd.m.Y',
212 period: 'end', 212 period: 'end',
213 readOnly: true 213 readOnly: true
214 }] 214 }]
215 }, { 215 }, {
216 xtype: 'fset', 216 xtype: 'fset',
278 name: 'mediaDesk', 278 name: 'mediaDesk',
279 width: '60%', 279 width: '60%',
280 minWidth: 290, 280 minWidth: 290,
281 labelWidth: 125, 281 labelWidth: 125,
282 fieldLabel: 'Deskriptoren', 282 fieldLabel: 'Deskriptoren',
283 regex: new RegExp('(?:D: ){1}(?:[0-9]{2} ){11}[0-9]{2}'),
284 regexText: 'Die Deskriptoren haben das falsche Format.<br />'+
285 'Richtig wäre: D: 99 99 99 99 99 99 99 99 99 99 99 99',
286 editable: false, 283 editable: false,
287 readOnly: true, 284 readOnly: true,
288 listeners: { 285 listeners: {
289 dirtychange: { 286 dirtychange: {
290 fn: this.updateOnChange, 287 fn: this.updateOnChange,
296 name: 'media', 293 name: 'media',
297 margin: '0, 10, 5, 10', 294 margin: '0, 10, 5, 10',
298 width: '40%', 295 width: '40%',
299 enforceMaxLength: true, 296 enforceMaxLength: true,
300 editable: false, 297 editable: false,
301 readOnly: true, 298 readOnly: true
302 listeners: {
303 dirtychange: {
304 fn: this.updateOnChange,
305 scope: me
306 }
307 }
308 }] 299 }]
309 }, { 300 }, {
310 xtype: 'fieldset', 301 xtype: 'fieldset',
311 title: 'Details Deskriptoren', 302 title: 'Details Deskriptoren',
312 collapsible: true, 303 collapsible: true,
411 this.down('cbox[name=netzbetreiberId]').clearWarningOrError(); 402 this.down('cbox[name=netzbetreiberId]').clearWarningOrError();
412 this.down('tfield[name=x11]').clearWarningOrError(); 403 this.down('tfield[name=x11]').clearWarningOrError();
413 this.down('cbox[name=umwId]').clearWarningOrError(); 404 this.down('cbox[name=umwId]').clearWarningOrError();
414 this.down('datetime[name=probeentnahmeBeginn]').clearWarningOrError(); 405 this.down('datetime[name=probeentnahmeBeginn]').clearWarningOrError();
415 this.down('datetime[name=probeentnahmeEnde]').clearWarningOrError(); 406 this.down('datetime[name=probeentnahmeEnde]').clearWarningOrError();
416 // this.down('datetime[name=solldatumBeginn]').clearWarningOrError();
417 // this.down('datetime[name=solldatumEnde]').clearWarningOrError();
418 //this.down('numberfield[name=probeNehmerId]').clearWarningOrError();
419 this.down('fset[name=entnahmePeriod]').clearMessages(); 407 this.down('fset[name=entnahmePeriod]').clearMessages();
420 this.down('fset[name=sollzeitPeriod]').clearMessages(); 408 this.down('fset[name=sollzeitPeriod]').clearMessages();
421 }, 409 },
422 410
423 setReadOnly: function(value) { 411 setReadOnly: function(value) {

http://lada.wald.intevation.org