2018-06-03 22:26:41 +08:00

36 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%><%@
include file="/IncludeBeginMD.jsp"%><%
/*
Content: 查看生成的调查报告文件
Input Param:
DocID: formatdoc_catalog中的文档类别调查报告贷后检查报告...)
ObjectNo业务流水号
*/
//获得组件参数
String sDocID = CurPage.getParameter("DocID"); //调查报告文档类别
String sObjectNo = CurPage.getParameter("ObjectNo"); //业务流水号
String sObjectType = CurPage.getParameter("ObjectType"); //对象类型
String sFlag = "";
ASResultSet rs = null;
String sSql1="",sFileName="";
// 获取文档存储路径方式
sSql1=" select SerialNo,SavePath from FORMATDOC_RECORD where ObjectType='"+sObjectType+"' and ObjectNo='"+sObjectNo+
"' and DocID='"+sDocID+"'";
rs = Sqlca.getASResultSet(sSql1);
if(rs.next()){
sFileName = rs.getString("SavePath");
}
rs.getStatement().close();
if(sFileName==null) sFileName="";
java.io.File file = new java.io.File(sFileName);
if(file.exists()) sFlag = "1";
else sFlag = "2";
%>
<script type="text/javascript">
self.returnValue="<%=sFlag%>";
self.close();
</script>
<%@ include file="/IncludeEnd.jsp"%>