shenpiyuiajincbgsghsd.asp

来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 277 行

ASP
277
字号
<%@LANGUAGE="VBSCRIPT"%>
<%  
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<%
MM_authorizedUsers=""
MM_authFailedURL="../../index.asp"
MM_grantAccess=false
If Session("userssdfgfhtrh") <> "" Then
  If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
         (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
    MM_grantAccess = true
  End If
End If
If Not MM_grantAccess Then
  MM_qsChar = "?"
  If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
  MM_referrer = Request.ServerVariables("URL")
  if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
  MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
  Response.Redirect(MM_authFailedURL)
End If
%>
<!--#include file="../../Connections/oavbsconn.asp" -->
<%dim yijian,id,result,t,jb,br,tt
id=request("id")
br=request("办完日期")
yijian=request("yijian")
result=request("审核结果")
t=request("type")
if t="" then tt="审稿"
if t="qianyue" then tt="签阅"
if t="banli" then tt="办理"
jb=request("是否结毕")
if jb="是" then jb="是"
if jb="" then jb="否"

if t="" then t="审稿"
if t="banli" then t="办理"
if t="qianyue" then t="签阅"

%>
<%
if yijian="" then 
	  Response.Write("<script>alert(""请输入审稿意见!"");location=""javascript:history.back()"";</script>")  
	  Response.End
  end if
%>
<%
if  len(yijian)>65535then 
	  Response.Write("<script>alert(""您输入的内容超出数据库极限,系统最多接收的字符是65535个!"");location=""javascript:history.back()"";</script>")  
	  Response.End
  end if
%>
<%
Dim getimg__mMColParam
getimg__mMColParam = "1"
If (Session("userssdfgfhtrh") <> "") Then 
  getimg__mMColParam = Session("userssdfgfhtrh")
End If
%>
<%
Dim getimg
Dim getimg_numRows

Set getimg = Server.CreateObject("ADODB.Recordset")
getimg.ActiveConnection = MM_oavbsconn_STRING
getimg.Source = "SELECT fawenforimg  FROM usertertggbng  WHERE usersdsfg56 = '" + Replace(getimg__mMColParam, "'", "''") + "'"
getimg.CursorType = 0
getimg.CursorLocation = 2
getimg.LockType = 1
getimg.Open()
getimg_numRows = 0
%>
<% if not getimg.eof or not getimg.bof then%>
<%dim imgp
imgp=getimg("fawenforimg")
else
end if%>
<%
getimg.Close()
Set getimg = Nothing
%>
<%
Dim Recordset1__d
Recordset1__d = "1"
If (request("id") <> "") Then 
  Recordset1__d = request("id")
End If
%>
<%
Dim Recordset1__u
Recordset1__u = "1"
If (Session("userssdfgfhtrh") <> "") Then 
  Recordset1__u = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset1__t
Recordset1__t = "1"
If (tt <> "") Then 
  Recordset1__t = tt
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT *  FROM shouwenyijian  WHERE 审批ID=" + Replace(Recordset1__d, "'", "''") + " and 审批人帐号='" + Replace(Recordset1__u, "'", "''") + "' and 意见类型='" + Replace(Recordset1__t, "'", "''") + "'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 3
Recordset1.LockType = 3
Recordset1.Open()

if Recordset1.eof and Recordset1.bof then
Recordset1.addnew
Recordset1("审批id")=id
Recordset1("审批意见")=yijian
Recordset1("审批人帐号")=Session("userssdfgfhtrh")
Recordset1("审批人姓名")=Session("names")
Recordset1("审批人部门")=Session("bumen")
Recordset1("电子签名")=imgp
Recordset1("审稿结果")=result
Recordset1("意见类型")=t

Recordset1.update

Recordset1_numRows = 0

Recordset1.Close()
Set Recordset1 = Nothing

else
Recordset1.Close()
Set Recordset1 = Nothing

response.write"<script>alert('"&Session("names")&"很抱歉,您已提交本收文"&t&"意见。');location='"&request.ServerVariables("HTTP_REFERER")&"'</script>"
response.end()
end if
%>
<%
Dim r__MMColParam
r__MMColParam = "1"
If ("|"&session("names")    <> "") Then 
  r__MMColParam = "|"&session("names")   
End If
%>
<%
Dim r__d
r__d = "1"
If (request("id") <> "") Then 
  r__d = request("id")
End If
%>
<%dim q
q=request("q")%>
<%
Dim r
Dim r_numRows
Set r = Server.CreateObject("ADODB.Recordset")
r.ActiveConnection = MM_oavbsconn_STRING
r.Source = "SELECT *  FROM shouwen  WHERE (审稿人 like '%" + Replace(r__MMColParam, "'", "''") + "%' or 办理人 like '%" + Replace(r__MMColParam, "'", "''") + "%'or 签阅人 like '%" + Replace(r__MMColParam, "'", "''") + "%')and shouwen.id=" + Replace(r__d, "'", "''") + " and 开关='是'  ORDER BY shouwen.id desc"
r.CursorType = 0
r.CursorLocation = 2
r.LockType = 3
r.Open()
if q="" then
r("审稿否")="是"
r("审稿结果")=request("审核结果")
end if
if q="banli" then
r("办理否")="是"
r("办理结果")=request("审核结果")
end if
if q="qianyue" then
r("签阅否")="是"
r("签阅结果")=request("审核结果")
end if
r("收文结毕")=jb
if result="办完" then
r("办完日期")=br
end if
r("已审稿人")=r("已审稿人")&"|"&session("names")






r.update
r_numRows = 0
%>
<%
Dim rs__MMColParam
rs__MMColParam = "1"
If (id <> "") Then 
  rs__MMColParam = id
End If
%>
<%
Dim rs__u
rs__u = "1"
If (Session("userssdfgfhtrh") <> "") Then 
  rs__u = Session("userssdfgfhtrh")
End If
%>
<%
Dim rs
Dim rs_numRows
Set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = MM_oavbsconn_STRING
rs.Source = "SELECT *  FROM shouwenshengaoresult  WHERE 收文ID = '" + Replace(rs__MMColParam, "'", "''") + "' and 审稿人帐号='" + Replace(rs__u, "'", "''") + "'"
rs.CursorType = 0
rs.CursorLocation = 3
rs.LockType = 3
rs.Open()
if rs.eof and rs.bof then
rs.addnew()
rs("收文ID")=id
rs("审稿人帐号")=Session("userssdfgfhtrh")
rs("审稿人姓名")=Session("names")
rs("审稿人部门")=Session("bumen")
rs("审稿结果")=result
rs("最后审稿意见")=yijian
rs.update
rs_numRows = 0
%>
<%end if%>
<%
rs.Close()
Set rs = Nothing
%>
<%
Dim rs1__MMColParam
rs1__MMColParam = "1"
If (id <> "") Then 
  rs1__MMColParam = id
End If
%>
<%
Dim rs1__u
rs1__u = "1"
If (Session("userssdfgfhtrh") <> "") Then 
  rs1__u = Session("userssdfgfhtrh")
End If
%>
<%
Dim rs1
Dim rs1_numRows
Set rs1 = Server.CreateObject("ADODB.Recordset")
rs1.ActiveConnection = MM_oavbsconn_STRING
rs1.Source = "SELECT *  FROM shouwenshengaoresult  WHERE 收文ID = '" + Replace(rs1__MMColParam, "'", "''") + "' and 审稿人帐号='" + Replace(rs1__u, "'", "''") + "'"
rs1.CursorType = 0
rs1.CursorLocation = 2
rs1.LockType = 3
rs1.Open()
if not rs1.eof or not rs1.bof then
rs1("更新时间")=now()
rs1("审稿结果")=result
rs1("最后审稿意见")=yijian
rs1.update
rs1_numRows = 0
%>
<%
end if%>

<%
r.Close()
Set r = Nothing
%>
<%
rs1.Close()
Set rs1 = Nothing
%>
<%response.redirect "doshenpideatilvbgf.asp?id="&cint(id)&"&q="&request("q")%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?