36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
<%@ 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"%> |