📄 economiclaw_hs_list.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="tbioaEconomicLaw_lxa" '表名
'接受查询参数
area=Request("area")'填表单位
dsrxm=Request("dsrxm")'姓名或名称
ajxz=Request("ajxz")'案件性质
larq=Request("larq")'立案时间
zywfss=Request("zywfss")'主要违法事实
'查寻条件
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 zywfss<>"" then Search = Search & "zywfss LIKE '%" & zywfss & "%' and "
Search=Search & "smod>=8 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=10 then
oConn.Execute "update "&table&" set smod="&smod&",fhcbryj='"&request("fhcbryj")&"' where id="&id
response.write "<script>alert('立销案登记核审 ( 承办人报处意见 ) 成功!');history.back()</script>"
elseif smod=11 then
oConn.Execute "update "&table&" set smod="&request("mod")&",fhbajgrq='"&date()&"',fhbajgyj='"&request("fhbajgyj")&"' where id="&id
response.write "<script>alert('立销案登记核审 ( 办案机构处罚建议 ) 成功!');history.back()</script>"
elseif smod=12 then
oConn.Execute "update "&table&" set smod="&request("mod")&",fhhsjgrq='"&date()&"',fhhsjgyj='"&request("fhhsjgyj")&"' where id="&id
response.write "<script>alert('立销案登记核审 ( 核审机构意见 ) 成功!');history.back()</script>"
elseif smod=13 then
oConn.Execute "update "&table&" set smod="&request("mod")&",fhjldrq='"&date()&"',fhjldyj='"&request("fhjldyj")&"' 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==10){
txt="请填写承办人报处意见:";
shyj = prompt(txt,"");
if (!shyj)
{return false;}
else
{location.href="?mod="+cmod+"&id="+id+"&fhcbryj="+shyj;}
}
else if(cmod==11){
txt="请填写办案机构处罚建议:";
shyj = prompt(txt,"");
if (!shyj)
{return false;}
else
{location.href="?mod="+cmod+"&id="+id+"&fhbajgyj="+shyj;}
}
else if(cmod==12){
txt="请填写核审机构意见:";
shyj = prompt(txt,"");
if (!shyj)
{return false;}
else
{location.href="?mod="+cmod+"&id="+id+"&fhhsjgyj="+shyj;}
}
else if(cmod==13){
txt="请填写局领导意见:";
shyj = prompt(txt,"");
if (!shyj)
{return false;}
else
{location.href="?mod="+cmod+"&id="+id+"&fhjldyj="+shyj;}
}
else{
location.href="?mod="+cmod+"&id="+id;
}
}
</SCRIPT>
</HEAD>
<BODY topmargin="10" leftmargin="10">
<!--#include file="EconomicLaw_hs_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 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" 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="EconomicLaw_hs_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("zywfss"))%></TD>
<TD class="<%=td_class%>"><%=GetEconoLxaMod(rs("smod"))%></TD>
<TD nowrap class="<%=td_class%>">
<%if rs("smod")=8 then%>
<IMG border="0" src="../images/icon_edit.gif" align="left">
<A href="EconomicLaw_hs_edit.asp?id=<%=rs("ID")%>">编辑信息</A>
<%elseif rs("smod")=9 then%>
<IMG border="0" src="../images/icon_edit.gif" align="left">
<A href="#" onClick="dosh(10,<%=rs("ID")%>); return false;">承办人报处意见</A>
<%elseif rs("smod")=10 then%>
<IMG border="0" src="../images/icon_edit.gif" align="left">
<A href="#" onClick="dosh(11,<%=rs("ID")%>); return false;">办案机构处罚建议</A>
<%elseif rs("smod")=11 then%>
<IMG border="0" src="../images/icon_edit.gif" align="left">
<A href="#" onClick="dosh(12,<%=rs("ID")%>); return false;">核审机构意见</A>
<%elseif rs("smod")=12 then%>
<IMG border="0" src="../images/icon_edit.gif" align="left">
<A href="#" onClick="dosh(13,<%=rs("ID")%>); return false;">局领导意见</A>
<%elseif rs("smod")>=13 then%>
<%
if rs("smod")=13 then
%>
--> 生成书面告知书 <%'<A href="EconomicLaw_gzs_edit.asp?id=<%=rs("ID")% > "></A>%>
<%else%>
--> <A href="EconomicLaw_gzs_show.asp?id=<%=rs("ID")%>" target=_blank>查看书面告知书</A>
<%end if%>
<%end if%>
</TD>
<%if rs("smod")<=8 then %>
<TD nowrap class="<%=td_class%>"><A href="#" onClick="dosh(5,<%=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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -