请教一下如何修改放弃维修后返回原报修人,不再在等待受理里面
更新记录到数据库rs2.addnew
rs2("wxry")=realname
rs2("bxid")=request("bxid")
rs2("wxfk")=request("wxfk")
rs2("weixiu")=request("wxfk")
rs2("wxly")=request("wxly")
rs2("wxtime")=now()
rs2.update
rs2.close
conn.close
response.write"<script>alert('成功放弃维修! ');location.replace('index.asp?T=shouli)')</script>"
end if
end if
else
<%if userid="" then
response.write"<script>alert('请先登录! ');location.replace('index.asp')</script>"
end if%>
<DIV class="mframe mR">
<DIV class=tl></DIV>
<DIV class=tr></DIV>
<DIV class=tm>
<SPAN class=tt>正在受理的工单</SPAN> </DIV>
<DIV class=wrapper>
<DIV class=ml></DIV>
<DIV class=mr></DIV>
<DIV class=mm><%call BWS_wxliebiao(wxlb,wxqy,realname,2)%>
</DIV></DIV>
<DIV class=bl></DIV>
<DIV class=br></DIV>
<DIV class=bm></DIV></DIV>
<DIV class="mframe mR">
<DIV class=tl></DIV>
<DIV class=tr></DIV>
<DIV class=tm>
<SPAN class=tt>等待受理的工单</SPAN> </DIV>
<DIV class=wrapper>
<DIV class=ml></DIV>
<DIV class=mr></DIV>
<DIV class=mm><%call BWS_wxliebiao(wxlb,wxqy,0,0)%>
</DIV></DIV>
<DIV class=bl></DIV>
<DIV class=br></DIV>
<DIV class=bm></DIV></DIV>
'//放弃维修
Sub BWS_fangqi(j)
If Not post_chk() Then
Response.write "不许外部提交数据!"
else
if shenfen=1 or shenfen=3 then
response.write "<div align=center>"
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from baoxiu where id="&j&""
set rs=conn.execute(sql)
response.write "<form action=weixiu.asp?action=fq method=post><table width=""60%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">"
response.write "<tr>"
response.write "<td height=""35"" colspan=""2""><div align=""center""></div></td>"
response.write "</tr>"
response.write "<tr>"
response.write "<td width=""40%"" height=""30""><div align=""center"">维修工单</div></td>"
response.write "<td width=""60%""><div align=""center"">"&rs("bxid")&"</div></td>"
response.write "</tr>"
response.write "<tr>"
response.write "<td width=""40%"" height=""30""><div align=""center"">维修人员</div></td>"
response.write "<td width=""60%""><div align=""center"">"&rs("wxry")&"</div></td>"
response.write "</tr>"
response.write "<tr>"
response.write "<td height=""30""><div align=""center"">放弃原因</div></td>"
response.write "<td height=""50"">"
response.write "<textarea name=""wxly"" id=""wxly"" cols=""45"" rows=""5""></textarea> <input type=""hidden"" name=""id"" value="""&j&""" />"
response.write "<input type=""hidden"" name=""bxid"" value="""&rs("bxid")&""" />"
response.write "<input type=""hidden"" name=""wxfk"" value=""0"" /></td>"
response.write "</tr>"
response.write "<tr>"
response.write "<td height=""10"" colspan=""2""><div align=""center""></div></td>"
response.write "</tr>"
response.write "<tr>"
response.write "<td colspan=""2"">"
response.write "<div align=""center"">"
response.write "<input type=""submit"" value=""提交"">"
response.write "</div></td>"
response.write "</tr>"
response.write "<tr>"
response.write "<td height=""10"" colspan=""2""><div align=""center""></div></td>"
response.write "</tr>"
response.write "</table>"
response.write "</form>"
conn.close
set conn=nothing
response.write "</div>"
else
Response.write "没有权限!"
end if
end if
end Sub