Mercurial > lada > lada-client
comparison app/view/form/Probe.js @ 930:efb8cf646771
Changed 'medie' and 'mediadesk' fields to readonly fields
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Tue, 22 Sep 2015 09:32:34 +0200 |
parents | e2a26f9733ee |
children | 746b429917a8 |
comparison
equal
deleted
inserted
replaced
929:62665a456dcb | 930:efb8cf646771 |
---|---|
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}'), | 283 regex: new RegExp('(?:D: ){1}(?:[0-9]{2} ){11}[0-9]{2}'), |
284 regexText: 'Die Deskriptoren haben das falsche Format.<br />'+ | 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', | 285 'Richtig wäre: D: 99 99 99 99 99 99 99 99 99 99 99 99', |
286 editable: false, | |
287 readOnly: true, | |
286 listeners: { | 288 listeners: { |
287 dirtychange: { | 289 dirtychange: { |
288 fn: this.updateOnChange, | 290 fn: this.updateOnChange, |
289 scope: me | 291 scope: me |
290 } | 292 } |
291 } | 293 } |
292 }, { | 294 }, { |
293 xtype: 'textfield', | 295 xtype: 'textfield', |
294 name: 'media', | 296 name: 'media', |
295 margin: '0, 10, 5, 10', | 297 margin: '0, 10, 5, 10', |
298 width: '40%', | |
296 enforceMaxLength: true, | 299 enforceMaxLength: true, |
297 editable: false, | 300 editable: false, |
298 readOnly: true, | 301 readOnly: true, |
299 listeners: { | 302 listeners: { |
300 dirtychange: { | 303 dirtychange: { |
307 xtype: 'fieldset', | 310 xtype: 'fieldset', |
308 title: 'Details Deskriptoren', | 311 title: 'Details Deskriptoren', |
309 collapsible: true, | 312 collapsible: true, |
310 collapsed: true, | 313 collapsed: true, |
311 layout: { | 314 layout: { |
312 type: 'table', | 315 type: 'vbox', |
313 columns: 3 | 316 align: 'stretch' |
314 }, | 317 }, |
315 items: this.buildDescriptors() | 318 items: this.buildDescriptors() |
316 }] | 319 }] |
317 }] | 320 }] |
318 }] | 321 }] |
408 this.down('cbox[name=netzbetreiberId]').clearWarningOrError(); | 411 this.down('cbox[name=netzbetreiberId]').clearWarningOrError(); |
409 this.down('tfield[name=x11]').clearWarningOrError(); | 412 this.down('tfield[name=x11]').clearWarningOrError(); |
410 this.down('cbox[name=umwId]').clearWarningOrError(); | 413 this.down('cbox[name=umwId]').clearWarningOrError(); |
411 this.down('datetime[name=probeentnahmeBeginn]').clearWarningOrError(); | 414 this.down('datetime[name=probeentnahmeBeginn]').clearWarningOrError(); |
412 this.down('datetime[name=probeentnahmeEnde]').clearWarningOrError(); | 415 this.down('datetime[name=probeentnahmeEnde]').clearWarningOrError(); |
413 this.down('datetime[name=solldatumBeginn]').clearWarningOrError(); | 416 // this.down('datetime[name=solldatumBeginn]').clearWarningOrError(); |
414 this.down('datetime[name=solldatumEnde]').clearWarningOrError(); | 417 // this.down('datetime[name=solldatumEnde]').clearWarningOrError(); |
415 //this.down('numberfield[name=probeNehmerId]').clearWarningOrError(); | 418 //this.down('numberfield[name=probeNehmerId]').clearWarningOrError(); |
416 this.down('fset[name=entnahmePeriod]').clearMessages(); | 419 this.down('fset[name=entnahmePeriod]').clearMessages(); |
417 this.down('fset[name=sollzeitPeriod]').clearMessages(); | 420 this.down('fset[name=sollzeitPeriod]').clearMessages(); |
418 }, | 421 }, |
419 | 422 |
422 this.down('tfield[name=hauptprobenNr]').setReadOnly(value); | 425 this.down('tfield[name=hauptprobenNr]').setReadOnly(value); |
423 this.down('cbox[name=datenbasisId]').setReadOnly(value); | 426 this.down('cbox[name=datenbasisId]').setReadOnly(value); |
424 this.down('cbox[name=baId]').setReadOnly(value); | 427 this.down('cbox[name=baId]').setReadOnly(value); |
425 this.down('chkbox[name=test]').setReadOnly(value); | 428 this.down('chkbox[name=test]').setReadOnly(value); |
426 this.down('cbox[name=probenartId]').setReadOnly(value); | 429 this.down('cbox[name=probenartId]').setReadOnly(value); |
427 //this.down('cbox[name=netzbetreiberId]').setReadOnly(value); | |
428 this.down('tfield[name=x11]').setReadOnly(value); | 430 this.down('tfield[name=x11]').setReadOnly(value); |
429 this.down('textfield[name=media]').setReadOnly(value); | |
430 this.down('tfield[name=mediaDesk]').setReadOnly(value); | |
431 this.down('cbox[name=umwId]').setReadOnly(value); | 431 this.down('cbox[name=umwId]').setReadOnly(value); |
432 this.down('datetime[name=probeentnahmeBeginn]').setReadOnly(value); | 432 this.down('datetime[name=probeentnahmeBeginn]').setReadOnly(value); |
433 this.down('datetime[name=probeentnahmeEnde]').setReadOnly(value); | 433 this.down('datetime[name=probeentnahmeEnde]').setReadOnly(value); |
434 this.down('numberfield[name=probeNehmerId]').setReadOnly(value); | 434 this.down('numberfield[name=probeNehmerId]').setReadOnly(value); |
435 | 435 |