Mercurial > lada > lada-client
comparison app/view/window/MessprogrammEdit.js @ 758:b2fcbdc4969d
Filled MessmethodenGrid with life.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 06 May 2015 16:24:23 +0200 |
parents | b8502964f5c3 |
children |
comparison
equal
deleted
inserted
replaced
757:b8502964f5c3 | 758:b2fcbdc4969d |
---|---|
73 layout: { | 73 layout: { |
74 type: 'hbox', | 74 type: 'hbox', |
75 }, | 75 }, |
76 items: [{ | 76 items: [{ |
77 xtype: 'messmethodengrid', | 77 xtype: 'messmethodengrid', |
78 flex: 1 | 78 //recordId: null, |
79 }, { | 79 recordId: this.record.get('id'), |
80 xtype: 'messmethodengrid', | |
81 flex: 1 | 80 flex: 1 |
82 }] | 81 }] |
83 }] | 82 }] |
84 }]; | 83 }]; |
85 this.callParent(arguments); | 84 this.callParent(arguments); |
98 console.log(record); | 97 console.log(record); |
99 }, | 98 }, |
100 success: function(record, response) { | 99 success: function(record, response) { |
101 this.down('messprogrammform').setRecord(record); | 100 this.down('messprogrammform').setRecord(record); |
102 this.record = record; | 101 this.record = record; |
103 owner = this.record.get('owner'); | |
104 | 102 |
105 // If this would be A probe, it would be always | 103 //this.down('messmethodengrid').recordId = record.get('id'); |
106 // allowed to add Messungen: | |
107 /* | |
108 if (owner) { | |
109 me.enableAddMessungen(); | |
110 } | |
111 */ | |
112 | |
113 var json = Ext.decode(response.response.responseText); | 104 var json = Ext.decode(response.response.responseText); |
114 if (json) { | 105 if (json) { |
115 this.setMessages(json.errors, json.warnings); | 106 this.setMessages(json.errors, json.warnings); |
116 } | 107 } |
117 // If the Messprogramm is ReadOnly, disable Inputfields and grids | 108 // If the Messprogramm is ReadOnly, disable Inputfields and grids |
135 this.down('fset[name=messungen]').down('messunggrid').setReadOnly(false); | 126 this.down('fset[name=messungen]').down('messunggrid').setReadOnly(false); |
136 }, | 127 }, |
137 */ | 128 */ |
138 | 129 |
139 disableChildren: function() { | 130 disableChildren: function() { |
140 // thera are no children.... | 131 // there are no children.... |
141 }, | 132 }, |
142 | 133 |
143 enableChildren: function() { | 134 enableChildren: function() { |
144 // there are no children.... | 135 // there are no children.... |
145 }, | 136 }, |