30 lines
949 B
Plaintext
30 lines
949 B
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
command = request("command")
|
|
p_child_sn = request("p_child_sn")
|
|
|
|
Response.CharSet = "EUC-KR" 'ÇѱÛ
|
|
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
|
|
%> |