comparison app/view/form/Messprogramm.js @ 1210:a24de34d6423

Align subintervall with validity for yearly samples. Subintervall is redundant to validity for yearly samples.
author Tom Gottfried <tom@intevation.de>
date Tue, 11 Oct 2016 14:34:12 +0200
parents 0a7f0a09151c
children 3e6756b0fc97
comparison
equal deleted inserted replaced
1209:78805e951c37 1210:a24de34d6423
431 431
432 svalUpper = record.get('teilintervallBis'); 432 svalUpper = record.get('teilintervallBis');
433 svalLower = record.get('teilintervallVon'); 433 svalLower = record.get('teilintervallVon');
434 } 434 }
435 435
436 // subintervall is redundant to validity for yearly samples
437 if (intervall == 'J') {
438 svalUpper = this.getForm().findField('gueltigBis').getValue();
439 svalLower = this.getForm().findField('gueltigVon').getValue();
440 b.setReadOnly(true);
441 v.setReadOnly(true);
442 s.setDisabled(true);
443 } else {
444 b.setReadOnly(false);
445 v.setReadOnly(false);
446 s.setDisabled(false);
447 }
436 448
437 var intrec = intervallstore 449 var intrec = intervallstore
438 .findRecord('probenintervall', 450 .findRecord('probenintervall',
439 intervall, 0, false, false, true); 451 intervall, 0, false, false, true);
440 452

http://lada.wald.intevation.org