Mercurial > lada > lada-client
changeset 943:0a233865a9c3
PKommentar an MKommentar grid modified
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Wed, 14 Oct 2015 11:40:25 +0200 |
parents | f2001df0e494 |
children | 1f1467713c3f |
files | app/controller/grid/MKommentar.js app/controller/grid/PKommentar.js app/view/grid/MKommentar.js app/view/grid/PKommentar.js app/view/window/ProbeEdit.js |
diffstat | 5 files changed, 17 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controller/grid/MKommentar.js Fri Oct 02 14:58:59 2015 +0200 +++ b/app/controller/grid/MKommentar.js Wed Oct 14 11:40:25 2015 +0200 @@ -40,7 +40,8 @@ * On failure it displays a message */ gridSave: function(editor, context) { - context.record.save({ + context.record.set('datum', new Date()); + context.record.save({ success: function(record, response) { context.grid.initData(); context.grid.up('window').initData();
--- a/app/controller/grid/PKommentar.js Fri Oct 02 14:58:59 2015 +0200 +++ b/app/controller/grid/PKommentar.js Wed Oct 14 11:40:25 2015 +0200 @@ -38,6 +38,7 @@ * On failure it displays a message */ gridSave: function(editor, context) { + context.record.set('datum', new Date()); context.record.save({ success: function() { context.grid.store.reload();
--- a/app/view/grid/MKommentar.js Fri Oct 02 14:58:59 2015 +0200 +++ b/app/view/grid/MKommentar.js Wed Oct 14 11:40:25 2015 +0200 @@ -59,6 +59,12 @@ }] }]; this.columns = [{ + header: 'erstellt', + dataIndex: 'datum', + xtype: 'datecolumn', + format: 'd.m.Y H:i', + width: 110, + }, { header: 'Erzeuger', dataIndex: 'erzeuger', renderer: function(value) { @@ -77,17 +83,6 @@ editable: false } }, { - header: 'Datum', - dataIndex: 'datum', - xtype: 'datecolumn', - format: 'd.m.Y', - editor: { - xtype: 'datefield', - allowBlank: false, - format: 'd.m.Y', - maxValue: Ext.Date.format(new Date(), 'd.m.Y') - } - }, { header: 'Text', dataIndex: 'text', flex: 1,
--- a/app/view/grid/PKommentar.js Fri Oct 02 14:58:59 2015 +0200 +++ b/app/view/grid/PKommentar.js Wed Oct 14 11:40:25 2015 +0200 @@ -65,6 +65,12 @@ }] }]; this.columns = [{ + header: 'erstellt', + dataIndex: 'datum', + xtype: 'datecolumn', + format: 'd.m.Y H:i', + width: 110, + }, { header: 'Erzeuger', dataIndex: 'erzeuger', width: 140, @@ -84,15 +90,6 @@ allowBlank: false } }, { - header: 'Datum', - dataIndex: 'datum', - editor: { - xtype: 'datefield', - allowBlank: false, - format: 'd.m.Y', - maxValue: Ext.Date.format(new Date(), 'd.m.Y') - } - }, { header: 'Text', dataIndex: 'text', flex: 1,
--- a/app/view/window/ProbeEdit.js Fri Oct 02 14:58:59 2015 +0200 +++ b/app/view/window/ProbeEdit.js Wed Oct 14 11:40:25 2015 +0200 @@ -97,7 +97,7 @@ padding: '5, 5', margin: 5, collapsible: true, - collapsed: true, + collapsed: false, items: [{ xtype: 'probenzusatzwertgrid', recordId: this.record.get('id') @@ -109,7 +109,7 @@ padding: '5, 5', margin: 5, collapsible: true, - collapsed: true, + collapsed: false, items: [{ xtype: 'pkommentargrid', recordId: this.record.get('id')