최초커밋
This commit is contained in:
225
ess/request_ok.asp
Normal file
225
ess/request_ok.asp
Normal file
@@ -0,0 +1,225 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include virtual = "include/holiday_count.asp" -->
|
||||
<%
|
||||
set adors2 = server.CreateObject("ADODB.RECORDSET")
|
||||
set adors3 = server.CreateObject("ADODB.RECORDSET")
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
'Response.Write d_no & "'<br>"
|
||||
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
|
||||
if x = "7" then '<27>ް<EFBFBD><DEB0><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
query = "UPDATE Document "
|
||||
query = query & "SET "
|
||||
query = query & " d_order_cnt = '99', "
|
||||
query = query & " d_view = 'N', "
|
||||
query = query & " d_delok = 'Y' "
|
||||
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 & " 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 = 'ó<><C3B3><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>', "
|
||||
query = query & " del_yes_no = 'yes' "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
else
|
||||
'd_orders<72><73> <20><><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD> <20><>ü
|
||||
query = "UPDATE Document "
|
||||
query = query & "SET "
|
||||
query = query & " d_orders = '" & rsc("login_p_no") & "' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
end if
|
||||
|
||||
if x = "2" Or x = "7" then '<27>ް<EFBFBD><DEB0><EFBFBD> ó<><C3B3>
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> job<6F><62><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
'tmp_1 Job_Code, tmp_2 <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD>(h)
|
||||
if rsc("target3") = "<22><><EFBFBD><EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "8"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" then
|
||||
tmp_1 = "10"
|
||||
tmp_2 = "4"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" then
|
||||
tmp_1 = "11"
|
||||
tmp_2 = "4"
|
||||
elseif instr(1, rsc("target3"), "<22><><EFBFBD><EFBFBD>") then
|
||||
tmp_1 = "18"
|
||||
tmp_2 = "8"
|
||||
elseif instr(1, rsc("target3"), "<22><><EFBFBD><EFBFBD>") then
|
||||
tmp_1 = "12"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "14"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22>Ƚ<EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "15"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "16"
|
||||
tmp_2 = "8"
|
||||
elseif instr(1, rsc("target3"), "<22><><EFBFBD><EFBFBD>") then
|
||||
tmp_1 = "17"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><>ü <20><EFBFBD>" then
|
||||
tmp_1 = "9"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><>Ÿ <20>ް<EFBFBD>" then
|
||||
tmp_1 = "19"
|
||||
tmp_2 = "8"
|
||||
end if
|
||||
|
||||
for i = cdate(rsc("target1")) to cdate(rsc("target2"))
|
||||
tmp_chk = "0"
|
||||
Call day_off_chk(year(i), month(i), day(i))
|
||||
if day_off = "true" then
|
||||
tmp_chk = "1"
|
||||
End if
|
||||
|
||||
if tmp_chk = "0" then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ƴ϶<C6B4><CFB6><EFBFBD>
|
||||
p_no = rsc("login_p_no") ''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
if x = "2" Then
|
||||
query = " SELECT * "
|
||||
query = query & " FROM Job_List "
|
||||
query = query & " WHERE p_no = '" & p_no & "' "
|
||||
query = query & " AND j_contents = '" & tmp_1 & "' "
|
||||
query = query & " AND j_date = '" & i & "' "
|
||||
query = query & " AND j_Flag = '1' "
|
||||
|
||||
adors2.Open Query, adoConn,1' adOpenStatic, adLockReadOnly
|
||||
If adors2.RecordCount > 0 Then
|
||||
tmp_proc = "1"
|
||||
else
|
||||
tmp_proc = "0"
|
||||
End If
|
||||
adors2.Close
|
||||
'+++++++++++------------------------------------------------
|
||||
if tmp_proc = "0" then
|
||||
query = " "
|
||||
query = query & " INSERT INTO Job_List(p_no, j_date, j_p_sn, j_contents, j_time, j_ip) VALUES "
|
||||
query = query & " (" & p_no & ", '" & i & "', '99999', " & tmp_1 & ", " & tmp_2 & ", '" & Request.ServerVariables("REMOTE_ADDR") & "') "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
End if
|
||||
Elseif x = "7" Then
|
||||
query = " UPDATE Job_List SET "
|
||||
query = query & " j_flag = '0' "
|
||||
query = query & " WHERE p_no = '" & p_no & "' "
|
||||
query = query & " AND j_contents = '" & tmp_1 & "' "
|
||||
query = query & " AND j_date = '" & i & "' "
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
End if
|
||||
End if
|
||||
Next
|
||||
elseif x = "6" then '<27><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3>
|
||||
p_no = request("txt_p_no") ''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
p_name = request("txt_p_name") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
line_cnt = request("txt_line_cnt") '<27><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>
|
||||
|
||||
dim gap()
|
||||
redim gap(line_cnt,6)
|
||||
for i=1 to line_cnt
|
||||
gap(i,1) = request("gap1")(i)
|
||||
gap(i,2) = request("gap2")(i)
|
||||
gap(i,3) = request("gap3")(i)
|
||||
gap(i,4) = request("gap4")(i)
|
||||
gap(i,5) = replace(request("gap5")(i)," ","")
|
||||
gap(i,6) = replace(request("gap6")(i)," ","")
|
||||
for j=1 to 6
|
||||
gap(i,j) = replace(gap(i,j)," ","")
|
||||
gap(i,j) = replace(gap(i,j)," ","")
|
||||
next
|
||||
if not isEmpty(gap(i,5)) and not isnull(gap(i,5)) and gap(i,5) <> " " and trim(gap(i,5)) <> "" then
|
||||
query = "insert into login (name, p_no, [date], [time], real_time, login_out, ip, edit_reason) values ("
|
||||
query = query & "'" & p_name & "', "
|
||||
query = query & "'" & p_no & "', "
|
||||
query = query & "'" & gap(i,1) & "', "
|
||||
query = query & "'" & replace(gap(i,5),":","") & "', "
|
||||
query = query & "'" & FormatDateTime(date,0) & " " & FormatDateTime(time,4) & "', "
|
||||
query = query & "'login-<2D><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & Request.ServerVariables("remote_host") & "', "
|
||||
query = query & "'" & gap(i,4) & "-" & session("User_Number") & "') "
|
||||
'Response.Write query & "<BR>"
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
if not isEmpty(gap(i,6)) and not isnull(gap(i,6)) and gap(i,5) <> " " and trim(gap(i,6)) <> "" then
|
||||
query = "insert into login (name, p_no, [date], [time], real_time, login_out, ip, edit_reason) values ("
|
||||
query = query & "'" & p_name & "', "
|
||||
query = query & "'" & p_no & "', "
|
||||
if mid(gap(i,6),1,2) >= 00 and mid(gap(i,6),1,2) < 07 then ''00<30>ú<EFBFBD><C3BA><EFBFBD> 07<30><37> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD> <20><>¥<EFBFBD><C2A5> 1<><31> <20><><EFBFBD>Ͽ<EFBFBD> <20><>
|
||||
query = query & "'" & cdate(gap(i,1)) + 1 & "', "
|
||||
else
|
||||
query = query & "'" & gap(i,1) & "', "
|
||||
end if
|
||||
query = query & "'" & replace(gap(i,6),":","") & "', "
|
||||
query = query & "'" & FormatDateTime(date,0) & " " & FormatDateTime(time,4) & "', "
|
||||
query = query & "'login-<2D><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & Request.ServerVariables("remote_host") & "', "
|
||||
query = query & "'" & gap(i,4) & "-" & session("User_Number") & "') "
|
||||
'Response.Write query & "<BR>"
|
||||
adoConn.Execute query
|
||||
end if
|
||||
next
|
||||
end if
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
|
||||
<title>
|
||||
|
||||
</title>
|
||||
<script language=javascript>
|
||||
function goit() {
|
||||
<% if x = "7" then %>
|
||||
alert('<27>ް<EFBFBD><DEB0><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20><><EFBFBD>ҵǾ<D2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
opener.location.reload();
|
||||
window.close();
|
||||
<% else %>
|
||||
alert('ó<><C3B3> <20>Ϸ<EFBFBD>, <20>ð<EFBFBD><C3B0><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
opener.location.reload();
|
||||
window.close();
|
||||
<% end if %>
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="goit()">
|
||||
<form name="ess" method="post">
|
||||
|
||||
</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