comparison app/view/form/Messprogramm.js @ 774:afc9076db490

Added Offset field
author Dustin Demuth <dustin@intevation.de>
date Tue, 12 May 2015 16:11:05 +0200
parents b7484c7da2d4
children 5a153d36ed4e
comparison
equal deleted inserted replaced
768:380edfecac67 774:afc9076db490
254 labelWidth: 90, 254 labelWidth: 90,
255 anchor: '100%', 255 anchor: '100%',
256 name: 'gueltigBis', 256 name: 'gueltigBis',
257 format: 'd.m.Y H:i', 257 format: 'd.m.Y H:i',
258 period: 'end' 258 period: 'end'
259 }, {
260 xtype: 'numberfield',
261 fieldLabel: i18n.getMsg('offset'),
262 labelWidth: 90,
263 anchor: '100%',
264 name: 'intervallOffset',
259 }] 265 }]
260 }, { 266 }, {
261 xtype: 'fset', 267 xtype: 'fset',
262 title: i18n.getMsg('probenintervall'), 268 title: i18n.getMsg('probenintervall'),
263 name: 'probenintervall', 269 name: 'probenintervall',
308 console.log('Populate Start'); 314 console.log('Populate Start');
309 //intervall is an identifier of a intervall 315 //intervall is an identifier of a intervall
310 // for instance H, M, J, ... 316 // for instance H, M, J, ...
311 // Initialize the probenintervallslider 317 // Initialize the probenintervallslider
312 var s = this.down('probenintervallslider'); 318 var s = this.down('probenintervallslider');
319 var i = this.getForm().findField('intervallOffset');
313 var v = this.getForm().findField('teilintervallVon'); 320 var v = this.getForm().findField('teilintervallVon');
314 var b = this.getForm().findField('teilintervallBis'); 321 var b = this.getForm().findField('teilintervallBis');
315 var intervallstore = Ext.data.StoreManager.get('Probenintervall'); 322 var intervallstore = Ext.data.StoreManager.get('Probenintervall');
316 323
317 var svalUpper = null 324 var svalUpper = null
364 s.setMinValue(min); 371 s.setMinValue(min);
365 s.setMaxValue(max); 372 s.setMaxValue(max);
366 373
367 v.setValue(svalLower); 374 v.setValue(svalLower);
368 b.setValue(svalUpper); 375 b.setValue(svalUpper);
376
377 //Set IntervallOffset
378 i.setMinValue(0);
379 i.setMaxValue(max-1);
369 380
370 console.log('Populate End'); 381 console.log('Populate End');
371 }, 382 },
372 383
373 setRecord: function(record) { 384 setRecord: function(record) {

http://lada.wald.intevation.org