최초커밋
This commit is contained in:
30
business/busi_prj_control.asp
Normal file
30
business/busi_prj_control.asp
Normal file
@@ -0,0 +1,30 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
command = request("command")
|
||||
p_child_sn = request("p_child_sn")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
query = " "
|
||||
if command = "remove" Then
|
||||
query = query & " DELETE FROM job_projectlist "
|
||||
query = query & " WHERE p_user = '" & Session("user_number") & "' AND p_child_sn = '" & p_child_sn & "' "
|
||||
End if
|
||||
if command = "add" Then
|
||||
query = query & " INSERT INTO job_projectlist "
|
||||
query = query & " SELECT p_sn, p_subject, '" & Session("user_number") & "' AS p_user, 'manual' AS p_chk, 0 AS p_pre_sn, p_intention, p_child_sn "
|
||||
query = query & " FROM V_PROJECT_METHOD "
|
||||
query = query & " WHERE p_child_sn = '" & p_child_sn & "' "
|
||||
End if
|
||||
|
||||
adoConn.Execute query, resCnt
|
||||
|
||||
|
||||
if resCnt > 0 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
Reference in New Issue
Block a user