风言枫语  

主要是这句话 var _win = new top.Ext.Window({});即可完成需要功能

var _win = new top.Ext.Window({
          title: '从业人员健康检查表',
             id:'closewin',
          height: Ext.getBody().getHeight()-50,
          width: Ext.getBody().getWidth()-300,
          maximizable:true,
          closable:true,
          modal:true,  //设置遮罩即只能操作最上层
          draggable:true,
          layout: 'fit',
    //      closeAction:"hide",
    
          listeners:{
           "close":function(){
            //alert("text///");
            /*Ext.Ajax.request({
             url:"queryhealthcard!verifyCheckBox.action",
             params:{
                 dataSourceId: dataSourceId
                   },
                   success: function(response){
                     var text = response.responseText
                     var jsonobj=eval('('+text+')');
                   if(jsonobj.permission == 'allow'){
                    document.getElementById(id).disabled=false;
                   }else{
                    document.getElementById(id).disabled = true;
                   }
                   }
            });*/
        
            flashrow(id,row,tdcol);
           }
          },
          html:'<iframe id="openwin" name="b" frameborder="no" height="100%" width="100%" marginheight="0" marginwidth="0" scrolling="auto"  src="healthDisease!findWorkInfo.action?dataSourceId='+dataSourceId+'"></iframe>' 
      });
   _win.show();

 

posted on 2013-10-31 22:04  风言枫语  阅读(332)  评论(0编辑  收藏  举报