comparison app/controller/grid/Status.js @ 1062:0497693d5b74

Show statusStufe in messunggrid.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 09 Mar 2016 16:15:23 +0100
parents 8e579acfe0b1
children 90ae675a1224
comparison
equal deleted inserted replaced
1061:4db4902d11c8 1062:0497693d5b74
119 //If possible copy the previous record into the new one. 119 //If possible copy the previous record into the new one.
120 //this assumes the store is ordered correctly, most recent status last. 120 //this assumes the store is ordered correctly, most recent status last.
121 // Do not copy, if current userid differs from the id of the current status 121 // Do not copy, if current userid differs from the id of the current status
122 if (lastrow > 0 && 122 if (lastrow > 0 &&
123 Ext.Array.contains(Lada.mst, recentStatus.get('erzeuger'))) { 123 Ext.Array.contains(Lada.mst, recentStatus.get('erzeuger'))) {
124
125 if (recentStatus) { 124 if (recentStatus) {
126 // clone the status 125 // clone the status
127 var record = recentStatus.copy() 126 var record = recentStatus.copy()
128 } 127 }
129 128
205 i18n.getMsg('err.msg.generic.body')); 204 i18n.getMsg('err.msg.generic.body'));
206 } 205 }
207 } 206 }
208 } 207 }
209 208
210 button.up('window').initData(); 209 var win = button.up('window');
210 win.initData();
211 button.up('grid').initData(); 211 button.up('grid').initData();
212 try {
213 win.parentWindow.initData();
214 win.parentWindow.down('messunggrid').store.reload();
215 }
216 catch(e) {
217 }
212 }, 218 },
213 failure: function(response) { 219 failure: function(response) {
214 // TODO sophisticated error handling, with understandable Texts 220 // TODO sophisticated error handling, with understandable Texts
215 var i18n = Lada.getApplication().bundle;
216 var json = Ext.JSON.decode(response.responseText); 221 var json = Ext.JSON.decode(response.responseText);
217 if (json) { 222 if (json) {
218 if(json.message){ 223 if(json.message){
219 Ext.Msg.alert(i18n.getMsg('err.msg.generic.title') 224 Ext.Msg.alert(i18n.getMsg('err.msg.generic.title')
220 +' #'+json.message, 225 +' #'+json.message,

http://lada.wald.intevation.org