日期:2014-05-16 浏览次数:20628 次
?
Ext.Ajax.request( { url : bid.webContextRoot + '/gcqztbryqs.do?method=updateRecord', method : 'POST', params : { qbid : bid.gcsg.gcsgzb.qztbrqdqbjs.yqsqb.qbid, zt:zt }, success : function(response) { alert("success"); var data = response.responseText; var obj = Ext.decode(data); var text = obj.updateStatus; alert(text); bid.gcsg.gcsgzb.qztbrqdqbjs.dbqbxx.readOnly(); bid.gcsg.gcsgzb.qztbrqdqbjs.dbqbxx.zbwjnrFormPanel.find("name", "zt")[0].setValue( bid.getNameByCode(zt, bid.gcsg.gcsgzb.qztbrqdqbjs.ztArray)); bid.gcsg.gcsgzb.qztbrqdqbjs.yqsqb.qbzt = zt; var toolBar = bid.gcsg.gcsgzb.qztbrqdqbjs.dbqbxx.zbwjnrFormPanel.getTopToolbar(); toolBar.items.items[0].hide();//保存 toolBar.items.items[1].hide();//生效 toolBar.items.items[2].hide();//下发 bid.showMomentInforDlg("操作成功!"); }, failure : function(response) { bid.showMomentInforDlg("操作失败!"); } });
?
?
上面是JS代码,
?
response.getWriter().write("{success:true,updateStatus:'success'}");
?上面是java后台代码!