⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 receiptsp.asp

📁 功能非常强大的一款办公自动化软件原代码,其中的文档签收功能特别实用.不相信下下来看下.
💻 ASP
字号:
<!--#include file="check.asp"-->
<!--#INCLUDE FILE="connect.asp" --> 
<%if request.servervariables("Request_Method")="POST" then
ipaddress=request.servervariables("remote_addr")
applytime=CDate(now())
set rs=server.createobject("adodb.recordset")
sql="select * from newwork where id="&Clng(request("nwid"))
rs.open sql,conn,1,1
peoplelist=rs("userlist")
rs.close

 if peoplelist<>"" then
 postion=instr(peoplelist,";")
   if postion=len(peoplelist) then
nextpeople=left(peoplelist,postion-1)
peoplelist=""
       else
 nextpeople=left(peoplelist,postion-1)
 peoplelist=mid(peoplelist,postion+1) 
       end if
	   else
	   nextpeople=""
	   end if
	   sql="select * from applygz where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("flowid")=Clng(request("flowid"))
rs("handlename")=session("username")
rs("handleid")=session("uid")
rs("nextid")=nextpeople
rs("handletime")=applytime
rs("ipaddress")=ipaddress
rs("handletype")="7"
rs("remark")=request("yijian")
rs.update
rs.close
if request("choose")="1" then
sql="select * from applyreceipt where id="&Clng(request("flowid"))
rs.open sql,conn,1,3
rs("yijian")="<font color='blue'>"&rs("yijian")&request("yijian")&session("username")&"&nbsp;"&date()&"</font>"&"<br>"
if nextpeople="" then
rs("donetime")=applytime
rs("status")="1"
end if
rs.update
title=rs("title")
applyname=rs("applyname")
applyid=rs("applyid")
rs.close
if nextpeople="" then
sql="select * from mail where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("topeopleid")=applyid
rs("title")="("&title&")报销申请通过!"
rs("text")="您的报销申请已经批准通过,<a href='readreceipt.asp?flowid="&Clng(request("flowid"))&"' class='readsp'>查看详细内容</a>"
rs("mailtime")=applytime
rs("senderid")=session("uid")
rs("sendername")=session("username")
rs("ipaddress")=ipaddress
rs.update
rs.close
else
sql="select * from newwork where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("userid")=nextpeople
rs("userlist")=peoplelist
rs("title")=title
rs("typed")="报销申请"
rs("url")="receiptsp.asp"
rs("baseid")=Clng(request("flowid"))
rs("applytime")=applytime
rs.update
rs.close

end if
else
sql="select * from applyreceipt where id="&Clng(request("flowid"))
rs.open sql,conn,1,3
rs("yijian")="<font color='red'>"&rs("yijian")&request("yijian")&session("username")&"&nbsp;"&date()&"</font>"
rs("donetime")=applytime
rs("status")="2"
rs.update
title=rs("title")
applyid=rs("applyid")
rs.close
sql="select * from mail where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("topeopleid")=applyid
rs("title")="("&title&")报销申请被拒绝!"
rs("text")="您的报销申请拒绝通过!<a href='readreceipt.asp?flowid="&Clng(request("flowid"))&"' class='readsp'>查看详细内容</a>"
rs("mailtime")=applytime
rs("senderid")=session("uid")
rs("sendername")=session("username")
rs("ipaddress")=ipaddress
rs.update
rs.close
end if
sql="select donetime,status from newwork where id="&Clng(request("nwid"))
rs.open sql,conn,1,3
rs("donetime")=applytime
rs("status")="1"
rs.update
rs.close
response.write("<script language=javascript>alert('提交审批意见成功!')</script>")
response.write("<script>document.location='right.asp'</script>")
response.end
end if
%>
<html>
<head>
<title>报销审批单</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" src="apply.js"></script>
<link rel="stylesheet" href="apply.css" type="text/css">
</head>
<!--#include file="checkuser.asp"-->
<%set rs=server.createobject("adodb.recordset")
sql="select * from applyreceipt where id="&Clng(request("flowid"))
rs.open sql,conn,1,1
if rs.eof then
response.redirect "error.htm"
response.end
end if
%>
<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false">
<form name="form" method="post" action="">
              
  <table cellpadding="0" cellspacing="0" width="100%" class=main-table>
    <tr> 
      <td valign="top" align="center" colspan="3"> 
        <table width="90%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
           <td height="50" class="title" align="center"> <img src="images/receiptsp.gif"></td>
          </tr>
        </table>
        <table cellpadding="2" cellspacing="1" width="90%" height="250" bgcolor="#7777777">
          <tr valign="middle" bgcolor="f0f0f0" > 
            <td width="15%" height="35"> 
              <div align="center">报销名称:</div>
            </td>
            <td height="35" colspan="3" class="applygz"><%=rs("title")%> </td>
          </tr>
          <tr bgcolor="f0f0f0"> 
            <td height="35" width="15%" valign="middle"> 
              <div align="center">报销类型:</div>
            </td>
            <td height="35" valign="middle" width="32%" class="applygz"> 
              <div align="left"><%=rs("name")%></div>
            </td>
            <td height="35" valign="middle" width="15%" align="center">报销金额:</td>
            <td height="35" valign="middle" width="38%" class="applygz"><%=rs("money")%></td>
          </tr>
          <tr bgcolor="f0f0f0"> 
            <td height="35" width="15%" valign="middle"> 
              <div align="center"> 详细说明: </div>
            </td>
            <td colspan="3" height="35" valign="middle" class="applygz"> <%=rs("bz")%> 
            </td>
          </tr>
          <tr bgcolor="f0f0f0"> 
            <td height="35" width="15%"> 
              <div align="center">申 请 人:</div>
            </td>
            <td height="35" width="32%"> 
              <div align="left" class="applygz"><%=rs("applyname")%></div>
            </td>
            <td height="35" width="15%"> 
              <div align="center">所在部门:</div>
            </td>
            <td height="35" width="38%" class="applygz"> 
              <div align="left"><%=rs("dep")%></div>
            </td>
          </tr>
          <tr bgcolor="f0f0f0"> 
            <td height="35" width="15%"> 
              <div align="center">审批结果:</div>
            </td>
            <td height="35" colspan="3" class="applygz"><%=rs("yijian")%></td>
          </tr>
         <tr bgcolor="f0f0f0"> 
            <td width="15%" height="100" bgcolor="f0f0f0"><div align="center">审批意见:</div></td>
            <td height="100" bgcolor="f0f0f0" colspan="3"><table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="31" bgcolor="f0f0f0" class="applygz"><input type="radio" name="radio" value="radiobutton" checked onClick="bxspwriteyes()">
      批准报销申请
        <input type="radio" name="radio" value="radiobutton" onClick="bxspwriteno()">
      拒绝报销申请</td>
              </tr>
              <tr>
                <td bgcolor="ffffff"><textarea name="yijian" style="width:100%;height:100%;" class="14textarea">同意报销申请!</textarea>
                </td>
              </tr>
            </table></td>
         </tr>
  
  </table>
        <table width="90%" height="40"  border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="41%" align="right"><input type="image" name="send" value=" 提 交 " onClick="return checkbxsp();return false;" src="images/okgif.gif" alt="确定"></td>
            <td width="8%">&nbsp;</td>
            <td width="51%"><input  type="image" name="send2" value=" 返 回 " onClick="history.go(-1);return false;" src="images/fanhuigif.gif" alt="返回">
              <input type="hidden" name="choose" value="1">
              <input type="hidden" name="flowid" value="<%=Clng(request("flowid"))%>">
              <input type="hidden" name="nwid" value="<%=Clng(request("nwid"))%>"></td>
          </tr>
        </table>
      </form>
          
<!--#include file="close.asp"-->

 </body>
</html>

⌨️ 快捷键说明

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