57 lines
2.0 KiB
Plaintext
57 lines
2.0 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/Frame/resources/include/include_begin_simplelist.jspf"%><%
|
|
ASObjectModel doTemp = new ASObjectModel("FileDownList");
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
|
dwTemp.setPageSize(6);
|
|
dwTemp.Style="1"; //设置为Grid风格
|
|
dwTemp.ReadOnly = "1";//只读模式
|
|
dwTemp.genHTMLObjectWindow(CurUser.getUserID());
|
|
sASWizardHtml = "<div><br><font size=\"2pt\" color=\"#930055\"> 已完成列表>></font></div>";
|
|
|
|
String sButtons[][] = {
|
|
{"true","","Button","下载","下载","downloadx()","","","","btn_icon_detail",""},
|
|
{"true","","Button","删除","删除","del()","","","","btn_icon_delete",""},
|
|
{"false","","Button","关闭","关闭页面","window.close()","","","","btn_icon_delete",""},
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<iframe name="MyAtt" width=100% height=0 frameborder=0 hspace=0 vspace=0 marginwidth=0 marginheight=0 scrolling="no"> </iframe>
|
|
<form id="form_1" name="form_1" method=post action="<%=sWebRootPath%>/servlet/view/file?CompClientID=<%=sCompClientID%>" target=MyAtt>
|
|
<div style="display:none">
|
|
<input id="filename" name="filename">
|
|
</div>
|
|
</form>
|
|
<script type="text/javascript">
|
|
var time = null;
|
|
function downloadx(){
|
|
clearInterval(time);
|
|
time = setInterval(function(){
|
|
if(!MyAtt || !MyAtt.document || !MyAtt.document.body){
|
|
clearInterval(time);
|
|
return;
|
|
}
|
|
var html = MyAtt.document.body.innerHTML;
|
|
if(html.trim() == "文件不存在 !"){
|
|
alert(html);
|
|
MyAtt.document.body.innerHTML = "";
|
|
clearInterval(time);
|
|
}
|
|
}, 1000);
|
|
|
|
var path = getItemValue(0,getRow(),"PATH");
|
|
var fileName = getItemValue(0,getRow(),"FILENAME");
|
|
if (typeof(fileName)=="undefined" || fileName.length==0){
|
|
alert("已完成列表为空");
|
|
return;
|
|
}
|
|
var file = path+"/"+fileName;
|
|
$('#filename').val(file);
|
|
form_1.submit();
|
|
}
|
|
function del(){
|
|
if(confirm('确实要删除吗?')){
|
|
as_delete(0);
|
|
}
|
|
}
|
|
|
|
</script>
|
|
<%@include file="/Frame/resources/include/include_end.jspf"%> |