%
dim neakeun_name, neakeun_jumin, neakeun_id
dim Query
dim condate
dim in_time_chk '0:기록없음, 1:출근시간이미 기록, 2:출근/퇴근 시각이미기록
dim yoil, yoilvalue
dim Moon_Date
dim permanent_position
If request("condate") = "" Or request("condate") = null Then
condate = year(date) & "-" & zeroformat(month(date),2) & "-"
if clng(hour(time)) < 7 then
condate = condate & zeroformat(day(date-1) ,2)
else
condate = condate & zeroformat(day(date) ,2)
end If
Else
condate = request("condate")
End If
dim work_start_time, work_end_time ' 업무 시작 시간, 업무 종료 시간
'예) work_stat_time이 1000, work_end_time 1800 이면, 출퇴근이 0900 ~ 2000 여도 근무 인정시간은 1000 ~ 1800 안에서 인정한다.
'2025_04_14 : 업무 시작 시간을 "오전 10시 → 오전 9시 45분" 으로 변경
If condate < "2025-04-26" Then
work_start_time = "1000"
Else
work_start_time = "0945"
End If
work_end_time = "2400"
dim lunch_time_st, lunch_time_end ' lunch_time_st 이전 출근 ~ lunch_time_end 이후 퇴근 시 점심식대 지급
dim dinner_time_st, dinner_time_end ' dinner_time_st 이전 출근 ~ dinner_time_end 이후 퇴근 시 저녁식대 지급
lunch_time_st = "1100"
lunch_time_end = "1500"
dinner_time_st = "1800"
dinner_time_end = "2100"
If UCase(request("permanent_position")) = "TRUE" Then
permanent_position = request("permanent_position")
Else
permanent_position = false
End if
yoil = weekday(condate)
yoilvalue = yoil
select case yoil
case 1 yoil = "일요일"
case 2 yoil = "월요일"
case 3 yoil = "화요일"
case 4 yoil = "수요일"
case 5 yoil = "목요일"
case 6 yoil = "금요일"
case 7 yoil = "토요일"
end select
call day_off_chk(Mid(condate, 1, 4), Mid(condate, 6, 2), Mid(condate, 9, 2))
if day_off = "true" then
yoil="공휴일"
end if
neakeun_name = unescape(Request("neakeun_name"))
neakeun_jumin = Request("neakeun_jumin")
neakeun_id = Request("neakeun_id")
query = " select in_time, out_time from neakeun_in_out_time "
query = query & " where neakeun_name = '" & neakeun_name & "' "
query = query & " and left(neakeun_jumin, 6) = left('" & neakeun_jumin & "', 6) "
query = query & " and [date] = '" & condate & "'"
'Response.Write query
adoRs.Open query, adoconn, adopenstatic, adlockreadonly
if adoRs.recordcount = 0 then
in_time_chk= 0 '미출근
else
if trim(adors("in_time")) <> "" then
in_time_chk= 1 '출근
end if
if trim(adors("out_time")) <> "" then
in_time_chk= 2 '퇴근
end if
end if
adoRs.close
now_time = zeroformat(hour(time),2) & zeroformat(minute(time),2)
if cint(now_time) >= 1200 and cint(now_time) < 1300 then
now_time = "1300"
end if
'response.write "
time = "& time
'response.write "
now_time = "& now_time
'response.write "
cint(now_time) = "& cint(now_time)
'response.write "
yoil = "& yoil
%>