/*
*甘特图
*/
var screenWidth = screen.width; //屏幕宽度
var staWidth = screenWidth*0.98;
var screenHeight = screen.height; //屏幕高度
var staHeight = screenHeight*0.62;
var windowCenter;
function showGantChar(){
result = selectIids();
var iids = iidStr;
if("2" == result){
document.formgant.alliid.value=iidStr;
if(windowCenter&&!windowCenter.closed){
windowCenter.close();
}
var iWidth=1010; //弹出窗口的宽度;
var iHeight=550; //弹出窗口的高度;
var iTop = (window.screen.height-iHeight)/2; //获得窗口的垂直位置;
var iLeft = (window.screen.width-iWidth)/2; //获得窗口的水平位置;
var url = "PmFacadeServlet?actionType=experimentGantChart" ;//&iids="+iids;
windowCenter=window.open("about:blank","gantchar",'toolbar=no, menubar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes, width='+(screen.width*0.98)+ ', height=' + (screen.height*0.62)+ ',left=0,top=0');
var formurl=webRoot+"/PmFacadeServlet?actionType=experimentGantChart";
document.formgant.action = formurl;
document.formgant.target="gantchar";
document.formgant.submit();
}else{
// windowCenter.focus();
}
}
打开窗口 提交式传递参数
最新推荐文章于 2018-10-27 12:57:05 发布