📄 document_file_xh_list.asp
字号:
<%
'功能:待销毁公文列表
%>
<!--#include file="../inc/NoCatch.asp"-->
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->
<%
'------------------------------------------------设置参数
LoginID=trim(session("LoginID")) : if LoginID="" then LoginID=0 '当前用户ID
maxmessage=15 '每页显示记录数
currentpage=request("page") '当前页码
Search=request("Search") '上次查询条件
'------------------------------------------------
'------------------------------------------------取记录
'分页取记录 (返回rs对象)
'rs.recordcount 为记录总数
'rs.PageSize 为本页记录数
'
'接受查询参数
'查寻条件
if Search="" then
Search="WHERE "
Search=Search & "(RecordID not in (SELECT RecordID FROM tbioaDocument_File) AND step='YG') OR "'档案库中已删除的归档记录
Search=Search & "step='CX'"'已经撤销的记录
END if
set rs=Server.CreateObject("ADODB.RecordSet")
sql="SELECT * FROM tbioaOffice_Document " & Search & " order by DocumentID desc"
'response.write sql
rs.open sql,oConn,1,1
Showpage=Paging(rs,maxmessage,currentpage,"Search="&Server.URLEncode(Search))
%>
<html>
<head>
<title>待归档公文</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel='stylesheet' type='text/css' href='../css/main.css'>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
<script language="javascript">
function delcheck()
{var j,k
j=0
for (var i=0;i<form_del.elements.length;i++)
{
var e = form_del.elements[i];
if (e.checked!=false)
{
j=j+1;}
}
if (j==0){
alert("请选择要删除的公文");
}
else
{
if (confirm('所选中的公文及其办理记录都将被删除,确实要删除吗?\n该操作不可恢复!')){
document.form_del.action="Document_File_XH.asp";
document.form_del.submit();
}
}
}
function resavecheck()
{var j,k
j=0
for (var i=0;i<form_del.elements.length;i++)
{
var e = form_del.elements[i];
if (e.checked!=false)
{
j=j+1;}
}
if (j==0){
alert("请选择要恢复的公文");
}
else
{
if (confirm('所选中的公文将恢复为待归档状态,确实要恢复吗?')){
document.form_del.action="Document_File_HF.asp";
document.form_del.submit();
}
}
}
</script>
<SCRIPT language=javascript>
function WindowOpen(strURL){
DocumentWin = window.open(strURL,"","toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");
DocumentWin.focus();
}
</SCRIPT>
</head>
<body topmargin="10" leftmargin="10">
<table width=98% class=tabletoolbar border=0 align=center>
<tr valign=center><td align=left nowrap><img src="../images/icon_title.gif" align="absmiddle"> 待销毁公文</td>
<td align="right" nowrap valign="top">
<input type="button" class="button0" onmouseout=className="button0" onmouseover=className="button1" value="销毁" onclick="javascript:delcheck()">
<input type="button" class="button0" onmouseout=className="button0" onmouseover=className="button1" value="恢复为待归档" onclick="javascript:resavecheck()">
</td>
</tr>
</table>
<hr width="100%" size=1 color="#000000">
<br>
<%=Showpage%>
<br>
<%
if rs.RecordCount=0 then
response.write "<BR><BR>暂时为空!"
else
%>
<table border=0 cellspacing='1' cellpadding='2' width=100% align=center class=tab>
<form method="post" name="form_del">
<tr class="tdTop">
<td align=center nowrap width="20"></td>
<td align=center nowrap width="30">收发</td>
<td align=center nowrap width="70">文号</td>
<td align=center nowrap>公文标题</td>
<td align=center nowrap width="60">拟制人</td>
<td align=center nowrap>类别</td>
<td align=center nowrap width="40">密级</td>
<td align=center nowrap width="70">紧急程度</td>
<td align=center nowrap width="30">状态</td>
<td colspan="2" align=center nowrap>操作</td>
</tr>
<%for i = 0 to rs.PageSize-1
If rs.EOF Then Exit For
if i mod 2 = 0 then td_class="td1" else td_class="td2"
%>
<tr>
<td nowrap class="<%=td_class%>"><input type="checkbox" name="sign_da" value="<%=rs("RecordID")%>"></td>
<td nowrap class="<%=td_class%>">
<%=rs("DocMod")%>
</td>
<td nowrap class="<%=td_class%>"><%=htmlout(rs("DocFileNo"))%></td>
<td nowrap class="<%=td_class%>"><%=htmlout(rs("Subject"))%></td>
<td nowrap class="<%=td_class%>"><%=htmlout(GetUserName(rs("Author")))%></td>
<td nowrap class="<%=td_class%>"><%=htmlout(GetTableValue("tbioaOffice_Document_Sort","doc_sort","id",rs("DC_Doc_Sort")))%></td>
<td nowrap class="<%=td_class%>"><%=htmlout(rs("DC_Doc_Security"))%></td>
<td nowrap class="<%=td_class%>"><%=htmlout(rs("DC_Doc_Exigence"))%></td>
<td nowrap class="<%=td_class%>">
<%
if rs("Step")="CX" then response.write "<font color=red>撤销</font>"
if rs("Step")="YG" then response.write "<font color=green>归档</font>"
%>
</td>
<td nowrap width="50" nowrap class="<%=td_class%>">
<img border="0" src="../images/icon_show.gif" align="left">
<a href="javascript:WindowOpen('DocumentShow.asp?RecordID=<%=rs("RecordID")%>');">查看</a>
</td>
<td nowrap width="50" nowrap class="<%=td_class%>">
<img src="../images/icon_flow.gif" align="left" border=0 alt="查看工作点">
<a href="javascript:WindowOpen('F_Point_Show.asp?RecordID=<%=rs("RecordID")%>')">流程</a>
</td>
</tr>
<%
rs.MoveNext
next
%>
</form>
</table>
<%
end if
rs.close
%>
</body>
</html>
<%'释放对象变量
oConn.close
set oConn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -