Mercurial > lada > lada-client
comparison app/view/form/Messprogramm.js @ 1212:3e6756b0fc97
Fix and complement validation of Messprogramm from.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 13 Oct 2016 14:42:26 +0200 |
parents | a24de34d6423 |
children | 390dabbf27ed |
comparison
equal
deleted
inserted
replaced
1211:85b018980347 | 1212:3e6756b0fc97 |
---|---|
113 margin: '0, 5, 5, 5', | 113 margin: '0, 5, 5, 5', |
114 width: '35%', | 114 width: '35%', |
115 labelWidth: 95, | 115 labelWidth: 95, |
116 allowBlank: false, | 116 allowBlank: false, |
117 editable: true, | 117 editable: true, |
118 hidden: true | 118 hidden: true, |
119 listeners: { | |
120 validitychange: me.mstLaborValidity | |
121 } | |
119 }, { | 122 }, { |
120 xtype: 'messstelle', | 123 xtype: 'messstelle', |
121 name: 'laborMstId', | 124 name: 'laborMstId', |
122 fieldLabel: 'Messstelle/Labor', | 125 fieldLabel: 'Messstelle/Labor', |
123 margin: '0, 5, 5, 5', | 126 margin: '0, 5, 5, 5', |
124 width: '35%', | 127 width: '35%', |
125 labelWidth: 95, | 128 labelWidth: 95, |
126 allowBlank: false, | 129 allowBlank: false, |
127 editable: true, | 130 editable: true, |
128 hidden: true | 131 hidden: true, |
132 listeners: { | |
133 validitychange: me.mstLaborValidity | |
134 } | |
129 }, { | 135 }, { |
130 xtype: 'netzbetreiber', | 136 xtype: 'netzbetreiber', |
131 name: 'netzbetreiberId', | 137 name: 'netzbetreiberId', |
132 editable: false, | 138 editable: false, |
133 readOnly: true, | 139 readOnly: true, |
480 //Set IntervallOffset | 486 //Set IntervallOffset |
481 i.setMinValue(0); | 487 i.setMinValue(0); |
482 i.setMaxValue(max-1); | 488 i.setMaxValue(max-1); |
483 }, | 489 }, |
484 | 490 |
491 /* | |
492 * Set validity of messstellelabor field (not part of the form) based | |
493 * on validitychange event of hidden mstId and laborMstId | |
494 */ | |
495 mstLaborValidity: function(field, isValid) { | |
496 if (!isValid) { | |
497 field.up('fieldset').down('messstellelabor') | |
498 .down('combobox').markInvalid(''); | |
499 } | |
500 }, | |
501 | |
485 setRecord: function(messRecord) { | 502 setRecord: function(messRecord) { |
486 this.clearMessages(); | 503 this.clearMessages(); |
487 this.getForm().loadRecord(messRecord); | 504 this.getForm().loadRecord(messRecord); |
488 //Set the intervall numberfields and the slider. | 505 //Set the intervall numberfields and the slider. |
489 this.down('probenintervallslider').setValue([ | 506 this.down('probenintervallslider').setValue([ |