apzl_leasing/WebContent/Frame/page/dw/GetDWDataAll.jsp
2018-06-03 22:26:41 +08:00

63 lines
2.5 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%><%@
page import="java.net.URLDecoder"%><%@
page import="com.amarsoft.awe.common.record.Record"%><%@
include file="/Frame/resources/include/IncludeBeginDWAJAX.jspf"%><%
String sCompClientID = request.getParameter("CompClientID");
String sDWName = DataConvert.toRealString(iPostChange,(String)request.getParameter("dw"));
String sType = DataConvert.toRealString(iPostChange,(String)request.getParameter("type"));
if(sType==null || sType.equals("") || sType.equals("null")) sType = "export"; //print,export
String sURLName = "";
if(sDWName!=null && !sDWName.equals("")){
ASDataWindow dwTemp = Component.getDW(sSessionID);
sURLName = dwTemp.genHTMLAllEx(Sqlca,request,"",65535);
if("true".equalsIgnoreCase(CurConfig.getConfigure("DWDownloadRecord"))){
StringBuffer sRecordContent = new StringBuffer();
sRecordContent.append("[DW]");
sRecordContent.append("[");
sRecordContent.append(dwTemp.DataObject.getDoNo());
sRecordContent.append("]");
sRecordContent.append("[");
sRecordContent.append(dwTemp.DataObject.getDoName());
sRecordContent.append("]");
sRecordContent.append("[");
sRecordContent.append(dwTemp.DataObject.UpdateTable);
sRecordContent.append("]");
sRecordContent.append("[");
sRecordContent.append(dwTemp.DataObject.SourceSql);
if(sRecordContent.length() > 1999){
sRecordContent.setLength(1996);
sRecordContent.append("...");
}
sRecordContent.append("]");
Record record = new Record();
record.setRecordUser(CurUser.getUserID());
String sReason = request.getParameter("Reason");
if(!StringX.isSpace(sReason))
sReason = URLDecoder.decode(sReason, "UTF-8");
record.setRecordReason(sReason);
record.setRecordContent(sRecordContent.toString());
record.update("DW");
}
}
%>
<html>
<head>
<title>请稍候...</title>
</head>
<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>
<form name=form1 method=post action="<%=sWebRootPath%>/servlet/view/file?CompClientID=<%=sCompClientID%>" target=MyAtt>
<div style="display:none">
<input name=filename value="<%=sURLName%>">
<input name=contenttype value="application/x-zip-compressed">
<input name=viewtype value="download">
</div>
</form>
</body>
</html>
<script type="text/javascript">
form1.submit();
</script>
<%@ include file="/IncludeEndAJAX.jsp"%>