comparison app/view/form/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 8f37f8832c4a
children 3f499c52eee6
comparison
equal deleted inserted replaced
1288:08085b7d1d0b 1289:bfdc00c24baf
36 minWidth: 650, 36 minWidth: 650,
37 margin: 5, 37 margin: 5,
38 border: 0, 38 border: 0,
39 39
40 recordId: null, 40 recordId: null,
41 ortWindow: null,
42 41
43 trackResetOnLoad: true, 42 trackResetOnLoad: true,
44 43
45 initComponent: function() { 44 initComponent: function() {
46 var me = this; 45 var me = this;
358 } 357 }
359 } 358 }
360 }] 359 }]
361 }] 360 }]
362 }, { 361 }, {
363 // Ort
364 xtype: 'fieldset',
365 title: 'Ort',
366 layout: {
367 type: 'hbox',
368 align: 'stretch'
369 },
370 width: '100%',
371 items: [{
372 xtype: 'location',
373 name: 'ortId',
374 fieldLabel: i18n.getMsg('ortId'),
375 labelWidth: 80,
376 allowBlank: false,
377 forceSelection: true,
378 editable: false,
379 columnWidth: '0.75'
380 }, {
381 xtype: 'button',
382 name: 'ortIdButton',
383 margin: '0 0 0 5',
384 text: i18n.getMsg('messprogrammort.button.title'),
385 action: 'ort',
386 columnWidth: '0.25'
387 }]
388 }, {
389 xtype: 'probenehmer', 362 xtype: 'probenehmer',
390 name: 'probeNehmerId', 363 name: 'probeNehmerId',
391 fieldLabel: i18n.getMsg('probeNehmerId'), 364 fieldLabel: i18n.getMsg('probeNehmerId'),
392 margin: '0, 5, 5, 5', 365 margin: '0, 5, 5, 5',
393 //width: '100%', 366 //width: '100%',
463 var intrec = intervallstore 436 var intrec = intervallstore
464 .findRecord('probenintervall', 437 .findRecord('probenintervall',
465 intervall, 0, false, false, true); 438 intervall, 0, false, false, true);
466 439
467 if (intrec) { // in cases when a new messprogramm is 440 if (intrec) { // in cases when a new messprogramm is
468 // created and the discard function is used, intrec will be null 441 // created and the discard function is used, intrec will be null && edit is allowed
469 // consequently the assertion below will fail. 442 // consequently the assertion below will fail.
470 min = intrec.get('periodstart'); 443 min = intrec.get('periodstart');
471 max = intrec.get('periodend'); 444 max = intrec.get('periodend');
472 } 445 }
473 446
670 this.down('dayofyear[name=gueltigVon]').clearWarningOrError(); 643 this.down('dayofyear[name=gueltigVon]').clearWarningOrError();
671 this.down('dayofyear[name=gueltigBis]').clearWarningOrError(); 644 this.down('dayofyear[name=gueltigBis]').clearWarningOrError();
672 //no clear for probeNehmerId 645 //no clear for probeNehmerId
673 // Deskriptoren are missing 646 // Deskriptoren are missing
674 this.down('cbox[name=umwId]').clearWarningOrError(); 647 this.down('cbox[name=umwId]').clearWarningOrError();
675 this.down('cbox[name=ortId]').clearWarningOrError();
676 }, 648 },
677 649
678 setReadOnly: function(value) { 650 setReadOnly: function(value) {
679 // TODO 651 // TODO
680 }, 652 },

http://lada.wald.intevation.org