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

📄 func_re_office.asp

📁 企业办公简单管理系统,可以发布信息以及论坛
💻 ASP
字号:

<!-- #include file="func_verify.asp" -->
<%
function CheckInfo(str)
	dim i
	CheckInfo=""
	if not isnull(str) then 
		for i=1 to len(str)
			if mid(str,i,1)=" " then
				CheckInfo=CheckInfo&"&nbsp;"
			elseif mid(str,i,1)=chr(13) and mid(str,i+1,1)=chr(10) then
				CheckInfo=CheckInfo&"<br>"
				i=i+1
			else
				CheckInfo=CheckInfo&mid(str,i,1) 
			end if
		next
	end if
end function

set rs = Server.CreateObject("ADODB.Recordset")

if request("saveflag")="1" then
	sql="select * from cci_oa_approve"
	rs.open sql,connobj,3,3
	rs.addnew
	
	rs("wfid")=request("wfid")
	rs("deptid")=session("deptid")
	rs("stationid")=session("stationid")
	rs("userid")=session("userid")
	rs("dotime")=now
	rs("notion")=request("notion")
	if trim(request("reason"))<>"" then
		rs("reason")=request("reason")
	end if
	
	
	rs.update
	rs.close
	connobj.execute "proc_run_wf "& request("wfid") & "," & request("notion")
	response.Redirect "message.asp?rediurl=defaultA.asp&msgurl=首页&msginfo=审批操作成功!"
end if


sql="select a.telephone,a.drawer,a.theKey,a.PencilVase,a.gluewater,a.BallPen,a.workcard,a.folder,a.notebook,a.paper,a.cubbyhole,a.stapler,a.memo,b.name,c.deptname,d.stationname from cci_oa_office a,cci_user b,cci_dept c,cci_station d where a.deptid=c.id and a.userid=b.id and b.stationid=d.id and a.wfid="& request("wfid")
rs.open sql,connobj,1,1
if rs.eof then
	rs.close
	response.Redirect "message.asp?rediurl=defaultA.asp&msgurl=首页&msginfo=没有找到相关信息!"
end if	
%>
<table width="100%" align="center" cellpadding="1" cellspacing="1" class=tableborder1>
    <tr > 
      <th height="25" colspan="6" align="center" class=TopLighNav>员工办公用品申请审批</th>
    </tr>
    <tr>
      <td width="90" align="center" class=TopLighNav><b>部门</b></td>
      <td width="100" align="center" class=TopLighNav><%=rs("deptname")%></td>
	  <td width="80" align="center" class=TopLighNav><b>申请人</b></td>
      <td width="80" align="center" class=TopLighNav><%=rs("name")%></td>
	  <td width="80" align="center" class=TopLighNav><b>职务</b></td>
      <td align="center" class=TopLighNav><%=rs("stationname")%></td>
    </tr>
      <td width="90" align="center" class=tablebody1>电话机</td>
      <td width="100" align="center" class=tablebody1><%if rs("telephone")>0 then response.Write rs("telephone") & "部"%>
        </td>
	  <td width="80" align="center" class=tablebody1>三抽柜</td>
      <td width="80" align="center" class=tablebody1><%if rs("drawer")>0 then response.Write rs("drawer") & "个"%>
        </td>
	  <td width="80" align="center" class=tablebody1>钥匙</td>
      <td align="center" class=tablebody1><%if rs("theKey")>0 then response.Write rs("theKey") & "把"%>
        </td>
    </tr>
 <tr>
      <td width="90" align="center" class=tablebody1>笔 筒</td>
      <td width="100" align="center" class=tablebody1><%if rs("PencilVase")>0 then response.Write rs("PencilVase") & "个"%>
        </td>
	  <td width="80" align="center" class=tablebody1>胶 水</td>
      <td width="80" align="center" class=tablebody1><%if rs("gluewater")>0 then response.Write rs("gluewater") & "支"%>
         </td>
	  <td width="80" align="center" class=tablebody1>圆珠笔</td>
      <td align="center" class=tablebody1><%if rs("BallPen")>0 then response.Write rs("BallPen") & "支"%>
         </td>
    </tr>
	 <tr>
      <td width="90" align="center" class=tablebody1>工卡</td>
      <td width="100" align="center" class=tablebody1><%if rs("workcard")>0 then response.Write rs("workcard") & "个"%>
        </td>
	  <td width="80" align="center" class=tablebody1>文件夹</td>
      <td width="80" align="center" class=tablebody1><%if rs("folder")>0 then response.Write rs("folder") & "个"%>
        </td>
	  <td width="80" align="center" class=tablebody1>笔记本</td>
      <td align="center" class=tablebody1><%if rs("notebook")>0 then response.Write rs("notebook") & "本"%>
        </td>
    </tr>
		 <tr>
      <td width="90" align="center" class=tablebody1>便签纸</td>
      <td width="100" align="center" class=tablebody1><%if rs("paper")>0 then response.Write rs("paper") & "本"%>
        </td>
	  <td width="80" align="center" class=tablebody1>文件架</td>
      <td width="80" align="center" class=tablebody1><%if rs("cubbyhole")>0 then response.Write rs("cubbyhole") & "个"%>
        </td>
	  <td width="80" align="center" class=tablebody1>订书机</td>
      <td align="center" class=tablebody1><%if rs("stapler")>0 then response.Write rs("stapler") & "台"%>
        </td>
    </tr>
	 <tr >
      <td class=tablebody1 align="center"><b>备注</b></td>
      <td colspan="5" class=tablebody1 align="left"><%=rs("memo") %>
        <font color="#FF0000">*</font></td>
    </tr>	

</table>
 
<%
rs.close
%>
<!-- #include file="func_comm_dispapply.asp" -->
<%
sql="select status,startuser from cci_oa_flowlist where id="& request("wfid")
rs.open sql,connobj,1,1
if not rs.eof then
	istatus=rs("status")
	if rs("startuser")=session("userid") and isstatus=0 then
		connobj.execute "update cci_oa_flowlist set status=3 where id=" & request("wfid")
	end if
end if
rs.close
if istatus<>0 and istatus<>3 then
%>
<!-- #include file="func_comm_apply.asp" -->
<%
end if
%>

⌨️ 快捷键说明

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