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

📄 document_gwdb_list.asp

📁 OFFICE办公自动化
💻 ASP
字号:
<%
'功能:公文督办列表
'作者:展亮
'日期:2003-12-27 20:25
%>

<!--#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 & "Step<>'FW' AND " '不为发文拟制
	Search=Search & "Step<>'SW' AND " '不为收文登记
	Search=Search & "Step<>'XH' AND " '未销毁
	Search=Search & "Step<>'CX' AND " '未撤销
	Search=Search & "Step<>'YG'" '未归档
END if
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select documentid, RecordID, Author, PSend_Dept, FileDate, DocMod, Subject, DocFileNo, DC_Doc_Sort, DC_Doc_Security, DC_Doc_Exigence, Step from " & table & " " & Search & " order by DocumentID desc"
'response.write sql
rs.open sql,oConn,1,1
Showpage=SearchPaging(rs,maxmessage,currentpage,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"> 公文督办  <span class="style1">(安装文档编辑插件,请你在打开本页面的弹出窗口时,选择[是]按钮,才能正常运行。)</span></td>
	<td align=right valign=bottom nowrap>
	</td></tr>
</table>
<hr width="100%" size=1 color="#000000">
<br>
<OBJECT style="display:none" id="WebOffice" width="100%" height="24" classid="clsid:23739A7E-5741-4D1C-88D5-D50B18F7C347" codebase="iWebOffice2003.ocx#version=6,4,0,4" ></OBJECT>
<%=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="30">编号</td>
  <td align=center nowrap>公文标题</td>
  <td align=center nowrap>作者</td>
  <td align=center nowrap>发文单位</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
   td_class="td1"
%>
<tr>
  <td nowrap class="<%=td_class%>"><%=rs("DocMod")%></td>
  <td nowrap class="<%=td_class%>"><%=htmlout(rs("documentid"))%></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(rs("PSend_Dept"))%></td>
  <td nowrap class="<%=td_class%>"><%=CDate(rs("FileDate"))%></td>
  <td nowrap class="<%=td_class%>">
      <%
  	select case rs("step")
  		case "FW"
  			Response.Write "发文拟制"
  		case "SW"
  			Response.Write "收文登记"
  		case "GD"
  			Response.Write "待归档"
  		case "XH"
  			Response.Write "销毁"
  		case "CX"
  			Response.Write "撤销"
  		case else
  			set rs1 = server.CreateObject("ADODB.RecordSet")
  			rs1.Open "select blgzmc from tbioaOffice_Flow_Bldy where blgzbh='" & rs("step") & "'",oConn,1,1
  			if not rs1.EOF then
  				Response.Write server.HTMLEncode(rs1(0) & "")
  			end if
  			rs1.close
  	end select
     %>
  </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
%>
</table>
<%
end if
rs.close
%>

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

⌨️ 快捷键说明

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