최초커밋
This commit is contained in:
122
ess/project_reason_delok_2014.asp
Normal file
122
ess/project_reason_delok_2014.asp
Normal file
@@ -0,0 +1,122 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set rsd = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
d_no = request("d_no")
|
||||
del_reason = CheckWord(request("del_reason"))
|
||||
|
||||
p_sn = request("p_sn")
|
||||
p_sub_type = request("p_sub_type")
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document as a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_no='" & d_no & "' "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp = split(rsc("target1"), "^^")
|
||||
for i = 0 to ubound(tmp)
|
||||
if trim(tmp(i)) = "" then
|
||||
tmp(i) = Session("loginuser") & "<BR>" & replace(date(), "-", "") & "<BR><3E>ݷ<EFBFBD>"
|
||||
exit for
|
||||
end if
|
||||
next
|
||||
|
||||
target1 = ""
|
||||
for i = 0 to ubound(tmp)
|
||||
if i <> 0 then
|
||||
target1 = target1 & "^^"
|
||||
end if
|
||||
target1 = target1 & tmp(i)
|
||||
next
|
||||
|
||||
query = "UPDATE Document "
|
||||
query = query & "SET "
|
||||
query = query & " d_delok = 'Y', "
|
||||
query = query & " d_order_cnt = '99' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
query = "UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "SET "
|
||||
query = query & " target1 = '" & target1 & "', "
|
||||
query = query & " del_yes_no = 'yes', "
|
||||
query = query & " del_date = '" & date() & "', "
|
||||
query = query & " del_time = '" & time() & "', "
|
||||
query = query & " del_ip = '" & Request.ServerVariables("REMOTE_ADDR") & "', "
|
||||
query = query & " del_user_name = '" & Session("loginuser") & "', "
|
||||
query = query & " del_reason = '" & del_reason & "' "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
|
||||
query = "select <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, p_sn, p_child_sn, d_order_cnt "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as A "
|
||||
query = query & "LEFT OUTER JOIN Document AS B "
|
||||
query = query & "ON A.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = B.d_no "
|
||||
query = query & "where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDR") = "10.10.14.53" then
|
||||
'Response.Write query & "<BR>"
|
||||
end If
|
||||
|
||||
rsd.Open query, adoConn, 1
|
||||
if rsd.RecordCount > 0 Then
|
||||
tmp_p_sub_type = rsd("p_child_sn")
|
||||
End If
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ p_progress_status<75><73> 006<30><36><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
query = "UPDATE [project2].[dbo].[T_PROJECT_METHOD] "
|
||||
query = query & "SET p_progress_status = '006' "
|
||||
query = query & "WHERE p_sn = '" & p_sn & "' "
|
||||
|
||||
If InStr(tmp_p_sub_type, "_C") > 0 Then
|
||||
query = query & "and p_sub_type = 'C' "
|
||||
query = query & "and p_child_sn = '" & rsd("p_child_sn") & "' "
|
||||
Else
|
||||
query = query & "and p_sub_type = 'M' "
|
||||
End If
|
||||
rsd.close
|
||||
|
||||
adoconn.Execute query
|
||||
'response.write "query : " & query & "<br/>"
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ p_state<74><65> K<><4B> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
query = "UPDATE [project2].[dbo].[T_PROJECT_BASE] "
|
||||
query = query & "SET p_state = 'K' "
|
||||
query = query & "WHERE p_sn = '" & p_sn & "' "
|
||||
|
||||
adoconn.Execute query
|
||||
' response.write "query : " & query & "<br/>"
|
||||
%>
|
||||
|
||||
<html>
|
||||
<script>
|
||||
function goit() {
|
||||
alert('<27>ݷ<EFBFBD><DDB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
opener.close();
|
||||
}
|
||||
</script>
|
||||
<body onLoad="goit()">
|
||||
<form name="pms" method="post">
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
else
|
||||
alert2 "DB <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>"
|
||||
end if 'if rsc.RecordCount > 0 then
|
||||
rsc.Close
|
||||
%>
|
||||
Reference in New Issue
Block a user