<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_WorkFlowWaitList")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_WorkFlow"
action=request("action"):page=request("page")
Orderby=" where WS_WorkFlowToMan="&loginuid&" and WS_WorkFlowFlag=1 and WS_WorkFlowQT=0"
if action="del" then 
  WS_FCID=request("MAID") 
  if WS_FCID<>"" then 
    ToUidarr=split(WS_FCID,",")
	 for ii=0 to ubound(ToUidarr)  
       conn.execute("update "&Tablename&" set WS_WorkFlowQT=1,WS_WorkFlowQTDate=#"&now&"# where WS_FCID="&ToUidarr(ii))
	 next  
  end if
   WS_S.HX_Redirect "WorkFlowWaitList.asp?page="&page
elseif action="WorkFlowQT"  then
Orderby=Orderby&" and WS_WorkFlowQT="&request("flag")
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='#613c25'><tr><td colspan='2' bgcolor=FFFBE8 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></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='3' bgcolor=FFFBE8><form method='post' action='WorkFlowWaitList.asp?action=del&page="&page&"' name='form1'><tr bgcolor='#BF9B73' class='td4'><td width='28' align=center><input type='checkbox' name='checkall' value='checkbox' onClick='chkall(this)' class='radio' style='background-color:BF9B73;'></td><td width='140' align='center'>办文编号</td><td width='156' align='center'>标　　题</td><td width='61' align='center'>公文类别 </td><td width='145' align='center'>正　　文 </td><td width='83' align='center'>拟办意见</td><td width='61' align='center'>保密级别</td><td width='33' align='center'>附件</td><td width='80' align='center'>收文日期</td><td width='55' align='center'>状态</td><td width='67' align='center'>发文人</td></tr>"
if rs.recordcount<=0 then
response.Write "<tr><td colspan=11 bgcolor=FFFBE8 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='#FFFBE8' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#FFFBE8'><td width='28' align=center><input type='checkbox' name='MAID' value='"&rs("WS_FCID")&"' class='radio' style='background-color:FFFBE8;'></td><td width='140'>"&rs("WS_WorkFlowNumber")&"</td><td width='156'>"&rs("WS_WorkFlowTitle")&"</td><td width='61' align=center>"&WS_S.HX_OutWorkFlowType(rs("WS_WorkFlowFlowType"))&"</td><td width='145' title='"&rs("WS_WorkFlowContent")&"'>"&left(rs("WS_WorkFlowContent"),10)&"</td><td width='83' title='"&rs("WS_WorkFlowBrief")&"'>"&left(rs("WS_WorkFlowBrief"),10)&"</td><td width='61' align=center>"&rs("WS_WorkFlowGrade")&"</td><td width='33' 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='80' align=center>"&rs("WS_WorkFlowDate")&"</td><td width='55' 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='67' align=center>"
Call WS_S.HX_OutUserInfo(rs("WS_WorkFlowMan")):response.Write OutName&"</td></tr>"
ii=ii+1
if ii>=rs.PageSize then Exit Do
rs.movenext
loop
response.Write "<tr bgcolor='#BF9B73' class='td4'><td colspan='15' height='30'>&nbsp;<input type='checkbox' name='checkall' value='checkbox' onClick='chkall(this)' id='checkall' class='radio' style='background-color:BF9B73;'><label for='checkall'>全选</label>&nbsp;将选中全部&nbsp;<input name='del' type='submit' value='签收' style='font-size: 12px;color:#FFFBE8;border: 1px solid #000000;background-color: #BF9B73; '>	  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </tr>"
call WS_S.PageControl(iCount,maxpage,page,"border=0 align=right","<p align=right>",11)
end if
call WS_S.HX_RSClose(rs)
response.write "</form></table></td></tr></table>"%>