<% 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 %> 내근직 업무일지 기록
<% sql = " select date, in_time, out_time From neakeun_in_out_time where left(neakeun_jumin, 6) = left('" & neakeun_jumin & "', 6) and date = '" & condate & "'" sql = sql & " and neakeun_name = '" & neakeun_name & "'" 'response.write sql AdoRs.open sql, adoconn, adopenstatic, adlockreadonly Dim InTime, OutTime Dim convert_InTime_minute, convert_OutTime_minute Dim innerInTime, OverInTime InTime = 0 OutTime = 0 if AdoRs.recordcount > 0 Then If AdoRs("in_time") <> "" Then InTime = AdoRs("in_time") End If If AdoRs("out_time") <> "" Then OutTime = AdoRs("out_time") End If If AdoRs("in_time") <> "" And AdoRs("out_time") <> "" Then convert_InTime_minute = eval(left(InTime,2)) * 60 + eval(right(InTime,2)) convert_OutTime_minute = eval(left(OutTime,2)) * 60 + eval(right(OutTime,2)) end If %> <% End if adoRs.close %>
<% If permanent_position = "True" then %> 내근직이름 : <% else %> 내근직이름 : <% End If %> 기록일 : 요 일 :
출근일자 : <%=AdoRs("date")%>    //    출근 시각 : <%=InTime%>    //    퇴근 시각 : <%=OutTime%>
<%if condate = left(now(), 10) OR permanent_position = "True" then %> <% if in_time_chk=0 then %>    <% else %>    <% end if %> <%end if %>
<% If in_time_chk = 2 Then dim sv_list() dim in_time, out_time dim Categori_Cnt : Categori_Cnt = 10 dim gap() reDim gap(Categori_Cnt, 13) '##### 내근직 업무일지 담당 직원 cost_sql = " select p_name,p_no from dbo.person "&VbCrlf cost_sql = cost_sql & " where p_depart in ('12','17') and p_job_part in ('03','04','05','06','12','15') and "&VbCrlf '-- 실사,QC,DP(코딩) cost_sql = cost_sql & " ( "&VbCrlf cost_sql = cost_sql & " krc_out_date = '' or "&VbCrlf cost_sql = cost_sql & " convert(int,replace(krc_out_date,'-',''))>=convert(int,replace('" & condate & "','-','')) "&VbCrlf cost_sql = cost_sql & " ) "&VbCrlf cost_sql = cost_sql & " order by p_name asc "&VbCrlf 'Response.Write cost_sql Rs.open cost_sql, adoconn, adopenstatic, adlockreadonly redim sv_list(Rs.recordCount, 2) for i=1 To Rs.recordCount sv_list(i, 1) = Rs("p_name") sv_list(i, 2) = cstr(Rs("p_no")) Rs.MoveNext Next Rs.Close Dim job_confirm_yn job_confirm_yn = "N" '저장여부 확인 sql = " SELECT nw.p_sn, nw.p_sv_no, isnull((select TOP 1 p_name from person where p_no = nw.p_sv_no), ' ') as p_sv_name, p_sv_main, nw.p_child_sn, TPM.p_subject, nw.p_sebu, nw.p_sebu_code, nw.job_in_time, nw.job_out_time, nw.job_jumal_time, niot.in_time, niot.out_time, job_total_time, "&VbCrlf sql = sql & " job_lunch_yn, job_dinner_yn, job_start_time, job_end_time, isnull(job_confirm_yn,'N') as job_confirm_yn, isnull((select TOP 1 p_name from person where p_no = TNP.insert_user), ' ') as insert_user "&VbCrlf sql = sql & " FROM neakeun_work nw LEFT OUTER JOIN "&VbCrlf sql = sql & " ( "&VbCrlf sql = sql & " select neakeun_name, neakeun_jumin, date, min(in_time) as in_time, max(out_time) as out_time "&VbCrlf sql = sql & " from neakeun_in_out_time "&VbCrlf sql = sql & " group by neakeun_name, neakeun_jumin, date "&VbCrlf sql = sql & " ) niot "&VbCrlf sql = sql & " on left(nw.neakeun_jumin, 6) = left(niot.neakeun_jumin, 6) and nw.neakeun_name = niot.neakeun_name AND NW.date = NIOT.date "&VbCrlf sql = sql & " left outer join T_NEAKEUN_PAY TNP ON convert(varchar(15), nw.id) = TNP.attribute01 and nw.p_sebu = TNP.s_gubun "&VbCrlf sql = sql & " left outer join T_PROJECT_METHOD TPM ON nw.p_child_sn = TPM.p_child_sn "&VbCrlf sql = sql & " WHERE left(nw.neakeun_jumin, 6) = left('" & neakeun_jumin & "', 6) "&VbCrlf sql = sql & " AND nw.[date] = '" & condate & "' "&VbCrlf sql = sql & " AND nw.in_time + nw.out_time <> '00000000' "&VbCrlf sql = sql & " and nw.neakeun_name = '" & neakeun_name & "' "&VbCrlf 'Response.write sql AdoRs.open sql, adoconn, adopenstatic, adlockreadonly if AdoRs.recordcount > 0 then i=0 in_time = AdoRs("in_time") out_time = AdoRs("out_time") job_total_time = AdoRs("job_total_time") lunch_flag = AdoRs("job_lunch_yn") 'dinner_flag = AdoRs("job_dinner_yn") do until AdoRs.eof i = i + 1 gap(i,0) = adors("p_subject") gap(i,1) = adors("p_child_sn") gap(i,2) = adors("p_sebu") gap(i,3) = formatnumber(cDbl(adors("job_in_time")) - cDbl(adors("job_out_time")),2) gap(i,4) = adors("job_start_time") gap(i,5) = adors("job_end_time") gap(i,6) = adors("job_out_time") gap(0,3) = formatnumber(cdbl(gap(0,3)) + cdbl(gap(i,3)),2) gap(0,6) = formatnumber(cdbl(gap(0,6)) + cdbl(gap(i,6)),2) gap(i,7) = adors("job_confirm_yn") If gap(i,7) = "Y" Then job_confirm_yn = "Y" End if gap(i,8) = adors("insert_user") gap(i,9) = adors("p_sv_name") gap(i,10) = adors("p_sv_no") gap(i,11) = adors("p_sv_main") gap(i,12) = adors("p_sebu_code") AdoRs.movenext loop else AdoRs.close query = "select in_time, out_time from neakeun_in_out_time "&VbCrlf query = query & " where "&VbCrlf query = query & " left(neakeun_jumin, 6) = left('" & neakeun_jumin & "', 6) "&VbCrlf query = query & " and [date] = '" & condate & "'"&VbCrlf query = query & " and neakeun_name = '" & neakeun_name & "'"&VbCrlf 'Response.Write query AdoRs.open query, adoconn, adopenstatic, adlockreadonly in_time = AdoRs("in_time") out_time = AdoRs("out_time") end if AdoRs.close %>
<%For i = 1 To Categori_Cnt%> <% next %>
오늘날짜(<%=condate%>) 기준으로 설정되어 있는 프로젝트, 업무내용을 선택 가능 합니다.
(프로젝트 및 업무내용, 근무시작시간, 종료시간은 SV가 입력을 했어야만 나타납니다.
근무시간을 입력 할때 0.25는 15분이고, 0.5는 30분, 0.75는 45분을 의미 합니다.
예) 2.25는 2시간 15분 이고, 5.5는 5시간 30분이고, 4.75는 4시간 45분 입니다.
대표SV
(선택X)
SV 프 로 젝 트 명 업무내용 근무시간 업무확인
유무
업무확인
SV
"" and gap(i,11) = gap(i,10) then %> checked <%end if %> disabled="disabled"/> readonly <% end if %> style='width:50px; text-align:center;' OnKeyPress='onlyNum();' name='txtInTime'/> <%=gap(i,7)%> <%=gap(i,8)%>
합      계 근무인정시간 :
중식
일자 출근시각 "True" then %> readonly <% end if %> value ="<%=In_Time%>"> 퇴근시각 "True" then %>readonly <% end if %> value ="<%=Out_Time%>"> style="display:none;" <% End If %>> <% if permanent_position = "True" then %> <% end if %> style="display:none;" <% End If %>>  
<% End if %> <%If permanent_position = "True" then %>
<%End If %> <% %>