var fp = new Ext.FormPanel({
title: '设置灌溉状态',
id:'formPanel',
frame: true,
labelWidth: 55,
width: 200,
renderTo:'form-ct',
bodyStyle: 'padding:0 10px 0;',
items: [
ind
],
buttons: [{
text: '保存',
handler: function(){
if(fp.getForm().isValid()){
Ext.Ajax.request({
url: 'fm_save.jsp',
method: 'POST',
params: {fmbh:fmbh,sbbh:sbbh,kzqbh:kzqbh,ggzt:ggzt,kzqid:kzqid,gqbh:gqbh,fmid:fmid},
//timeout: 600,
scope: this,
success:function(d,p){
var data = eval("(" +d.responseText +")");
if(data.success){
Ext.Msg.alert("提示","数据保存成功!");
}else{
Ext.Msg.alert("提示","数据保存失败!");
}
},
failure: function(resp,opts) {
var respText = Ext.util.JSON.decode(resp.responseText);
Ext.Msg.alert("error",respText.error);
}
})
}
}
},{
text:'重置',
listeners:{
'click':function(){
Ext.getCmp("sdkz").body.update(defaultPur); //修改id为sdkz组件的htmk属性,这种方式 Ext.getCmp("sdkz").html =?能获取到值,无法修改
}
}
}
]
});