var showInfo; var mDebug="1"; var turnPage = new turnPageClass(); var turnPage2 = new turnPageClass(); var tResourceName="certify.CerifyImportTakeBackInputSql"; //导入信息 function getin(){ fmload.ImportPath.value = ImportPath; if (fmload.FileName.value==null||fmload.FileName.value=="") { i18nAlert("请输入文件地址!", "LIS-05673"); return false; } var indexFirst = fmload.FileName.value.lastIndexOf("\\"); var indexLast = fmload.FileName.value.lastIndexOf(".xlsx"); if(indexFirst < 0 || indexLast < 0 || indexLast <= indexFirst) { i18nAlert("文件路径不合法或选择的文件格式不正确,请重新选择!", "LIS-03340"); 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 = "./CerifyImportTakeBackSave.jsp?ImportPath="+fmload.ImportPath.value;*/ fmload.action = "../API/certification/certify/CerifyImportTakeBackSave/UPLOAD"; /*fmload.submit(); //提交*/ ajaxSubmit2(document.getElementById("fmload"),afterSubmitDiskInput,true); } //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"); 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); showInfo.focus(); } } //单证状态查询 function certifyQuery() { if(verifyInput() == false) { return; } CardImportInfoGrid.clearData();//清除表格中所有数据 var tCom=fmload.dManageCom.value; /*var strSQL="select a.certifycode,(select certifyname from lmcertifydes where certifycode = a.certifycode)," +" a.startno, a.endno, a.sumcount, a.handler, a.operator, decode(a.state,'Y','成功','N','失败')," +" a.makedate, a.maketime,a.managecom " +" from LZCardImport a where 1 = 1 and a.operateflag='1'" + getWherePart('a.certifycode', 'CertifyCode') + getWherePart('a.State', 'State') + getWherePart('a.makedate', 'StartDate','>=') + getWherePart('a.makedate', 'EndDate','<='); strSQL = strSQL+" and a.managecom like '"+tCom+"%' " +" order by a.certifycode, a.startno, a.makedate, a.maketime" ;*/ var strSQL = wrapSql(tResourceName,"querysqldes2",[document.all('CertifyCode').value,document.all('State').value ,document.all('StartDate').value,document.all('EndDate').value,tCom],"certification"); // turnPage2.pageLineNum = 10; turnPage2.queryModal(strSQL, CardImportInfoGrid); //i18nAlert("查询到的记录行数:{0}", "LIS-05655", CardInfoGrid.mulLineCount); if(CardImportInfoGrid.mulLineCount==0) { i18nAlert("没有查询到任何单证信息!", "LIS-05197"); return false; } } //[打印]按钮函数 function certifyPrint() { //i18nAlert("查询到的记录行数:{0}", "LIS-05655", CardImportInfoGrid.mulLineCount); if(CardImportInfoGrid.mulLineCount==0) { i18nAlert("没有可以打印的数据!", "LIS-03219"); return false; } easyQueryPrint(2,'CardImportInfoGrid','turnPage2'); }