comparison app/view/window/MessungEdit.js @ 616:dfc07fa0ceb1

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 13 Mar 2015 16:29:02 +0100
parents f959205ab173
children 71e8b84d7829
comparison
equal deleted inserted replaced
615:3d33c65319f3 616:dfc07fa0ceb1
46 this.items = [{ 46 this.items = [{
47 border: 0, 47 border: 0,
48 autoScroll: true, 48 autoScroll: true,
49 items: [{ 49 items: [{
50 xtype: 'messungform', 50 xtype: 'messungform',
51 margin: 5,
51 recordId: this.record.get('id') 52 recordId: this.record.get('id')
52 }, { 53 }, {
53 xtype: 'fset', 54 xtype: 'fset',
54 name: 'messwerte', 55 name: 'messwerte',
55 title: 'Messwerte', 56 title: 'Messwerte',
56 padding: '5, 5', 57 padding: '5, 5',
57 margin: 5, 58 margin: 5,
84 this.callParent(arguments); 85 this.callParent(arguments);
85 }, 86 },
86 87
87 initData: function() { 88 initData: function() {
88 this.clearMessages(); 89 this.clearMessages();
90 this.down('messungform').setRecord(this.record);
89 Ext.ClassManager.get('Lada.model.Messung').load(this.record.get('id'), { 91 Ext.ClassManager.get('Lada.model.Messung').load(this.record.get('id'), {
90 failure: function(record) { 92 failure: function(record) {
91 // TODO 93 // TODO
92 console.log(record); 94 console.log(record);
93 }, 95 },
97 if (json) { 99 if (json) {
98 this.setMessages(json.errors, json.warnings); 100 this.setMessages(json.errors, json.warnings);
99 } 101 }
100 }, 102 },
101 scope: this 103 scope: this
102 } 104 });
103 );
104 }, 105 },
105 106
106 setMessages: function(errors, warnings) { 107 setMessages: function(errors, warnings) {
107 //todo this is a stub 108 //todo this is a stub
108 }, 109 },

http://lada.wald.intevation.org