level 1
无聊MIA汤圆
楼主
function laqxiangx() {
Ext.onReady(function(){
var store = new Ext.data.JsonStore({// 数据解释器
root:*datalist*,
totalProperty : *totalCount*,
autoLoad:true,
fields : [*id*,*yhzh*,*yhxm*,*sj*],
proxy : new Ext.data.HttpProxy({
url : *dbba!findlig.action*
}),
listeners : {
*beforeload* : function() {
Ext.apply(this.baseParams, {
*ad.adsex* : val(*sex*),
*ad.adzy* : val(*zy*),
*ad.adnld* : val(*nld*),
*ad.adgxly* : val(*GXLY*),
*ad.adche* : val(*che*),
*ad.ademap* : Ext.getCmp("emap_id").getValue()
})
},
*exception* : function(DataProxy, type, action, options, response,arg) {
var obj = Ext.util.JSON.decode(response.responseText);
MsgTip.msg("查询失败", obj.msg);
},
*load* : function(store) {
if (store.getCount() == 0) {
MsgTip.msg.alert("提示", "没有查询到数据!", true);
}else{
Msg.msg.alert("提示","有数据");
}
}
}
});
});
}
2014年11月06日 03点11分
1
Ext.onReady(function(){
var store = new Ext.data.JsonStore({// 数据解释器
root:*datalist*,
totalProperty : *totalCount*,
autoLoad:true,
fields : [*id*,*yhzh*,*yhxm*,*sj*],
proxy : new Ext.data.HttpProxy({
url : *dbba!findlig.action*
}),
listeners : {
*beforeload* : function() {
Ext.apply(this.baseParams, {
*ad.adsex* : val(*sex*),
*ad.adzy* : val(*zy*),
*ad.adnld* : val(*nld*),
*ad.adgxly* : val(*GXLY*),
*ad.adche* : val(*che*),
*ad.ademap* : Ext.getCmp("emap_id").getValue()
})
},
*exception* : function(DataProxy, type, action, options, response,arg) {
var obj = Ext.util.JSON.decode(response.responseText);
MsgTip.msg("查询失败", obj.msg);
},
*load* : function(store) {
if (store.getCount() == 0) {
MsgTip.msg.alert("提示", "没有查询到数据!", true);
}else{
Msg.msg.alert("提示","有数据");
}
}
}
});
});
}