Mercurial > lada > lada-client
comparison app/view/grid/Messungen.js @ 579:50c05b1b085f
merged
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 10 Mar 2015 15:50:03 +0100 |
parents | 5af82dc8612d |
children | 4251601c6305 |
comparison
equal
deleted
inserted
replaced
578:bbe610be91cc | 579:50c05b1b085f |
---|---|
30 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { | 30 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { |
31 clicksToMoveEditor: 1, | 31 clicksToMoveEditor: 1, |
32 autoCancel: false, | 32 autoCancel: false, |
33 itemId: 'rowedit' | 33 itemId: 'rowedit' |
34 }); | 34 }); |
35 this.plugins = [rowEditing]; | |
36 this.dockedItems = [{ | 35 this.dockedItems = [{ |
37 xtype: 'toolbar', | 36 xtype: 'toolbar', |
38 dock: 'bottom', | 37 dock: 'bottom', |
39 items: ['->', { | 38 items: ['->', { |
40 text: 'Details', | |
41 icon: 'resources/img/document-open.png', | |
42 action: 'open', | |
43 disabled: true | |
44 }, { | |
45 text: 'Hinzufügen', | 39 text: 'Hinzufügen', |
46 icon: 'resources/img/list-add.png', | 40 icon: 'resources/img/list-add.png', |
47 action: 'add', | 41 action: 'add', |
48 probeId: this.probeId | 42 probeId: this.probeId |
49 }, { | 43 }, { |
54 }]; | 48 }]; |
55 this.columns = [{ | 49 this.columns = [{ |
56 header: 'Mess-ID', | 50 header: 'Mess-ID', |
57 dataIndex: 'id', | 51 dataIndex: 'id', |
58 flex: 1, | 52 flex: 1, |
59 editor: { | |
60 allowBlank: false | |
61 } | |
62 }, { | 53 }, { |
63 header: 'Nebenproben-Nr.', | 54 header: 'Nebenproben-Nr.', |
64 dataIndex: 'nebenprobenNr', | 55 dataIndex: 'nebenprobenNr', |
65 flex: 1, | 56 flex: 1, |
66 editor: { | |
67 allowBlank: false | |
68 } | |
69 }, { | 57 }, { |
70 header: 'MMT', | 58 header: 'MMT', |
71 dataIndex: 'mmtId', | 59 dataIndex: 'mmtId', |
72 flex: 1, | 60 flex: 1, |
73 editor: { | 61 editor: { |
75 } | 63 } |
76 }, { | 64 }, { |
77 header: 'Messzeit', | 65 header: 'Messzeit', |
78 dataIndex: 'messzeitpunkt', | 66 dataIndex: 'messzeitpunkt', |
79 flex: 2, | 67 flex: 2, |
80 editor: { | |
81 xtype: 'datefield', | |
82 allowBlank: false, | |
83 format: 'd.m.Y', | |
84 //minValue: '01.01.2001', //todo: gibt es das? | |
85 //minText: 'Das Datum der Messung darf nicht vor dem 01.01.2001 liegen.', | |
86 maxValue: Ext.Date.format(new Date(), 'd.m.Y') | |
87 } | |
88 }, { | 68 }, { |
89 header: 'Status', | 69 header: 'Status', |
90 flex: 1, | 70 flex: 1, |
91 dataIndex: 'id', | 71 dataIndex: 'id', |
92 renderer: function(value) { | 72 renderer: function(value) { |
170 this.mKommentareStore = Ext.create('Lada.store.MKommentare'); | 150 this.mKommentareStore = Ext.create('Lada.store.MKommentare'); |
171 | 151 |
172 this.store.load({ | 152 this.store.load({ |
173 params: { | 153 params: { |
174 probeId: this.recordId | 154 probeId: this.recordId |
155 }, | |
156 success: function(record, response){ | |
157 console.log(Ext.getClassName(response)); | |
175 } | 158 } |
176 }); | 159 }); |
177 } | 160 } |
178 }); | 161 }); |