<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->

<html>
<head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>

<style type="text/css">
<!--
.STYLE3 {color: #990033}
-->
</style>
<body> 

<form name="form1" method="get" action="Daishenpi.asp"  onSubmit="return CheckForm();">
<table width="100%" height="495" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="27">
	<div class="header">
	<div class="nav">
        <ul>
           
            <li><a href="shenqing.asp" target="_self">维修申报</a></li> 
			
            <li><a href="main.asp" target="_self">已申报列表</a></li>
			<li class="on">维修处理</li>
			<li><a href="Yishenpi.asp?qdtype=未处理" target="_self">已处理维修</a></li>
			<li><a href="Findbaoxiu.asp" target="_self"> 维修统计</a></li>
        </ul>
    </div>	
	</td>
  </tr>
 
  <tr>
   <td height="470" valign="top"   class="NemuMainBox">
	 <div align="center"><br>
	   
	   
	 <%
	 
	  tname=request.cookies("tname")
      leibie=request("leibie")
	 
	 %>  
	   
	   	
<div align="center">
<table width="95%" height="30" border="1" align="center" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtablehui">
  <tr style="background-color:#D6E4FF"  class="TableHeader">
    <td height="30" colspan="3" align="center" nowrap class="NemuNot">
  <table width="207" height="32" border="0" align="center" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8" >   
      <tr>
        <td width="45" nowrap class="STYLE1"><div align="right">类别</div></td>
        <td width="150" nowrap class="STYLE1">
          <div align="left">
            <select name="leibie" id="leibie"  style= "width:100px"    onChange="submit()"> >
              <option><%=leibie%></option>
              <option></option>
              <% Set RSsel = Conn.Execute("select vname from  varset where name='baoxiutype'")
								   While NOT RSsel.EOF %>
              <OPTION value=<%=RSsel( "vname" )%>><%=RSsel( "vname" )%></OPTION>
              <% RSsel.MoveNext
								  Wend
								  RSsel.Close%>
            </select>
            </div></td>
        </tr>
    </table>
	
	</td>
  </tr>
</table>
    </div>
  <br>
	   
	   
	   
	   
	    <%
  

'检查权限
       Set MyOAASPObj = Server.CreateObject("YFSchoolOApro.YFSchoolDll")
           if MyOAASPObj.QuanXian(tname,"报修处理")=0 then 
		   
		   
		   
		      Set RsDaipi=Server.CreateObject("Adodb.Recordset")
                  sqldaipi="SELECT  count(*)  as shuliang  FROM  shiwu where  shiwu='报修' and  jindu='待处理'  and   shiwutype like  '%"&leibie&"%'  "
                  RsDaipi.open sqldaipi,conn,1,1
 		       
			     
				  response.write ("<br><br><br><br><br><br>")
				  response.write (tname&"你好:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>")
				  response.write ("还有 "&RsDaipi("shuliang")&" 件报修正在进行中<br><br>请耐心等待！&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")
				 
				  response.end()
		
			
			
			
			
           end if 
		   set MyOAASPObj=nothing
'检查权限结束
   
   
   
    
   
   Set RsDaipi=Server.CreateObject("Adodb.Recordset")
   sqldaipi="SELECT  *   FROM  shiwu where  shiwu='报修' and  jindu='待处理'  and   shiwutype like  '%"&leibie&"%'  order by id desc  "
   RsDaipi.open sqldaipi,conn,1,1
   
   
   
   if RsDaipi.eof and  RsDaipi.bof then %>
	   <br>
	   <br>
	   <br>
	   <br>
	   <br>
	   <br>
	   <br>
	   <br>
	   <br>
      </div>
	 <div align="center" class="STYLETITLE" title="提示信息框">
                 <span style="BACKGROUND:#EEEEFF;COLOR:#FF6633;margin: 10px;border:1px dotted #FF6633;
				 font-weight:bold;padding:8px;width=140">
                 无未处理的报修</span>                 </div>
                 <%else %>
   
   


<%
   RsDaipi.pagesize=8 '每页记录条数
   curpage=Request.QueryString("curpage") '将URL参数curpage传给curpage变量
   RsDaipi.absolutepage=curpage '将本页设为curpage设置的页数
   if curpage=0 then
     curpage=1
   end if 
%>

  
 
<table width="95%" border="1" align="center" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">   
<tr style="background-color:#D6E4FF"  class="TableHeader">
  <td align="center" nowrap class="STYLE1">报修类型</td>
       <td height="28" align="center" nowrap class="STYLE1">报修人</td>
     
       <td align="center" nowrap class="STYLE1">报修内容</td>
       <td align="center" nowrap class="STYLE1">报修时间</td>
       <td align="center" nowrap class="STYLE1">进度</td>
	   <td  align="center" nowrap class="STYLE1">处理人</td>
    <td width="181" align="center" nowrap class="STYLE1"><div align="right" class="STYLE10">
      <div align="center">操作</div>
    </div></td>
  </tr>


<%
   for i= 1 to RsDaipi.pagesize
      if RsDaipi.eof then
         exit for
      end if
%>
    <tr>
      <td width="85" align="center" nowrap class="STYLE1"><%=RsDaipi("shiwutype")%></td>
      <td width="80" height="38" align="center" nowrap class="STYLE1"> 
	   <% if  RsDaipi("代报")<>""  then %>
	         <%=RsDaipi("代报")%>
	      (<%=RsDaipi("tname")%>代报)
	   <%else  %>
	       <%=RsDaipi("tname")%>
	      
	   <%end if  %>	  </td>
      <td width="491" align="left" class="STYLE1">&nbsp; <%=RsDaipi("content")%> </td>
      <td width="80" align="center" nowrap class="STYLE1"><div align="center" class="STYLE4"><%=RsDaipi("updatetime")%></div></td>
      <td  width="80"  align="center" nowrap class="STYLE1"><%=RsDaipi("jieguo")%></td>
	  <td  width="80"  align="center" nowrap class="STYLE1"><%=RsDaipi("chuliren")%></td>
      <td  width="150"  align="center" nowrap class="STYLE1">
	  <a href="modify.asp?jindu=知道了&ID=<%=RsDaipi("id")%>">知道了</a>
	  <a href="modify.asp?jindu=维修中&ID=<%=RsDaipi("id")%>">维修中</a>
	  <a href="shenpi.asp?ID=<%=RsDaipi("id")%>">完成</a>	  </td>
	  
	</tr>
<%  RsDaipi.movenext
    next%>
</table>
  <br>
  <div>
  <div align="center"></div>
</div>
<div align="center">
  
  <span class="STYLE1">
  <%if curpage=1 then%>
首页
<%else%>
<a href="?leibie=<%=leibie%>&seetype=待处理&curpage=1">首页</a>
<%end if%>

<%if curpage=1 then%>
上一页
<%else%>
<a href="?leibie=<%=leibie%>&seetype=待处理&curpage=<%=curpage-1%>">上一页</a>
<%end if%>

<%if RsDaipi.pagecount<curpage+1 then%>
下一页
<%else%>
<a href="?leibie=<%=leibie%>&seetype=待处理&curpage=<%=curpage+1%>">下一页</a>
<%end if%>

<%if RsDaipi.pagecount<curpage+1 then%>
尾页
<%else%>
<a href="?leibie=<%=leibie%>&seetype=待处理&curpage=<%=RsDaipi.pagecount%>">尾页</a>
<%end if%>
(当前第<%=curpage%>页，共有<%=RsDaipi.pagecount%>页，共有：<%=RsDaipi.recordcount%>条记录)</span></div>


    <%end if%>    </td>
  </tr>
</table>
</FORM>
</body>
</html>
