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

📄 delete.asp

📁 功能齐全的oa系统
💻 ASP
字号:
	<% option explicit%>
<!-- #include virtual="include/MyFunc.asp" -->
<!-- #include virtual="include/DataEnvi.asp" -->
<!-- #include virtual="include/Page.asp" -->
<%
	
	If Request.Form.Count > 0 Then
	if request("OpeDesc")<>"" then
	Dim ObjDB,StrSQL,ObjRS,ObjRSH
	Dim C,IntIDs

	IntIDs=Request.QueryString("IDs")
	Set ObjDB = Server.CreateObject("ADODB.Connection")
	OpenDBH ObjDB
	
	StrSQL = "Select Count(*) From V_Hrms_Reason_FromRequire Where Reason In (" & IntIDs & ")"
   	Set ObjRSH = ObjDB.Execute(StrSQL)

	Set C = Server.CreateObject ("CMS2003.DBhandle")
	C.Init(ObjDB)
	if ObjRSH(0)=0 then

	Call C.Delete(IntIDs,"T_Hrms_Sys_AppReason")
	
	'添加日志
dim FirstMenu,SecondMenu,Opertion,OTime,OName,OIP,ODesc,OChang
OIP=Request.ServerVariables("REMOTE_ADDR")
OName= Session("AccountName") 

if OName="administrator" then
OName="系统管理员"
end if

call AddLog("系统管理","申请理由","删除",now(),OName ,OIP,request("OpeDesc"),"",ObjDB)
   '添加日志结束

	ObjDB.Close
	Set ObjDB = Nothing
	Response.Redirect "List.asp"
	
	 else
          call MsgBox("该信息在招聘管理里有调用,不能删除!","Back","none")
           response.end  
        end IF
	
	else
	 call MsgBox("原因不能为空!","Back","none")
	end if
	
	end if
	
%>
<BODY >
<table width="75%" border="0">
  <tr>
    <td>请填写删除原因! </td>
  </tr>
  <tr>
    <td><form name="form1" method="post" action="">
  <p>
    <textarea name="OpeDesc" id="OpeDesc" rows="10" cols="60"></textarea>
  </p>
  <p>
    <input type="submit" name="Submit" value="提 交" class=Button>
  </p>
</form></td>
  </tr>
</table>
</BODY>
	
	

⌨️ 快捷键说明

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