최초커밋
This commit is contained in:
193
ess/project_report_ok_2014.asp
Normal file
193
ess/project_report_ok_2014.asp
Normal file
@@ -0,0 +1,193 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
set rsm = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
d_no = request("d_no")
|
||||
approve_pass = request("approve_pass")
|
||||
tmp_pass_psn = request("tmp_pass_psn")
|
||||
|
||||
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("target99"), "^^")
|
||||
for i = 0 to ubound(tmp)
|
||||
if trim(tmp(i)) = "" then
|
||||
if approve_pass = "1" then
|
||||
tmp(i) = "<22><><EFBFBD><EFBFBD>"
|
||||
else
|
||||
tmp(i) = Session("loginuser") & "<BR>" & replace(date(), "-", "") & "<BR>" & Session("User_Number")
|
||||
end if
|
||||
tmp_i = i
|
||||
exit for
|
||||
end if
|
||||
next
|
||||
|
||||
'----------------------------------------------------
|
||||
'target100<30><30> <20><>¥ <20><><EFBFBD><EFBFBD>
|
||||
tmp2 = split(rsc("target100"), "^^")
|
||||
tmp2(tmp_i) = month(now()) & " / " & day(now())
|
||||
'----------------------------------------------------
|
||||
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD>Ű<EFBFBD><C5B0><EFBFBD><EFBFBD> <20>ϳ<EFBFBD><CFB3><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>
|
||||
tmp_i = tmp_i + 1
|
||||
|
||||
'Response.Write "tmp_end : " & tmp_end & "<BR>"
|
||||
for i = int(rsc("d_order_cnt")) + 1 to ubound(tmp) + 1
|
||||
if rsc("d_order" & i) = "<22><><EFBFBD><EFBFBD>" or rsc("d_order" & i) = "NO" then
|
||||
tmp_order_value = "<22><><EFBFBD><EFBFBD>"
|
||||
|
||||
if rsc("d_order" & i) = "<22><><EFBFBD><EFBFBD>" then
|
||||
tmp_1 = "1"
|
||||
else
|
||||
tmp_1 = "0"
|
||||
end if
|
||||
|
||||
if tmp_1 = "1" then
|
||||
tmp(tmp_i) = tmp_order_value
|
||||
tmp_i = tmp_i + 1
|
||||
end if
|
||||
|
||||
else
|
||||
d_order_cnt = i
|
||||
d_orders = rsc("d_order" & i)
|
||||
exit for
|
||||
end if
|
||||
next
|
||||
|
||||
'Response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>
|
||||
'if trim(tmp(ubound(tmp) + 1)) <> "" then
|
||||
if i > ubound(tmp) + 1 then
|
||||
d_order_cnt = "77"
|
||||
d_orders = rsc("login_p_no")
|
||||
end if
|
||||
'Response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
|
||||
target99 = ""
|
||||
for i = 0 to ubound(tmp)
|
||||
if i <> 0 then
|
||||
target99 = target99 & "^^"
|
||||
end if
|
||||
target99 = target99 & tmp(i)
|
||||
next
|
||||
|
||||
target100 = ""
|
||||
for i = 0 to ubound(tmp2)
|
||||
if i <> 0 then
|
||||
target100 = target100 & "^^"
|
||||
end if
|
||||
target100 = target100 & tmp2(i)
|
||||
next
|
||||
|
||||
query = "UPDATE Document "
|
||||
query = query & "SET "
|
||||
query = query & " d_order_cnt = '" & d_order_cnt & "', "
|
||||
query = query & " d_orders = '" & d_orders & "' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>
|
||||
If d_order_cnt = "77" Then
|
||||
query = "UPDATE [project2].[dbo].[T_PROJECT_METHOD] "
|
||||
query = query & "SET p_progress_status = '008' "
|
||||
query = query & "WHERE p_sn = '" & rsc("p_sn") & "' "
|
||||
|
||||
If request("p_sub_type") = "C" Then
|
||||
query = query & " and p_child_sn = '" & request("p_child_sn") & "' "
|
||||
End if
|
||||
|
||||
adoconn.Execute query
|
||||
' response.write "query : " & query & "<br/>"
|
||||
|
||||
query = "UPDATE [project2].[dbo].[T_PROJECT_BASE] "
|
||||
query = query & "SET p_state = 'P' "
|
||||
query = query & "WHERE p_sn = '" & rsc("p_sn") & "' "
|
||||
|
||||
adoconn.Execute query
|
||||
' response.write "query : " & query & "<br/>"
|
||||
|
||||
query = "insert into <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & d_no & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'', '', "
|
||||
' query = query & "'" & user_name(0) & "', "
|
||||
' query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
adoconn.execute query
|
||||
|
||||
End if
|
||||
|
||||
query = "UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "SET "
|
||||
query = query & " target99 = '" & target99 & "', "
|
||||
query = query & " target100 = '" & target100 & "' "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
'Response.Write target99 & "<BR>"
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20><>ư Ŭ<><C5AC><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><> document_pass <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if approve_pass = "1" then
|
||||
query = "INSERT INTO [Document_pass] "
|
||||
query = query & "(d_no, d_orders, d_write_date, d_view, d_delok) "
|
||||
query = query & "VALUES "
|
||||
query = query & "('" & d_no & "', "
|
||||
query = query & " '" & tmp_pass_psn & "', "
|
||||
query = query & " '" & date() & "', "
|
||||
query = query & " 'Y', "
|
||||
query = query & " 'N') "
|
||||
end if
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<LINK rel="stylesheet" type="text/css" href="cfg/text.css">
|
||||
<title>
|
||||
|
||||
</title>
|
||||
<script language=javascript>
|
||||
function goit() {
|
||||
alert('<27><><EFBFBD>εǾ<CEB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
opener.location.reload();
|
||||
self.close();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="goit()">
|
||||
<form name="pms" method="post">
|
||||
|
||||
<input type="hidden" name="p_sn" value="<%=p_sn%>">
|
||||
|
||||
</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