⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 document_file_list.asp

📁 OFFICE办公自动化
💻 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 为本页记录数
'
table="tbioaOffice_Document" '表名

'接受查询参数


'查寻条件
if Search="" then
	Search="WHERE "
	Search=Search & "1=1"'可查看所有人录入的记录
	'Search=Search & "userid="&LoginID'只能查看自己录入的记录
	Search=Search & " and step='GD' "
END if
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from " & table & " " & Search & " order by DocumentID desc"
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 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 valign=bottom nowrap>
	</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>
<tr class="tdTop">
  <td align=center nowrap width="55">收发</td>
  <td align=center nowrap width="70">文号</td>
  <td align=center nowrap>公文标题</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="70">办理状态</td>
  <td colspan="3" 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%>">
    <%=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(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%>"><font color=blue>待归档</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 border="0" src="../images/icon_edit.gif" align="left">
      <a href="Document_File_Gd.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
%>
</table>
<%
end if
rs.close
%>

</body>
</html>
<%'释放对象变量
oConn.close
set oConn=nothing
%> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -