33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/IncludeBegin.jsp"%><%
|
|
String sDocNo = CurPage.getParameter("DocNo"); //文档编号
|
|
String sAttachmentNo = CurPage.getParameter("AttachmentNo"); //附件编号
|
|
String sViewType = CurPage.getParameter("ViewType"); //附件编号
|
|
if(sViewType==null) sViewType = "view"; //"view" or "save"
|
|
String sqlString = sViewType+"@"+sDocNo+"@"+sAttachmentNo;
|
|
%>
|
|
<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>
|
|
<% if(sViewType.equals("view")){%>
|
|
<form name=form1 method=post action="<%=sWebRootPath%>/servlet/view/attachment?CompClientID=<%=sCompClientID%>">
|
|
<div style="display:none">
|
|
<input name=sqlString value="<%=sqlString%>">
|
|
</div>
|
|
</form>
|
|
<script type="text/javascript">
|
|
form1.submit();
|
|
</script>
|
|
<% }else{%>
|
|
<form name=form1 method=post action="<%=sWebRootPath%>/servlet/view/attachment?CompClientID=<%=sCompClientID%>" target=MyAtt>
|
|
<div style="display:none">
|
|
<input name=sqlString value="<%=sqlString%>">
|
|
</div>
|
|
</form>
|
|
<script type="text/javascript">
|
|
form1.submit();
|
|
</script>
|
|
<% }%>
|
|
<%@ include file="/IncludeEnd.jsp"%> |