<% Dim neakeun_id Dim neakeun_name : neakeun_name = Request("neakeun_name") Dim neakeun_jumin : neakeun_jumin = Request("neakeun_jumin") Dim txtDate : txtDate = Request("txtDate") Dim txtyoil : txtyoil = Request("txtyoil") Dim sv_ok : sv_ok = Request.Form("sv_ok") Dim ip_address : ip_address = Request.ServerVariables("REMOTE_HOST") Dim in_time : in_time = Request("in_time") Dim out_time : out_time = Request("out_time") Dim all_time, add1, add2 query = " Select * from project2.dbo.man where m_name='"&neakeun_name&"' and Left(m_jumin,6)='"&left(neakeun_jumin,6)&"'" AdoRs.open Query, adoconn, adopenstatic, adlockreadonly neakeun_id = AdoRs("id") AdoRs.Close If sv_ok = "1" Then If out_time <> "" then all_time = (Cint(out_time) - Cint(in_time))/100 If all_time >= 7 Then add1 = "1" Else add1 = "0" End If If all_time >= 9 Then add2 = "1" Else add2 = "0" End If End If Query = "" Query = Query&" MERGE Into project2.dbo.neakeun_in_out_time as AA "&VbCrlf Query = Query&" USING (select '"&neakeun_id&"' mid, '"&txtDate&"' mdate) as BB "&VbCrlf Query = Query&" on AA.m_id = BB.mid and AA.date = BB.mdate "&VbCrlf Query = Query&" When Matched Then "&VbCrlf Query = Query&" Update set in_time='"&in_time&"', out_time='"&out_time&"', all_time='"&all_time&"', add1='"&add1&"', add2='"&add2&"' "&VbCrlf Query = Query&" When Not Matched Then "&VbCrlf Query = Query&" Insert (neakeun_name, neakeun_jumin, date, yoil, in_time, out_time, all_time, add1, add2, m_id, in_ip_addr) values "&VbCrlf Query = Query&" ('"&neakeun_name&"','"&neakeun_jumin&"','"&txtDate&"','"&txtyoil&"','"&in_time&"','"&out_time&"','"&all_time&"','"&add1&"','"&add2&"','"&neakeun_id&"', '"&ip_address&"'); "&VbCrlf adoConn.Execute Query Response.Write "" End If %> 출퇴근 입력

내근직/면접원 출/퇴근 시간 입력(SV용)

이름 :
생년월일 :
일자 :
출근 시간 :
퇴근 시간 :
<%=neakeun_name %>
<%=left(neakeun_jumin,6) %>
<%=txtDate %> (<%=txtyoil %>)