[Lada-commits] [PATCH] complete some comboboxes in probe form and messprogramm form
Wald Commits
scm-commit at wald.intevation.org
Thu May 19 14:56:54 CEST 2016
# HG changeset patch
# User Michael Stanko <mstanko at bfs.de>
# Date 1463662603 -7200
# Node ID 92c0fa2f29b0b52baa6b93937d7367628c04b534
# Parent 6866be10e40cbb6c86d6d290573d305b296f3480
complete some comboboxes in probe form and messprogramm form
diff -r 6866be10e40c -r 92c0fa2f29b0 app.js
--- a/app.js Wed May 18 18:22:33 2016 +0200
+++ b/app.js Thu May 19 14:56:43 2016 +0200
@@ -165,19 +165,17 @@
if (!itemLabor) {
continue;
}
- if ( item.get('messStelle') === itemLabor.get('messStelle') ) {
- displayCombi = item.get('messStelle');
- } else {
- displayCombi = item.get('messStelle') + '/' + itemLabor.get('messStelle')
- }
+ if ( item.get('messStelle') === itemLabor.get('messStelle') ) {
+ displayCombi = item.get('messStelle');
+ } else {
+ displayCombi = item.get('messStelle') + '/' + itemLabor.get('messStelle')
+ }
mstLaborStore.add({
id: i,
messStelle: mstLabor[i].messstelle,
netzbetreiberId: item.get('netzbetreiberId'),
laborMst: mstLabor[i].labor,
- displayCombi: displayCombi
- /*displayCombi: item.get('messStelle') +
- '/' + itemLabor.get('messStelle')*/
+ displayCombi: displayCombi
});
}
}
@@ -211,13 +209,15 @@
});
Ext.create('Lada.store.Probenehmer', {
storeId: 'probenehmer',
- autoLoad: true
+ autoLoad: true
});
Ext.create('Lada.store.DatensatzErzeuger', {
- storeId: 'datensatzerzeuger'
+ storeId: 'datensatzerzeuger',
+ autoLoad: true
});
Ext.create('Lada.store.MessprogrammKategorie', {
- storeId: 'messprogrammkategorie'
+ storeId: 'messprogrammkategorie',
+ autoLoad: true
});
Ext.create('Lada.store.StatusWerte', {
storeId: 'statuswerte',
diff -r 6866be10e40c -r 92c0fa2f29b0 app/view/form/Messprogramm.js
--- a/app/view/form/Messprogramm.js Wed May 18 18:22:33 2016 +0200
+++ b/app/view/form/Messprogramm.js Thu May 19 14:56:43 2016 +0200
@@ -374,13 +374,14 @@
columnWidth: '0.25'
}]
}, {
- xtype: 'numberfield',
- allowDecimals: false,
+ xtype: 'probenehmer',
name: 'probeNehmerId',
fieldLabel: i18n.getMsg('probeNehmerId'),
+ margin: '0, 5, 5, 5',
width: '100%',
+ minValue: 0,
anchor: '100%',
- labelWidth: 105
+ labelWidth: 95
}, {
xtype: 'textarea',
name: 'probeKommentar',
diff -r 6866be10e40c -r 92c0fa2f29b0 app/view/form/Probe.js
--- a/app/view/form/Probe.js Wed May 18 18:22:33 2016 +0200
+++ b/app/view/form/Probe.js Thu May 19 14:56:43 2016 +0200
@@ -189,7 +189,6 @@
width: '100%',
items: [{
xtype: 'probenehmer',
- allowDecimals: false,
name: 'probeNehmerId',
fieldLabel: 'Probennehmer',
margin: '0, 5, 5, 5',
@@ -211,7 +210,7 @@
name: 'mplId',
fieldLabel: 'Messprogramm-Land',
margin: '0, 5, 5, 5',
- width: '50%',
+ width: '100%',
anchor: '100%',
labelWidth: 110
}]
@@ -498,6 +497,7 @@
this.down('datetime[name=probeentnahmeBeginn]').setReadOnly(value);
this.down('datetime[name=probeentnahmeEnde]').setReadOnly(value);
this.down('cbox[name=probeNehmerId]').setReadOnly(value);
+ this.down('cbox[name=mplId]').setReadOnly(value);
//Deskriptoren
for (var i = 0; i < 12; i++) {
diff -r 6866be10e40c -r 92c0fa2f29b0 app/view/widget/DatensatzErzeuger.js
--- a/app/view/widget/DatensatzErzeuger.js Wed May 18 18:22:33 2016 +0200
+++ b/app/view/widget/DatensatzErzeuger.js Thu May 19 14:56:43 2016 +0200
@@ -15,6 +15,7 @@
store: 'datensatzerzeuger',
displayField: 'id',
valueField: 'id',
+ emptyText: 'Wählen Sie einen Datensatzerzeuger',
editable: this.editable || false,
forceSelection: true,
// Enable filtering of comboboxes
@@ -25,15 +26,15 @@
minChars: 0,
tpl: Ext.create("Ext.XTemplate",
'<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' +
- '{id} - {datensatzErzeuger}</div></tpl>'),
+ '{daErzeugerId} - {bezeichnung}</div></tpl>'),
displayTpl: Ext.create('Ext.XTemplate',
- '<tpl for=".">{id} - {datensatzErzeuger}</tpl>'),
+ '<tpl for=".">{daErzeugerId} - {bezeichnung}</tpl>'),
initComponent: function() {
var i18n = Lada.getApplication().bundle;
this.emptyText = i18n.getMsg('emptytext.datensatzerzeuger');
- this.store = Ext.data.StoreManager.get('datensatz_erzeuger');
+ this.store = Ext.data.StoreManager.get('datensatzerzeuger');
if (!this.store) {
this.store = Ext.create('Lada.store.DatensatzErzeuger');
}
diff -r 6866be10e40c -r 92c0fa2f29b0 app/view/widget/MessprogrammLand.js
--- a/app/view/widget/MessprogrammLand.js Wed May 18 18:22:33 2016 +0200
+++ b/app/view/widget/MessprogrammLand.js Thu May 19 14:56:43 2016 +0200
@@ -13,15 +13,22 @@
extend: 'Lada.view.widget.base.ComboBox',
alias: 'widget.messprogrammland',
store: 'messprogrammkategorie',
- displayField: 'display',
+ displayField: 'id',
valueField: 'id',
- emptyText: 'Wählen Sie eine Landesmessprogramm',
+ emptyText: 'Wählen Sie ein Landesmessprogramm',
+ editable: this.editable || false,
+ forceSelection: true,
// Enable filtering of comboboxes
+ autoSelect: false,
queryMode: 'local',
triggerAction: 'all',
- typeAhead: true,
+ typeAhead: false,
minChars: 0,
- layout: 'hbox',
+ tpl: Ext.create("Ext.XTemplate",
+ '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' +
+ '{mplId} - {bezeichnung}</div></tpl>'),
+ displayTpl: Ext.create('Ext.XTemplate',
+ '<tpl for=".">{mplId} - {bezeichnung}</tpl>'),
initComponent: function() {
this.store = Ext.data.StoreManager.get('messprogrammkategorie');
diff -r 6866be10e40c -r 92c0fa2f29b0 app/view/widget/Probenehmer.js
--- a/app/view/widget/Probenehmer.js Wed May 18 18:22:33 2016 +0200
+++ b/app/view/widget/Probenehmer.js Thu May 19 14:56:43 2016 +0200
@@ -15,6 +15,7 @@
store: 'Probenehmer',
displayField: 'id',
valueField: 'id',
+ emptyText: 'Wählen Sie einen Probenehmer',
editable: this.editable || false,
forceSelection: true,
// Enable filtering of comboboxes
@@ -25,9 +26,9 @@
minChars: 0,
tpl: Ext.create("Ext.XTemplate",
'<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' +
- '{id} - {probeNehmer}</div></tpl>'),
+ '{prnId} - {kurzBezeichnung}</div></tpl>'),
displayTpl: Ext.create('Ext.XTemplate',
- '<tpl for=".">{id} - {probeNehmer}</tpl>'),
+ '<tpl for=".">{kurzBezeichnung}</tpl>'),
initComponent: function() {
var i18n = Lada.getApplication().bundle;
More information about the Lada-commits
mailing list