ASP高手请进帮忙解决,小弟万分感谢!
以下是小弟的审核程序,现在出现的情况是,如果别人审核了这个任务,任务被退回以后,重新提交汇报,在审核的时候就提示('该任务已经有人正在审核!');请ASP高手帮忙解决一下,帮我加点程序,让管理员可以进去解锁。response.end
end if
id=request("id")
renwuid=request("renwuid")
Projectid=request("Projectid")
Projectname=request("Projectname")
set rs=server.CreateObject("adodb.recordset")
sql="select * from jierenwu where shenheemail='"&username&"' and shenhe=1 "
rs.open sql,conn,1,3
if not rs.eof then
response.Write "<script language=javascript>alert('您尚有任务未完成审核!');window.location.href='CheckMission_my.asp';</script>"
response.End
end if
rs.close
set rs=nothing
set rs=server.CreateObject("adodb.recordset")
sql="select * from jierenwu where id="&id&" "
rs.open sql,conn,1,3
if rs("useremail")=username then
response.Write "<script language=javascript>alert('对不起,你不能审核自己完成的任务!');history.go(-1);</script>"
response.End
end if
if len(rs("shenheemail"))=2 then
if rs("shenheemail")= username then
response.Write "<script language=javascript>alert('该任务你已申请审核,但是尚未完成审核!');window.location.href='shenhe2.asp?id="&id&"&renwuid="&renwuid&"&Projectid="&Projectid&"&Projectname="&Projectname&"';</script>"
response.End
else
response.Write "<script language=javascript>alert('该任务已经有人正在审核!');history.go(-1);</script>"
response.End
end if
else
rs("jiedate")=date()
rs("shenheemail")=username
rs("shenhe")=1
rs.update
rs.close
set rs=nothing
end if