journal_new_exe.asp

来自「一个比较完整的企业erp系统」· ASP 代码 · 共 39 行

ASP
39
字号
<!--#include file="../config2.asp"-->
<!--#include file="../inc/check_login.asp"-->
<!--#include file="../inc/functions.asp"-->
<%
Application_ID = 2000600	'本功能编号,含义请查看编码表
if not CheckAuth(Session("Employee_ID"),Application_ID)	then	'验证权限
	Server.Transfer "../err/un_authorized.htm"
	response.end
end if
%>
<!--**************身份验证部分****************-->
<%
Project_ID = request("Project_ID")
Journal_Date = request("Journal_Date")
Contact_Person_ID = request("Contact_Person_ID")
Journal_Content = request("Journal_Content")
if not IsNot(Project_ID,"n") then
	response.write "项目编号丢失"
	response.end
end if
if not IsNot(Contact_Person_ID,"n") then Contact_Person_ID = 0

Set conn = Server.CreateObject("ADODB.Connection")
conn.open connstr
sql = "insert into Projects_Journal(Project_ID,Journal_Date,Contact_Person_ID,Journal_Content,Employee_ID) values(" & Project_ID & ",'" & Journal_Date & "'," & Contact_Person_ID & ",'" & Journal_Content & "'," & Session("Employee_ID") & ")"
'response.write sql
conn.execute(sql)
conn.close
set conn = nothing

'操作日志
Rec_Content = "添加项目日志"
Command_Line = sql
call Op_Rec(Rec_Content,Command_Line)
%>
成功添加项目日志!
<script language="JavaScript" type="text/javascript">
	parent.main.location.reload();
</script>

⌨️ 快捷键说明

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