68 lines
2.0 KiB
Plaintext
68 lines
2.0 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
set dbin = server.CreateObject("ADODB.CONNECTION")
|
|
|
|
s_type = request("s_type")
|
|
s_r_date = request("s_r_date")
|
|
s_rs_time_cd = request("s_rs_time_cd")
|
|
s_re_time_cd = request("s_re_time_cd")
|
|
s_div = request("s_div_" & s_re_time_cd)
|
|
s_cli_prj = request("s_cli_prj_" & s_re_time_cd)
|
|
s_client = request("s_client_" & s_re_time_cd)
|
|
s_comment = request("s_comment_" & s_re_time_cd)
|
|
tmp_scode = request("tmp_scode")
|
|
|
|
Dim tmp_min(2)
|
|
tmp_scode = 1
|
|
tmp_min(0) = "00"
|
|
tmp_min(1) = "30"
|
|
for i = 9 to 22
|
|
for j = 1 to 2
|
|
if int(s_rs_time_cd) = tmp_scode then
|
|
s_rs_time = right("0" & i, 2) & ":" & tmp_min(j - 1)
|
|
end if
|
|
|
|
if int(s_re_time_cd) = tmp_scode then
|
|
s_re_time = right("0" & i + int(1 - (j mod 2)), 2) & ":" & tmp_min(j mod 2)
|
|
end if
|
|
|
|
tmp_scode = tmp_scode + 1
|
|
next
|
|
next
|
|
|
|
query = " INSERT INTO T_SEAL_RES "
|
|
query = query & " (s_type, s_depart, s_p_no, s_r_date, s_rs_time, s_re_time, s_rs_time_cd, s_re_time_cd, s_cd_gap, s_div, s_cli_prj, s_client, s_comment) "
|
|
query = query & " VALUES "
|
|
query = query & " ('" & s_type & "', "
|
|
query = query & " '" & session("Depart_Code") & "', "
|
|
query = query & " '" & session("User_Number") & "', "
|
|
query = query & " '" & s_r_date & "', "
|
|
query = query & " '" & s_rs_time & "', "
|
|
query = query & " '" & s_re_time & "', "
|
|
query = query & " '" & s_rs_time_cd & "', "
|
|
query = query & " '" & s_re_time_cd & "', "
|
|
query = query & " '" & (s_re_time_cd - s_rs_time_cd) + 1 & "', "
|
|
query = query & " '" & s_div & "', "
|
|
query = query & " '" & s_cli_prj & "', "
|
|
query = query & " '" & s_client & "', "
|
|
query = query & " '" & s_comment & "') "
|
|
|
|
dbin.Open adoConn
|
|
dbin.Execute query
|
|
dbin.Close
|
|
%>
|
|
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
|
<form name="seal" method="post">
|
|
<input type="hidden" name="s_type" value="<%=s_type%>">
|
|
<input type="hidden" name="condate" value="<%=s_r_date%>">
|
|
</form>
|
|
<script>
|
|
alert('¿¹¾àµÇ¾ú½À´Ï´Ù');
|
|
|
|
document.seal.action = 'seal_view.asp';
|
|
document.seal.submit();
|
|
</script>
|
|
</head>
|
|
<%
|
|
set dbin = nothing
|
|
%> |