日期:2014-05-16 浏览次数:20568 次
var obj={"homepath":'<%=path%>',"id":vo.id};
var baseTitle=new module.storeroommanager.js.baseTitle(obj);
var basePicture= Ext.getCmp('basePicture');
Ext.getCmp('help').hide();
basePicture.show();
if(Ext.getCmp('base')!=undefined){
basePicture.remove(Ext.getCmp('base'));
}
basePicture.add({
id:'base',
title : '库房架位基本信息',
tbar:[baseTitle.buttonUpdate,'-',baseTitle.buttonDelete],
html: "<iframe frameborder='0' width='100%' height='100%' src='baseList.jsp?id="+vo.id+"'></iframe>"
})
basePicture.activate(Ext.getCmp('base'));
this.buttonUpdate = new Ext.Button({
text:'保存',
iconCls : 'db-icn-btn-edit',
handler:function(){
if(_this.getForm().isValid()){
_this.getForm().submit({
url:cfg.homepath+"/storeroommanager/storageInfoAction@update.ces",
success:function(form,action){
Ext.showBox("提示",action.result.message);
if(_this.dlg){
_this.dlg.close();
}
},
failure:function(form,action){
Ext.showBox("提示",action.result.message);
if(_this.dlg){
_this.dlg.close();
}
}
});
}
}
});