Mercurial > lada > lada-client
comparison app/view/form/Probe.js @ 1107:9bcd17f7a0ae
change some fields in probeform to combobox
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Thu, 12 May 2016 16:03:04 +0200 |
parents | 096d552508cd |
children | 92c0fa2f29b0 |
comparison
equal
deleted
inserted
replaced
1106:ecce10cf32dc | 1107:9bcd17f7a0ae |
---|---|
12 Ext.define('Lada.view.form.Probe', { | 12 Ext.define('Lada.view.form.Probe', { |
13 extend: 'Ext.form.Panel', | 13 extend: 'Ext.form.Panel', |
14 alias: 'widget.probeform', | 14 alias: 'widget.probeform', |
15 requires: [ | 15 requires: [ |
16 'Lada.view.widget.Datenbasis', | 16 'Lada.view.widget.Datenbasis', |
17 'Lada.view.widget.DatensatzErzeuger', | |
18 'Lada.view.widget.Probenehmer', | |
19 'Lada.view.widget.MessprogrammLand', | |
17 'Lada.view.widget.base.CheckBox', | 20 'Lada.view.widget.base.CheckBox', |
18 'Lada.view.widget.MessstelleLabor', | 21 'Lada.view.widget.MessstelleLabor', |
19 'Lada.view.widget.Netzbetreiber', | 22 'Lada.view.widget.Netzbetreiber', |
20 'Lada.view.widget.Betriebsart', | 23 'Lada.view.widget.Betriebsart', |
21 'Lada.view.widget.Probenart', | 24 'Lada.view.widget.Probenart', |
183 align: 'stretch' | 186 align: 'stretch' |
184 }, | 187 }, |
185 border: 0, | 188 border: 0, |
186 width: '100%', | 189 width: '100%', |
187 items: [{ | 190 items: [{ |
188 xtype: 'numberfield', | 191 xtype: 'probenehmer', |
189 allowDecimals: false, | 192 allowDecimals: false, |
190 name: 'probeNehmerId', | 193 name: 'probeNehmerId', |
191 fieldLabel: 'Probennehmer', | 194 fieldLabel: 'Probennehmer', |
192 margin: '0, 5, 5, 5', | 195 margin: '0, 5, 5, 5', |
193 width: '50%', | 196 width: '50%', |
194 minValue: 0, | 197 minValue: 0, |
195 anchor: '100%', | 198 anchor: '100%', |
196 labelWidth: 95 | 199 labelWidth: 95 |
197 }, { | 200 }, { |
198 xtype: 'tfield', | 201 xtype: 'datensatzerzeuger', |
199 name: 'x11', | 202 name: 'erzeugerId', |
200 fieldLabel: 'Datensatzerzeuger', | 203 fieldLabel: 'Datensatzerzeuger', |
201 margin: '0, 5, 5, 5', | 204 margin: '0, 5, 5, 5', |
202 width: '50%', | 205 width: '50%', |
203 anchor: '100%', | 206 anchor: '100%', |
204 labelWidth: 110 | 207 labelWidth: 110 |
205 }] | 208 }] |
209 },{ | |
210 xtype: 'messprogrammland', | |
211 name: 'mplId', | |
212 fieldLabel: 'Messprogramm-Land', | |
213 margin: '0, 5, 5, 5', | |
214 width: '50%', | |
215 anchor: '100%', | |
216 labelWidth: 110 | |
206 }] | 217 }] |
207 }, { | 218 }, { |
208 // Zeit | 219 // Zeit |
209 xtype: 'fieldset', | 220 xtype: 'fieldset', |
210 title: 'Zeit', | 221 title: 'Zeit', |
465 this.down('cbox[name=datenbasisId]').clearWarningOrError(); | 476 this.down('cbox[name=datenbasisId]').clearWarningOrError(); |
466 this.down('cbox[name=baId]').clearWarningOrError(); | 477 this.down('cbox[name=baId]').clearWarningOrError(); |
467 this.down('chkbox[name=test]').clearWarningOrError(); | 478 this.down('chkbox[name=test]').clearWarningOrError(); |
468 this.down('cbox[name=probenartId]').clearWarningOrError(); | 479 this.down('cbox[name=probenartId]').clearWarningOrError(); |
469 this.down('cbox[name=netzbetreiberId]').clearWarningOrError(); | 480 this.down('cbox[name=netzbetreiberId]').clearWarningOrError(); |
470 this.down('tfield[name=x11]').clearWarningOrError(); | 481 this.down('cbox[name=erzeugerId]').clearWarningOrError(); |
471 this.down('cbox[name=umwId]').clearWarningOrError(); | 482 this.down('cbox[name=umwId]').clearWarningOrError(); |
472 this.down('datetime[name=probeentnahmeBeginn]').clearWarningOrError(); | 483 this.down('datetime[name=probeentnahmeBeginn]').clearWarningOrError(); |
473 this.down('datetime[name=probeentnahmeEnde]').clearWarningOrError(); | 484 this.down('datetime[name=probeentnahmeEnde]').clearWarningOrError(); |
474 this.down('fset[name=entnahmePeriod]').clearMessages(); | 485 this.down('fset[name=entnahmePeriod]').clearMessages(); |
475 this.down('fset[name=sollzeitPeriod]').clearMessages(); | 486 this.down('fset[name=sollzeitPeriod]').clearMessages(); |
480 this.down('tfield[name=hauptprobenNr]').setReadOnly(value); | 491 this.down('tfield[name=hauptprobenNr]').setReadOnly(value); |
481 this.down('cbox[name=datenbasisId]').setReadOnly(value); | 492 this.down('cbox[name=datenbasisId]').setReadOnly(value); |
482 this.down('cbox[name=baId]').setReadOnly(value); | 493 this.down('cbox[name=baId]').setReadOnly(value); |
483 this.down('chkbox[name=test]').setReadOnly(value); | 494 this.down('chkbox[name=test]').setReadOnly(value); |
484 this.down('cbox[name=probenartId]').setReadOnly(value); | 495 this.down('cbox[name=probenartId]').setReadOnly(value); |
485 this.down('tfield[name=x11]').setReadOnly(value); | 496 this.down('cbox[name=erzeugerId]').setReadOnly(value); |
486 this.down('cbox[name=umwId]').setReadOnly(value); | 497 this.down('cbox[name=umwId]').setReadOnly(value); |
487 this.down('datetime[name=probeentnahmeBeginn]').setReadOnly(value); | 498 this.down('datetime[name=probeentnahmeBeginn]').setReadOnly(value); |
488 this.down('datetime[name=probeentnahmeEnde]').setReadOnly(value); | 499 this.down('datetime[name=probeentnahmeEnde]').setReadOnly(value); |
489 this.down('numberfield[name=probeNehmerId]').setReadOnly(value); | 500 this.down('cbox[name=probeNehmerId]').setReadOnly(value); |
490 | 501 |
491 //Deskriptoren | 502 //Deskriptoren |
492 for (var i = 0; i < 12; i++) { | 503 for (var i = 0; i < 12; i++) { |
493 this.down('deskriptor[layer='+i+']').setReadOnly(value); | 504 this.down('deskriptor[layer='+i+']').setReadOnly(value); |
494 } | 505 } |