this.addBtn = new Ext.Button({
text : '新增对象',
iconCls : 'search',
scope : this,
handler: function() {
alert("111");
var url=__ctxPath + "/db5q/addchildren.jsp";
this.win = window.open (url, "低保户信息申请", "toolbar =yes, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no,alwaysRaised=yes") ;
} //点击按钮弹出窗口
});
openEditWindow:function(applyHid,iscity,operate){
var parentDivId = this.id;
if(this.win == null){
var url = __ctxPath+ '/pages/cityApplyPage/apindex.jsp?applyHid='+applyHid+'&operate='+operate+'&iscity='+iscity+'&parentDivId='+parentDivId;
this.win = window.open (url, "低保户信息申请", "toolbar =yes, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no,alwaysRaised=yes") ;
return;
}
if(this.win.closed == true){
var url = __ctxPath+ '/pages/cityApplyPage/apindex.jsp?applyHid='+applyHid+'&operate='+operate+'&iscity='+iscity+'&parentDivId='+parentDivId;
this.win = window.open (url, "低保户信息申请", "toolbar =yes, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no,alwaysRaised=yes") ;
return;
}
if(operate == 'edit'){
this.win.onbeforeunloadfunction();
this.win.getHomeInfo(applyHid);
this.win.focus();
}
if(operate == 'new'){
this.win.onbeforeunloadfunction();
this.win.initNewPage();
this.win.focus();
}
if(operate == 'see'){
this.win.onbeforeunloadfunction();
this.win.getHomeInfo(applyHid);
this.win.focus();
}
}