var showInfo; var mDebug="1"; var turnPage = new turnPageClass(); var turnPage2 = new turnPageClass(); //jinsh------导入的执行完后调这个-------2007-07-02 function afterSubmitDiskInput( FlagStr,content ) { showInfo.close(); /* if (FlagStr == "Fail" ) { var urlStr="../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(content); showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:350px"); } else { */ var urlStr="../common/jsp/MessagePage.jsp?picture=S&content=" + encodeURIComponent(content); //showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:350px"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=250; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); showInfo.focus(); //} } //显示frmSubmit框架,用来调试 function showSubmitFrame(cDebug) { if(cDebug=="1") { parent.fraMain.rows = "0,0,0,0,*"; } else { parent.fraMain.rows = "0,0,0,0,*"; } } //显示div,第一个参数为一个div的引用,第二个参数为是否显示,如果为"true"则显示,否则不显示 function showDiv(cDiv,cShow) { if (cShow=="true") { cDiv.style.display=""; } else { cDiv.style.display="none"; } } //导入出险人信息 function getin() { fmload.all('ImportPath').value = ImportPath; if (fmload.all('FileName').value==null||fmload.all('FileName').value=="") { i18nAlert("请输入文件地址!", "LIS-05673"); return false; } if (!checkUpFile(fmload.all('FileName').value)) { return false; } if (fmload.all('CertifyState').value==null||fmload.all('CertifyState').value=="") { i18nAlert("请选择单证状态!", "LIS-05674"); return false; } var showStr = i18nMessage("正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面", "LIS-04525"); var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(showStr); //showInfo = window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=250; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); showInfo.focus(); fmload.action = encodeURI("../API/certification/certify/CerifyBatchGetSave/UPLOAD?&CertifyState="+document.all('CertifyState').value); //alert(fmload.action); //fmload.submit(); //提交 ajaxSubmit2(document.getElementById("fmload"), afterSubmitDiskInput, true); } function checkUpFile(cFileName) { if (cFileName == "" || cFileName == null) { i18nAlert("请选择要上传的文件!", "LIS-05576"); return false; } //检查文件类型是否符合 var tFilePath = cFileName; var tFileName = tFilePath.substring(tFilePath.lastIndexOf("\\") + 1); var tFileSuffix = tFilePath.substring(tFilePath.lastIndexOf(".")); if (tFileSuffix == ".doc" || tFileSuffix == ".DOC" || tFileSuffix == ".docx" || tFileSuffix == ".DOCX" || tFileSuffix == ".txt" || tFileSuffix == ".TXT" || tFileSuffix == ".xls" || tFileSuffix == ".XLS" || tFileSuffix == ".xlsx" || tFileSuffix == ".XLSX" || tFileSuffix == ".pdf" || tFileSuffix == ".PDF" || tFileSuffix == ".zip" || tFileSuffix == ".ZIP" || tFileSuffix == ".rar" || tFileSuffix == ".RAR") { } else { i18nAlert("不支持此文件类型上传!", "LIS-04691"); return false; } return true; } function certifyPrint() { if (document.all('StartDate').value==null||document.all('StartDate').value=="") { i18nAlert("请输入统计开始时间!", "LIS-05675"); return false; } if (document.all('EndDate').value==null||document.all('EndDate').value=="") { i18nAlert("请输入统计结束时间!", "LIS-05676"); return false; } var showStr=i18nMessage("正在查询数据,请您稍候并且不要修改屏幕上的值或链接其他页面", "LIS-04528"); var urlStr="../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(showStr); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=250; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); showInfo.focus(); // fmload.action = './CertifyPrint.jsp'; fm.target="f1print"; showInfo.close(); /*document.getElementById("fm").submit();*/ downloadSubmit(fm,fm.action); }