economiclaw_jy_list.asp

来自「OFFICE办公自动化」· ASP 代码 · 共 226 行

ASP
226
字号
<%
'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="tbioaEconomicLaw_lxa" '表名

'接受查询参数
	area=Request("area")'填表单位
	dsrxm=Request("dsrxm")'姓名或名称
	ajxz=Request("ajxz")'案件性质
	larq=Request("larq")'立案时间
	cfjd=Request("cfjd")'主要违法事实


'查寻条件
if Search="" then
	Search="WHERE "
	if area<>""	then	Search = Search & "area LIKE '%" & area & "%' and "
	if dsrxm<>""	then	Search = Search & "dsrxm LIKE '%" & dsrxm & "%' and "
	if ajxz<>""	then	Search = Search & "ajxz LIKE '%" & ajxz & "%' and "
	if larq<>""	then	Search = Search & "larq LIKE '%" & larq & "%' and "
	if cfjd<>""	then	Search = Search & "cfjd LIKE '%" & cfjd & "%' and "
	Search=Search & "smod>=13 and "
	if area=""	then	area=session("DepID")
	Search=Search & "area in ("&GetTreeId("tbioaDepartment","ID","ParentID",area)&")" 
	'Search=Search & "userid="&LoginID'只能查看自己录入的记录
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")="dele" then
	id=request("id") : if id="" then id=0 '删除记录ID
	oConn.Execute "delete from "&table&" where id="&id
	response.write "<script>alert('立销案登记表成功删除!');history.back()</script>"
	response.end
end if
'------------------------------------------------
'------------------------------------------------处理记录
if request("mod")<>"" then
	id=request("id") : if id="" then id=0 '处理记录ID
	smod=request("mod")
	
	if smod=15 then
	oConn.Execute "update "&table&" set smod="&smod&",cfbajgrq='"&date()&"',cfbajgyj='"&request("cfbajgyj")&"' where id="&id
	response.write "<script>alert('行政处罚决定审批 ( 办案机构意见 ) 成功!');history.back()</script>"
	elseif smod=16 then
	oConn.Execute "update "&table&" set smod="&request("mod")&",cfhsjgrq='"&date()&"',cfhsjgyj='"&request("cfhsjgyj")&"' where id="&id
	response.write "<script>alert('行政处罚决定审批 ( 核审机构意见 ) 成功!');history.back()</script>"
	elseif smod=17 then
	oConn.Execute "update "&table&" set smod="&request("mod")&",cfjldrq='"&date()&"',cfjldyj='"&request("cfjldyj")&"' where id="&id
	response.write "<script>alert('行政处罚决定审批 ( 局领导意见 ) 成功!');history.back()</script>"
	elseif smod=18 then
	oConn.Execute "update "&table&" set smod="&request("mod")&" where id="&id
	response.write "<script>alert('行政处罚决定审批成功!');history.back()</script>"
	else
	oConn.Execute "update "&table&" set smod="&request("mod")&" where id="&id
	response.write "<script>alert('行政处罚决定审批表提交成功!');history.back()</script>"
	end if
	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)
  {
  	var	txt;
  	if (cmod==16){
		txt="请填写办案机构意见:";
		shyj = prompt(txt,"");
	 	if (!shyj)
	 		{return false;}
	 	else
	 		{location.href="?mod="+cmod+"&id="+id+"&cfbajgyj="+shyj;}
		}
  	else if(cmod==17){
		txt="请填写核审机构意见:";
		shyj = prompt(txt,"");
	 	if (!shyj)
	 		{return false;}
	 	else
	 		{location.href="?mod="+cmod+"&id="+id+"&cfhsjgyj="+shyj;}
		}
	else if(cmod==18){
		txt="请填写局领导意见:";
		shyj = prompt(txt,"");
	 	if (!shyj)
	 		{return false;}
	 	else
	 		{location.href="?mod="+cmod+"&id="+id+"&cfjldyj="+shyj;}
		}
	else if(cmod==19){
		location.href="?mod="+cmod+"&id="+id;
		}
	else{
	 	location.href="?mod="+cmod+"&id="+id;
	 }
  }
</SCRIPT>
</HEAD>

<BODY topmargin="10" leftmargin="10">

<!--#include file="EconomicLaw_jy_menu.html"-->

<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 NAME="dsrxm" TYPE="text" CLASS="input" id="dsrxm" VALUE="<%=htmlout(dsrxm)%>" SIZE="15" MAXLENGTH="20">
        案件性质:
        <INPUT NAME="ajxz" TYPE="text" CLASS="input" id="ajxz" VALUE="<%=htmlout(ajxz)%>" SIZE="15" MAXLENGTH="50">
        <INPUT name="submit" TYPE="submit" CLASS="button0" onmouseover=className="button1" onmouseout=className="button0" VALUE="查询">
      </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 width="48" nowrap class="tdTop">填表单位</TD>
    <TD width="70" nowrap class="tdTop">当事人姓名</TD>
    <TD width="48" nowrap class="tdTop">案件性质</TD>
    <TD width="55" nowrap class="tdTop">立案日期</TD>
    <TD width="264" nowrap class="tdTop">主要违法事实|行政处罚决定的理由|依据及内容</TD>
    <TD width="36" nowrap class="tdTop">承办人</TD>
    <TD width="37" nowrap class="tdTop">状态</TD>
    <TD width="109" nowrap colspan=2 class="tdTop">相关操作</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="EconomicLaw_jy_show.asp?id=<%=rs("ID")%>" class="link" target="_blank"><%=HtmlOut(rs("dsrxm"))%></A></TD>
    <TD class="<%=td_class%>"><%=HtmlOut(rs("ajxz"))%></TD>
    <TD class="<%=td_class%>"><%=HtmlOut(rs("larq"))%></TD>
    <TD class="<%=td_class%>"><%=HtmlOut(rs("cfjd"))%></TD>
    <TD class="<%=td_class%>"><%=HtmlOut(rs("cfcbr"))%></TD>
    <TD align="center" class="<%=td_class%>"><%=GetEconoLxaMod(rs("smod"))%></TD>
    <TD nowrap class="<%=td_class%>">
	<%if rs("smod")=14 then%>
	<IMG border="0" src="../images/icon_edit.gif" align="left"> <A href="EconomicLaw_jy_edit.asp?id=<%=rs("ID")%>">编辑信息</A> <A href="EconomicLaw_lxa_list.asp?mod=dele&id=<%=rs("ID")%>" onClick="return confirm('确定要删除该条记录吗?\n该操作不可恢复!')"></A>
	<%elseif rs("smod")=15 then%>
	<IMG border="0" src="../images/icon_edit.gif" align="left">
    <A href="#" onClick="dosh(16,<%=rs("ID")%>); return false;">办案机构意见</A>
	<%elseif rs("smod")=16 then%>
	<IMG border="0" src="../images/icon_edit.gif" align="left">
    <A href="#" onClick="dosh(17,<%=rs("ID")%>); return false;">核审机构意见</A>
	<%elseif rs("smod")=17 then%>
	<IMG border="0" src="../images/icon_edit.gif" align="left">
    <A href="#" onClick="dosh(18,<%=rs("ID")%>); return false;">局领导意见</A>
	<%elseif rs("smod")=18 then%>
	<IMG border="0" src="../images/icon_edit.gif" align="left">
    <A href="#" onClick="dosh(19,<%=rs("ID")%>); return false;">确定完成 </A>
	<%elseif rs("smod")=19 then%>
	<IMG border="0" src="../images/icon_edit.gif" align="left">
    已完成&nbsp;&nbsp;<IMG border="0" src="../images/print.gif" >&nbsp;<A href="EconomicLaw_jy_show.asp?id=<%=rs("ID")%>" class="link" target="_blank">打单</A>
	<%end if%>
	</TD>
	<%if rs("smod")=15 then %>
    <TD nowrap class="<%=td_class%>"><A href="#" onClick="dosh(13,<%=rs("ID")%>); return false;">不予处理,退回</A></TD><%end if%>
  </TR>
  <%
rs.MoveNext
next
%>
</TABLE>
<%
end if
rs.close
%>

</BODY>

</HTML>

<%'释放对象变量
oConn.close
%> 

⌨️ 快捷键说明

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