<% dim command, txtmonth dim cnt dim Query dim end_date dim sort_condi(4), sort_condi2 sort_condi(1) = "프로젝트명" sort_condi(2) = "세부근무" sort_condi(3) = "면접원" sort_condi(4) = "근무날짜" sort_condi2 = request("sort_condi") command = request("command") end_date = Request("end_date") if end_date = "" then end_date = mid(cdate(date),1,7) end if if command <> "excel" then %>

내근직 업무현황

<% End If if command = "excel" then Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition","attachment;filename=" & replace(txtmonth,"-","년") & "월_내근직_업무현황.xls" end if if command <> "excel" then %> <% Dim f_menu : f_menu = "nk" %> <% End If %>
<% if command <> "excel" then %> <% end if if command <> "" then '#### 프로시져를 사용하다 10월 31일자로 사용안함 query = " SELECT * " query = query & " FROM ( " query = query & " SELECT nw.p_sn, nw.p_child_sn, nw.p_sebu, nw.neakeun_name, nw.date, nw.yoil, nw.job_in_time, nw.job_out_time, nw.job_jumal_time, nw.in_time, nw.out_time, p.p_subject " query = query & " FROM neakeun_work as nw INNER JOIN project as p ON nw.p_sn = p.p_sn " query = query & " WHERE (p.p_field_end LIKE '" & end_date & "%') " query = query & " UNION " query = query & " SELECT nw.p_sn, nw.p_child_sn, nw.p_sebu, nw.neakeun_name, nw.date, nw.yoil, nw.job_in_time, nw.job_out_time, nw.job_jumal_time, nw.in_time, nw.out_time, TPM.p_subject " query = query & " FROM neakeun_work as nw INNER JOIN T_PROJECT_METHOD as TPM ON nw.p_sn = TPM.p_sn AND nw.p_child_sn = TPM.p_child_sn " query = query & " WHERE (TPM.p_field_date_end LIKE '" & end_date & "%') " query = query & " ) A" if cint(sort_condi2) = 1 then query = query & " order by A.p_subject" elseif cint(sort_condi2) = 2 then query = query & " order by A.p_sebu" elseif cint(sort_condi2) = 3 then query = query & " order by A.neakeun_name" elseif cint(sort_condi2) = 4 then query = query & " order by A.[date]" end if Rs.open query, adoconn, adopenstatic, adlockreadonly '#### 프로시져 %> <% Rs.close end if %>
업무일지 기록 내역
검색은 선택한 해당월에 종료되는 프로젝트에 배정된 내근직을 검색
검색 조건 : 실사종료월별   정렬조건    실사종료월
<% do until Rs.eof %> <% Rs.movenext loop %>
프로젝트명 [프로젝트코드] 조사코드 세부근무 이름 날짜 요일 시간내 시간외 주말 합 출근 퇴근
[<%=rs("p_sn")%>]  <%=rs("p_subject")%> <%=rs("p_child_sn")%> <% if isnull(Rs("p_sebu")) = true then Response.Write " " else Response.Write Rs("p_sebu") end if %> <%=Rs("neakeun_name")%> <%=Rs("date")%> <%=Rs("yoil")%> <% sum = 0 if isnull(Rs("job_in_time")) = true or Rs("job_in_time") ="" then response.write " " else Response.write formatnumber(Rs("job_in_time") - Rs("job_out_time"),2) sum = cdbl(sum) + cdbl(Rs("job_in_time") - Rs("job_out_time")) end if %> <% if isnull(Rs("job_out_time")) = true or Rs("job_out_time") ="" then response.write " " else Response.write formatnumber(Rs("job_out_time"),2) sum = cdbl(sum) + cdbl(Rs("job_out_time")) end if %> <% if isnull(Rs("job_jumal_time")) = true or Rs("job_jumal_time") ="" then response.write " " else Response.write formatnumber(Rs("job_jumal_time"),2) sum = cdbl(sum) + cdbl(Rs("job_jumal_time")) end if %> <%=formatnumber(sum,2)%> <%=Rs("in_time")%> <%=Rs("out_time")%>
<%if command <> "excel" then%>
<% end if %>