/*************************************************************** *

ProName:FinAccountBalanceInput.js

*

Title:往来业务

*

Description:往来业务

*

Copyright:Copyright (c) 2012

*

Company:Sinosoft

* @author : 杨治纲 * @version : 8.0 * @date : 2012-01-01 ****************************************************************/ var showInfo; var turnPage = new turnPageClass(); var turnPage1 = new turnPageClass(); var mOperate = "";//操作状态 var tSQLInfo = new SqlClass(); /** * 提交数据后返回操作 */ function afterSubmit(FlagStr, content, tFilePath, tFileName) { if (typeof(showInfo)=="object" && typeof(showInfo)!="unknown") { showInfo.close(); } while (content.indexOf('[')!=-1){ content=content.replace('[',''); content=content.replace(']',''); } 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: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(); } else { var urlStr = "../common/jsp/MessagePage.jsp?picture=S&content="+ encodeURIComponent(content); //showModalDialog(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(); if (mOperate=="download") { // window.location = "../API/grp_common/jsp/download/DOWNLOAD?FilePath="+tFilePath+"&FileName="+tFileName downloadFile(tFilePath,tFileName,"../API/grp_common/jsp/download/DOWNLOAD"); } } } /** * 查询会计分录信息 */ function queryData() { if (!verifyInput2()) { return false; } var tStartDate = fm.StartDate.value; var tEndDate = fm.EndDate.value; var tFinCode = document.all('FinCode').value; tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_account"); tSQLInfo.setResourceName("g_account.FinCurrentBusinessSql"); tSQLInfo.setSqlId("FinCurrentBusiness1"); tSQLInfo.addSubPara(tStartDate); tSQLInfo.addSubPara(tEndDate); tSQLInfo.addSubPara(tFinCode); turnPage1.queryModal(tSQLInfo.getString(), FinExtractGrid, 1); if (!turnPage1.strQueryResult) { i18nAlert("没有查询到数据!", "LIS-02444"); return false; } } //数据导出 function exportData() { if (!i18nConfirm("确认要导出数据?", "LIS-00694")) { return false; } if (!verifyInput2()) { return false; } var tStartDate = fm.StartDate.value; var tEndDate = fm.EndDate.value; var tFinCode = document.all('FinCode').value; //报表标题 var tTitle = ""; tTitle = "业务号^|保单号^|出账日期^|科目代码^|科目描述^|金额"; fm.Title.value = tTitle; //报表提数SQL tSQLInfo = new SqlClass(); tSQLInfo.setModule("g_account"); tSQLInfo.setResourceName("g_account.FinCurrentBusinessSql"); tSQLInfo.setSqlId("FinCurrentBusiness1"); tSQLInfo.addSubPara(tStartDate); tSQLInfo.addSubPara(tEndDate); tSQLInfo.addSubPara(tFinCode); var tQuerySQL = tSQLInfo.getString(); fm.action = "../API/grp_common/jsp/QueryDataExport/EXPORT"; ajaxSubmit2(document.getElementById("fm"), null, null, true,tTitle, tQuerySQL); } function resultAfterSubmit(FlagStr,Content,result) { afterSubmit(FlagStr, Content, result.tFilePath, result.tFileName); }