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

36 lines
1.2 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBegin.jsp"%>
<html>
<body>
<iframe name="MyAtt" src="<%=com.amarsoft.awe.util.Escape.getBlankJsp(sWebRootPath,"ÕýÔÚÏÂÔØ¸½¼þ£¬ÇëÉÔºò...")%>" width=100% height=100% frameborder=0 hspace=0 vspace=0 marginwidth=0 marginheight=0 scrolling="no"> </iframe>
</body>
</html>
<%
String sEDocNo = CurPage.getParameter("EDocNo");
String sEDocType = CurPage.getParameter("EDocType");
String sFullPath = "",sContentType = "";
BizObject bo = JBOFactory.createBizObjectQuery("jbo.edoc.EDOC_DEFINE", "EDocNo=:EDocNo").setParameter("EDocNo", sEDocNo).getSingleResult(false);
if(bo != null){
sFullPath = bo.getAttribute("FullPath"+sEDocType).getString();
sContentType = bo.getAttribute("ContentType"+sEDocType).getString();
}
String sViewType="view"; //"view" or "save"
if(sViewType.equals("view")){
%>
<form name=form1 method=post action="<%=sWebRootPath%>/servlet/view/file?CompClientID=<%=sCompClientID%>">
<div style="display:none">
<input name=filename value="<%=sFullPath%>">
<input name=contenttype value="<%=sContentType%>">
<input name=viewtype value="view">
</div>
</form>
<script type="text/javascript">
form1.submit();
</script>
<%
}
%>
<%@ include file="/IncludeEnd.jsp"%>