📄 workflowindex.asp
字号:
<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%'程序编写及设计:徐勇
'QQ号码: 563097256(网络侠客)
'网址:http://www.wsoas.com
'E_mail(MSN):netcst@126.com
'电话:13856921303 0551-5168961
'以上信息不影响程序运行!
'在使用过程中请保留以上信息,以便出现问题时及时与我取得联系
'注意:免费版程序不得用于商业用途,否则后果自负!!!!
if WS_S.MemberPriv("WS_WORKFLOWIndex")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_WorkFlow"
action=request("action"):page=request("page")
Orderby=" where WS_WorkFlowMan="&loginuid&" and WS_WorkFlowFlag=1"
if action="del" then
WS_FCID=request("MAID")
if WS_FCID="" or isnull(WS_FCID) then
HX_GoBack "非法操作",""
end if
conn.execute("delete from "&Tablename&" where WS_FCID in("&WS_FCID&")")
WS_S.HX_Redirect "WorkFlowIndex.asp?page="&page
elseif action="WorkFlowQT" then
Orderby=Orderby&" and WS_WorkFlowQT="&request("flag")
end if
fontcolor="#FFFFFF":fontcolor1="#FFFFFF":fontcolor2="red"
if request("flag")=0 and action="WorkFlowQT" then
fontcolor="red":fontcolor2="#FFFFFF"
elseif request("flag")=1 then
fontcolor1="red":fontcolor2="#FFFFFF"
end if
Orderby=Orderby&" order by WS_WorkFlowDate desc"
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
response.Write "<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>已发公文</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Style.css'><script src='../HXinclude/HX_Function.js'></script></head><body topmargin='10' leftmargin='0' bottommargin='10'><table width='98%' border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#115F8F'><tr><td colspan='2' bgcolor=ffffff background='../hximages/titlelinebg.gif'><table width='580' border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>已发公文</font> <a href='?action=WorkFlowQT&flag=0' class='menu'><font color='"&fontcolor&"'>未签收公文</font></a> <a href='?action=WorkFlowQT&flag=1' class='menu'><font color='"&fontcolor1&"'>已签收公文</font></a> <a href='WorkFlowIndex.asp' class='menu'><font color='"&fontcolor2&"'>全部已发公文</font></a></td></tr></table><table width='100%' border='0' cellspacing='1' cellpadding='3' bgcolor=ffffff><form method='post' action='WorkFlowIndex.asp?action=del&page="&page&"' name='form1'><tr bgcolor='#A1BBE0' class='td4'><td width='28' align=center><input type='checkbox' name='checkall' value='checkbox' onClick='chkall(this)' class='radio' style='background-color:A1BBE0;'></td><td width='128' align='center'>办文编号</td><td width='139' align='center'>标 题</td><td width='67' align='center'>公文类别 </td><td width='133' align='center'>正 文 </td><td width='106' align='center'>拟办意见</td><td width='61' align='center'>保密级别</td><td width='37' align='center'>附件</td><td width='74' align='center'>收文日期</td><td width='57' align='center'>状态</td><td width='79' align='center'>收文人</td></tr>"
if rs.recordcount<=0 then
response.Write "<tr><td colspan=11 bgcolor=ffffff height=25 align=center>已发公文中暂时还没有公文!</td></tr>"
else
rs.PageSize =14 '每页记录条数
iCount=rs.RecordCount '记录总数
iPageSize=rs.PageSize
maxpage=rs.PageCount
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
ii=0
do while not rs.EOF
response.Write "<tr bgcolor='#ECF2F2' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#ECF2F2'><td width='28' align=center><input type='checkbox' name='MAID' value='"&rs("WS_FCID")&"' class='radio' style='background-color:ECF2F2;'></td><td width='128'>"&rs("WS_WorkFlowNumber")&"</td><td width='139'>"&rs("WS_WorkFlowTitle")&"</td><td width='67' align=center>"&WS_S.HX_OutWorkFlowType(rs("WS_WorkFlowFlowType"))&"</td><td width='133' title='"&rs("WS_WorkFlowContent")&"'>"&left(rs("WS_WorkFlowContent"),10)&"</td><td width='106' title='"&rs("WS_WorkFlowBrief")&"'>"&left(rs("WS_WorkFlowBrief"),10)&"</td><td width='61' align=center>"&rs("WS_WorkFlowGrade")&"</td><td width='37' align=center>"
if rs("WS_WorkFlowAnnex")<>"" then response.write "<a href='"&rs("WS_WorkFlowAnnex")&"' target='_blank'><img src='../HXIMAGES/Message/sign.gif' border=0></a>"
response.Write "</td><td width='74' align=center>"&rs("WS_WorkFlowDate")&"</td><td width='57' align=center>"
if rs("WS_WorkFlowQT")=0 then response.Write "<font color=red>未签收</font>" else response.Write "<font color=blue title='签收日期:"&rs("WS_WorkFlowQTDate")&"'>已签收</font>"
response.Write "</td><td width='79' align=center>"
Call WS_S.HX_OutUserInfo(rs("WS_WorkFlowToMan")):response.Write OutName&"</td></tr>"
ii=ii+1
if ii>=rs.PageSize then Exit Do
rs.movenext
loop
response.Write "<tr bgcolor='#A1BBE0' class='td4'><td colspan='14' height='30'> <input type='checkbox' name='checkall' value='checkbox' onClick='chkall(this)' id='checkall' class='radio' style='background-color:A1BBE0;'><label for='checkall'>全选</label> 将选中全部 <input name='del' type='submit' value='删除' style='font-size: 12px;color:#FFFFFF;border: 1px solid #000000;background-color: #A1BBE0; '> </tr>"
call WS_S.PageControl(iCount,maxpage,page,"border=0 align=right","<p align=right>",11)
end if
WS_S.HX_RSClose rs
response.write "</form></table></td></tr></table>"
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -