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

📄 htbasq_sh.asp

📁 OFFICE办公自动化
💻 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="tbioaHtbasq" '表名

'接受查询参数
	area=Request("area")'登记所
	htmc=Request("htmc")'合同名称
	qymc=Request("qymc")'企业名称
	slsj=Request("slsj")'受理时间
	slsj_end=Request("slsj_end")'受理时间(结束)
	bh=Request("bh")'编号
	smod=Request("smod")'处理状态


'查寻条件
if Search="" then
	Search="WHERE "
	if htmc<>""	then	Search = Search & "htmc LIKE '%" & htmc & "%' and "
	if qymc<>""	then	Search = Search & "qymc LIKE '%" & qymc & "%' and "
	if slsj<>""	then	Search = Search & "slsj>='" & cdate(slsj) & "' and "
	if slsj_end<>""	then	Search = Search & "slsj<='" & cdate(slsj_end) & "' and "
	if bh<>""	then	Search = Search & "bh='" & bh & "' 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 smod in (1,2)" '可查看本部门及下属部门的记录
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")&",shr='"&GetUserName(LoginID)&"',shyj='"&request("shyj")&"' 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>
<script language="javascript">
  function dosh(cmod,id)
  {
	 shyj = prompt("请填写审核意见:","");
	 if (!shyj)
	 	{return false;}
	 else
	 	{location.href="?mod="+cmod+"&id="+id+"&shyj="+shyj;}
  }
</script>
</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">合同格式条款备案申请审核 &nbsp;</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="8" maxlength="50" class="input">
    	备案单位:<input type="text" name="qymc" value="<%=htmlout(qymc)%>" size="8" 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" width=50 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(GetTableValue("tbioaDepartment","Name","id",rs("area")))%></td>
	<td class="<%=td_class%>"><a href="Htbasq_show.asp?id=<%=rs("ID")%>" class="link" target="_blank"><%=HtmlOut(rs("htmc"))%></a></td>
	<td class="<%=td_class%>"><%=HtmlOut(rs("qymc"))%></td>
	<td class="<%=td_class%>"><%=HtmlOut(rs("bh"))%></td>
	<td class="<%=td_class%>"><%if rs("sllb")="1" then response.write "条款修改" else response.write "条款备案"%></td>
	<td class="<%=td_class%>"><%=HtmlOut(rs("slsj"))%></td>
	<td class="<%=td_class%>"><%=HtmlOut(rs("shyj"))%></td>
	<td class="<%=td_class%>"><%=HtmlOut(rs("shr"))%></td>
	<td class="<%=td_class%>"><%=GetHtBaMod(rs("smod"))%></td>
	<td class="<%=td_class%>" width="50" nowrap>
	  <%if rs("smod")=1 then%>
	    <img border="0" src="../images/CheckSignature.gif" align="left">
	    <a href="#" onClick="dosh(2,<%=rs("ID")%>); return false;">通过</a>
	  <%elseif rs("smod")=2 then%>
	    <img border="0" src="../images/icon_close.gif" align="left">
	    <a href="?mod=1&id=<%=rs("ID")%>">取消</a>
	  <%else%>
	  	--
	  <%end if%>
	</td>
	<td class="<%=td_class%>" width="50" nowrap>
	  <%if rs("smod")=1 then%>
	    <img border="0" src="../images/delete.gif" align="left">
	    <a href="#" onClick="if(confirm('确定要退回该审核表吗?\n该操作不可恢复!')){dosh(0,<%=rs("ID")%>);} return false;">退回</a>
	  <%elseif rs("smod")=2 then%>
	  	<img border="0" src="../images/print.gif" align="left">
	  	<a href="Htbasq_sld.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 + -