comparison app/view/window/MessungEdit.js @ 611:8a156a7fbe67

added a controller for messungforms, modified testdatensatz-widget to load a local store, removed dirtychange listeners from probe-form
author Dustin Demuth <dustin@intevation.de>
date Fri, 13 Mar 2015 15:11:12 +0100
parents d2ce1c4c3aad
children f959205ab173
comparison
equal deleted inserted replaced
610:f240fe19ff5d 611:8a156a7fbe67
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,
58 items: [{ 59 items: [{
59 xtype: 'messwertgrid', 60 xtype: 'messwertgrid',
60 recordId: this.record.get('id') 61 recordId: this.record.get('id')
61 }] 62 }]*/
62 }, { 63 }, {
63 xtype: 'fset', 64 xtype: 'fset',
64 name: 'messungstatus', 65 name: 'messungstatus',
65 title: 'Status', 66 title: 'Status',
66 padding: '5, 5', 67 padding: '5, 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