Mercurial > lada > lada-client
changeset 628:e3cdc36cbcae
merged
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Mon, 16 Mar 2015 12:40:06 +0100 |
parents | 6742ae5f35dc (diff) ee92e352be20 (current diff) |
children | c58663165090 |
files | |
diffstat | 5 files changed, 52 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/form/Probe.js Mon Mar 16 12:11:34 2015 +0100 +++ b/app/view/form/Probe.js Mon Mar 16 12:40:06 2015 +0100 @@ -95,6 +95,7 @@ border: 0, width: '50%', minWidth: 300, + margin: '0, 1, 0, 0', items: [{ xtype: 'fset', title: 'Erweiterte Angaben', @@ -105,43 +106,50 @@ editable: false, name: 'datenbasisId', fieldLabel: 'Datenbasis', - labelWidth: 100, + anchor: '100%', + labelWidth: 105, }, { xtype: 'betriebsart', name: 'baId', fieldLabel: 'Betriebsart', - labelWidth: 100, + anchor: '100%', + labelWidth: 105, }, { xtype: 'testdatensatz', name: 'test', fieldLabel: 'Testdatensatz', - labelWidth: 100, + anchor: '100%', + labelWidth: 105, allowBlank: false, }, { xtype: 'probenart', editable: false, name: 'probenartId', fieldLabel: 'Probenart', - labelWidth: 100, + anchor: '100%', + labelWidth: 105, allowBlank: false, }, { xtype: 'numberfield', allowDecimals: false, name: 'probeNehmerId', fieldLabel: 'Probennehmer', - labelWidth: 100, + anchor: '100%', + labelWidth: 105, }, { xtype: 'netzbetreiber', name: 'netzbetreiberId', editable: false, fieldLabel: 'Netzbetreiber', - labelWidth: 100, + anchor: '100%', + labelWidth: 105, allowBlank: false, }, { xtype: 'tfield', name: 'x11', fieldLabel: 'Datensatzerzeuger', - labelWidth: 100, + anchor: '100%', + labelWidth: 105, }] }] }]
--- a/app/view/grid/MKommentar.js Mon Mar 16 12:11:34 2015 +0100 +++ b/app/view/grid/MKommentar.js Mon Mar 16 12:40:06 2015 +0100 @@ -61,11 +61,13 @@ }, { header: 'Datum', dataIndex: 'datum', + xtype: 'datecolumn', + format: 'd.m.Y H:i', editor: { xtype: 'datefield', allowBlank: false, - format: 'd.m.Y', - maxValue: Ext.Date.format(new Date(), 'd.m.Y') + format: 'd.m.Y H:i', + maxValue: Ext.Date.format(new Date(), 'd.m.Y H:i') } }, { header: 'Text',
--- a/app/view/grid/Messung.js Mon Mar 16 12:11:34 2015 +0100 +++ b/app/view/grid/Messung.js Mon Mar 16 12:40:06 2015 +0100 @@ -65,14 +65,16 @@ }, { header: 'Messzeit', dataIndex: 'messzeitpunkt', + xtype: 'datecolumn', + format: 'd.m.Y H:i', flex: 2, editor: { xtype: 'datefield', allowBlank: false, - format: 'd.m.Y', + format: 'd.m.Y H:i', // minValue: '01.01.2001', //todo: gibt es das? // minText: 'Das Datum der Messung darf nicht vor dem 01.01.2001 liegen.', - maxValue: Ext.Date.format(new Date(), 'd.m.Y') + maxValue: Ext.Date.format(new Date(), 'd.m.Y H:i') } }, { header: 'Status',
--- a/app/view/grid/Messwert.js Mon Mar 16 12:11:34 2015 +0100 +++ b/app/view/grid/Messwert.js Mon Mar 16 12:40:06 2015 +0100 @@ -72,6 +72,7 @@ }, { header: 'Messwert', dataIndex: 'messwert', + xtype: 'numbercolumn', width: 80, editor: { xtype: 'numberfield', @@ -97,15 +98,18 @@ } }, { header: '<NWG', + xtype: 'numbercolumn', width: 60, dataIndex: 'messwertNwg' }, { header: 'Nachweisgrenze', + xtype: 'numbercolumn', width: 110, dataIndex: 'nwgZuMesswert' }, { header: 'Messfehler', dataIndex: 'messfehler', + xtype: 'numbercolumn', width: 80, editor: { xtype: 'numberfield',
--- a/app/view/grid/Probenzusatzwert.js Mon Mar 16 12:11:34 2015 +0100 +++ b/app/view/grid/Probenzusatzwert.js Mon Mar 16 12:40:06 2015 +0100 @@ -49,11 +49,11 @@ this.columns = [{ header: 'PZW-ID', dataIndex: 'id', - width: 70 + flex: 1, }, { header: 'PZW-Größe', dataIndex: 'pzsId', - flex: 1, + flex: 3, renderer: function(value) { if (!value || value === '') { return ''; @@ -72,21 +72,16 @@ }, { header: 'Messwert', dataIndex: 'messwertPzs', - width: 80, - renderer: function(value, meta, record) { - var nwg = record.get('nwgZuMesswert'); - if (value < nwg) { - return '<' + value; - } - return value; - }, + xtype: 'numbercolumn', + flex: 1, editor: { + xtype: 'numberfield', allowBlank: false } }, { header: 'Maßeinheit', dataIndex: 'pzsId', - width: 80, + flex: 1, renderer: function(value) { if (!value || value === '') { return ''; @@ -100,16 +95,34 @@ }, { header: 'Nachweisgrenze', dataIndex: 'nwgZuMesswert', - width: 110, + xtype: 'numbercolumn', + format: '0', + flex: 1, editor: { + xtype: 'numberfield', allowBlank: false } }, { header: 'rel. Unsich.[%]', dataIndex: 'messfehler', + xtype: 'numbercolumn', + format: '0', + flex: 1, editor: { + xtype: 'numberfield', allowBlank: false } + }, { + header: '< NWG', + flex: 1, + renderer: function(value, meta, record) { + var nwg = record.get('nwgZuMesswert'); + var mw = record.get('messwertPzs'); + if ( mw < nwg) { + return 'MW < NWG'; + } + return ''; + } }]; this.initData(); this.callParent(arguments);