📄 htzy_dj.asp
字号:
<%
'OA 表单生成器1.0
'功能:合同争议行政调解列表
'参数:request("page")=int #当前页码; request.form("Search")=chr #上次查询条件
%>
<!--#include file="../inc/NoCatch.asp"-->
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->
<%
'response.buffer=false
'------------------------------------------------设置参数
LoginID=trim(Session("LoginID")) : if LoginID="" then LoginID=0 '当前用户ID
maxmessage=15 '每页显示记录数
currentpage=request("page") '当前页码
Search=request("Search") '上次查询条件
'------------------------------------------------
'------------------------------------------------取记录
'分页取记录 (返回rs对象)
'rs.recordcount 为记录总数
'rs.PageSize 为本页记录数
'
table="tbioaHtzy" '表名
'接受查询参数
bh=Request("bh")'编号
jfmc=Request("jfmc")'甲方名称
yfmc=Request("yfmc")'乙方名称
htmc=Request("htmc")'合同名称(编号)
htqdsj=Request("htqdsj")'合同签订时间
htqdsj_end=Request("htqdsj_end")'合同签订时间(结束)
area=Request("area")'受理机关
slsj=Request("slsj")'受理时间
slsj_end=Request("slsj_end")'受理时间(结束)
slr=Request("slr")'受理人
smod=Request("smod")'处理状态
'查寻条件
if Search="" then
Search="WHERE "
if bh<>"" then Search = Search & "bh LIKE '%" & bh & "%' and "
if jfmc<>"" then Search = Search & "jfmc LIKE '%" & jfmc & "%' and "
if yfmc<>"" then Search = Search & "yfmc LIKE '%" & yfmc & "%' and "
if htmc<>"" then Search = Search & "htmc LIKE '%" & htmc & "%' and "
if htqdsj<>"" then Search = Search & "htqdsj>='" & cdate(htqdsj) & "' and "
if htqdsj_end<>"" then Search = Search & "htqdsj<='" & cdate(htqdsj_end) & "' and "
if slsj<>"" then Search = Search & "slsj>='" & cdate(slsj) & "' and "
if slsj_end<>"" then Search = Search & "slsj<='" & cdate(slsj_end) & "' and "
if slr<>"" then Search = Search & "slr LIKE '%" & slr & "%' and "
if smod<>"" then Search = Search & "smod='" & smod & "' and "
if area="" then area=session("DepID")
Search=Search & "area in ("&GetTreeId("tbioaDepartment","ID","ParentID",area)&") and ','+tjy+',' like '%,"&LoginID&",%' and smod in (2,3)" '可查看本部门及下属部门的记录
END if
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from " & table & " " & Search & " order by ID desc"
rs.open sql,oConn,1,1
Showpage=Paging(rs,maxmessage,currentpage,"Search="&Server.URLEncode(Search))
'------------------------------------------------处理记录
if request("mod")<>"" then
id=request("id") : if id="" then id=0 '处理记录ID
oConn.Execute "update "&table&" set smod="&request("mod")&" where id="&id
response.write "<script>alert('合同争议行调解处理成功!');history.back()</script>"
response.end
end if
'------------------------------------------------
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/main.css" type=text/css>
<title>main</title>
</head>
<body topmargin="10" leftmargin="10">
<table border=0 cellspacing="0" cellpadding="0">
<tr>
<td><img border="0" src="../images/icon_menu.gif" align="left">合同争议行调解登记</td>
</tr>
</table>
<hr width="100%" size=1 color="#000000">
<table border=0 cellspacing="0" cellpadding="0">
<tr>
<form name="eventfrm" method="GET" action="">
<td nowrap>
快速查询:
受理机关:<select size="1" name="area" class="input">
<option value="<%=Session("DepID")%>"><%=GetTableValue("tbioaDepartment","Name","id",Session("DepID"))%></option>
<%Call pOptions("tbioaDepartment","Name",Session("DepID"),area,"├-")%>
</select>
编号:<input type="text" name="bh" value="<%=htmlout(bh)%>" size="5" maxlength="20" class="input">
合同名称:<input type="text" name="htmc" value="<%=htmlout(htmc)%>" size="20" maxlength="50" class="input">
状态:<select size="1" name="smod" class="input">
<option value="">不限制</option>
<option value="1" <%=selected(smod,"1")%>>待审核</option>
<option value="2" <%=selected(smod,"2")%>>审核通过</option>
</select>
<input type="submit" value="查询" class="button0" onmouseout=className="button0" onmouseover=className="button1">
</td>
</form>
</tr>
</table>
<hr width="100%" size=1 color="#000000">
<%=Showpage%>
<br>
<%
if rs.RecordCount=0 then
response.write "<BR><BR>暂时为空!"
else
%>
<table width="100%" cellspacing="1" cellpadding="2" class="tab">
<tr>
<td class="tdTop" nowrap>编号</td>
<td class="tdTop" nowrap>甲方名称</td>
<td class="tdTop" nowrap>乙方名称</td>
<td class="tdTop" nowrap>合同名称(编号)</td>
<td class="tdTop" nowrap>受理机关</td>
<td class="tdTop" nowrap>受理时间</td>
<td class="tdTop" nowrap>调解员</td>
<td class="tdTop" width=50 nowrap>处理状态</td>
<td class="tdTop" colspan="2" 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 class="<%=td_class%>"><%=HtmlOut(rs("bh"))%></td>
<td class="<%=td_class%>"><%=HtmlOut(rs("jfmc"))%></td>
<td class="<%=td_class%>"><%=HtmlOut(rs("yfmc"))%></td>
<td class="<%=td_class%>"><a href="Htzy_show.asp?id=<%=rs("ID")%>" class="link" target="_blank"><%=HtmlOut(rs("htmc"))%></a></td>
<td class="<%=td_class%>"><%=HtmlOut(GetTableValue("tbioaDepartment","Name","id",rs("area")))%></td>
<td class="<%=td_class%>"><%=HtmlOut(rs("slsj"))%></td>
<td class="<%=td_class%>"><%=HtmlOut(GetUserNames(rs("tjy"),","))%></td>
<td class="<%=td_class%>"><%=GetHtZyMod(rs("smod"))%></td>
<td class="<%=td_class%>" width="50" nowrap>
<%if rs("smod")=2 then%>
<img border="0" src="../images/CheckSignature.gif" align="left">
<a href="?mod=3&id=<%=rs("ID")%>">结案</a>
<%elseif rs("smod")=3 then%>
<img border="0" src="../images/icon_close.gif" align="left">
<a href="?mod=2&id=<%=rs("ID")%>">取消</a>
<%else%>
--
<%end if%>
</td>
<td class="<%=td_class%>" width="50" nowrap>
<%if rs("smod")=2 then%>
<img border="0" src="../images/icon_edit.gif" align="left">
<a href="Htzy_dj_edit.asp?id=<%=rs("ID")%>">登记</a>
<%elseif rs("smod")=3 then%>
<img border="0" src="../images/print.gif" align="left">
<a href="Htzy_dj_show.asp?id=<%=rs("ID")%>" target="_blank">打单</a>
<%else%>
--
<%end if%>
</td>
</tr>
<%
rs.MoveNext
next
%>
</table>
<%
end if
rs.close
%>
</body>
</html>
<%'释放对象变量
oConn.close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -