var mDebug="1"; var mOperate=""; var showInfo; var turnPage = new turnPageClass(); //使用翻页功能,必须建立为全局变量 window.onfocus=myonfocus; //使得从该窗口弹出的窗口能够聚焦 function myonfocus() { if(showInfo!=null) { try { showInfo.focus(); } catch(ex) { showInfo=null; } } } function submitForm() { if(document.all('FeeSum').value=="") { i18nAlert("请输入交费总金额", "LIS-01855"); return ; } if(document.all('BankCode').value=="") { i18nAlert("请选择收款银行", "LIS-01856"); return ; } if(document.all('FileName').value=="") { i18nAlert("请选择需要上传的文件", "LIS-01857"); return ; } var i = 0; var ImportFile = document.all('FileName').value.toLowerCase(); //应客户要求增加对模板格式的限制,zy var j = ImportFile.indexOf(".xls"); if(j==-1) { i18nAlert("请采用excle模板", "LIS-01858"); return ; } document.all('conf').disable=true; /* var showStr=i18nMessage("正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面", "LIS-04525"); var urlStr="../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(showStr); 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();*/ fm.action = "../API/ind_finance/finfee/YBTFinfeeSureSave/UPLOAD1"; //document.getElementById("fm").submit(); //提交 //ajaxSubmit2(document.getElementById("fm")); ajaxSubmit2(document.getElementById("fm"),afterSubmit, true); // showInfo.close(); } //提交后操作,服务器数据返回后执行的操作 function afterSubmit( FlagStr, content,result ) { // 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"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=350; //弹出窗口的高度; 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(); } 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=350; //弹出窗口的高度; 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); } }