<% dim tmpstr dim Query dim i, j dim user_name(4) '현재 사용자,0:사원코드, 1:이름,2:직급,3:전화번호, 4:부서코드(명) dim Max_Width dim title dim target_name '발급대상자 이름 dim Curr_date '오늘날짜 dim Company(6) dim krc_no dim Gap() dim Max_Repare_Day_Cnt dim print_type '1:보기, 2:진짜프린트 dim db_table_name d_no = request("d_no") x = request("x") krc_no = d_no print_type = request("print_type") view_chk= request("view_chk") db_table_name = "문서내용" title="출퇴근보고서" Max_Width =750 Curr_date = year(date) & "년 " & zeroformat(month(date),2) & "월 " & zeroformat(day(date),2) & "일" query = "SELECT * " query = query & "FROM 문서내용 as a " query = query & " INNER JOIN Document as b on a.문서번호 = b.d_no " query = query & "WHERE a.문서번호='" & d_no & "' " if x = "99" then else query = query & " AND b.d_delok = 'N' " end if rsc.Open query, adoConn, 1 if rsc.RecordCount > 0 then tmp_date = split(rsc("d_write_date"), "-") Curr_date = tmp_date(0) & "년 " & tmp_date(1) & "월 " & tmp_date(2) & "일" tmp_0 = split(rsc("target97"), "^^") user_name(0) = rsc("login_p_no") '결재 상신자 사번 user_name(1) = tmp_0(0) '이름 user_name(2) = tmp_0(1) '직위 코드 user_name(3) = tmp_0(2) '직통 전화 user_name(4) = tmp_0(3) '부서코드 tmp_00 = split(rsc("target98"), "^^") Company(1) = tmp_00(0) Company(2) = tmp_00(1) Company(3) = tmp_00(2) Company(4) = tmp_00(3) Company(5) = tmp_00(4) Company(6) = tmp_00(5) tmp_7 = split(rsc("target99"), "^^") tmp_8 = split(rsc("target100"), "^^") if instr(1,tmp_7(0), "반려") then tmp_txt1 = tmp_7(0) elseif instr(1,tmp_7(0), "
") then tmp_t1 = split(tmp_7(0), "
") tmp_txt1 = "" else tmp_txt1 = tmp_7(0) end if if instr(1,tmp_7(1), "반려") then tmp_txt2 = tmp_7(1) elseif instr(1,tmp_7(1), "
") then tmp_t2 = split(tmp_7(1), "
") tmp_txt2 = "" else tmp_txt2 = tmp_7(1) end if if instr(1,tmp_7(2), "반려") then tmp_txt3 = tmp_7(2) elseif instr(1,tmp_7(2), "
") then tmp_t3 = split(tmp_7(2), "
") tmp_txt3 = "" else tmp_txt3 = tmp_7(2) end if if instr(1,tmp_7(3), "반려") then tmp_txt4 = tmp_7(3) elseif instr(1,tmp_7(3), "
") then tmp_t4 = split(tmp_7(3), "
") tmp_txt4 = "" else tmp_txt4 = tmp_7(3) end if if instr(1,tmp_7(4), "반려") then tmp_txt5 = tmp_7(4) elseif instr(1,tmp_7(4), "
") then tmp_t5 = split(tmp_7(4), "
") tmp_txt5 = "" else tmp_txt5 = tmp_7(4) end if tmp_txt6 = tmp_8(0) tmp_txt7 = tmp_8(1) tmp_txt8 = tmp_8(2) tmp_txt9 = tmp_8(3) tmp_txt10 = tmp_8(4) for i = 16 to 1 step -1 if not isnull(rsc("target" & i)) then Max_Repare_Day_Cnt = i exit for end if next 'Max_Repare_Day_Cnt = request("txt_Max_Repare_Day_Cnt") redim Gap(Max_Repare_Day_Cnt,6) 'x:순번, y:1:날짜, 2:system 출근시각, 3:system 퇴근시각, 4:보고사유, 5:출근조정시각, 6:퇴근조정시각 for i=1 to Max_Repare_Day_Cnt tmp_1 = split(rsc("target" & i), "^^") gap(i, 1) = tmp_1(0) gap(i, 2) = tmp_1(1) gap(i, 3) = tmp_1(2) gap(i, 4) = tmp_1(3) gap(i, 5) = tmp_1(4) gap(i, 6) = tmp_1(5) next for i=1 to Max_Repare_Day_Cnt for j=1 to 6 if trim(gap(i, j)) = "" then gap(i, j) = " " end if if trim(gap(i, j)) = "?" then gap(i, j) = " " end if next next d_order_cnt = int(rsc("d_order_cnt")) %> <%=GNB_TITLE%> onLoad="print_ie();" <% end if %>>
<%if x = "99" then%> <%end if '''if x = "99" then%> <% if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then %> <%end if%>
결 의 일 자 <%=Curr_date%>
성         명 <%=user_name(1)%>
소         속 <%=user_name(4)%>
직         급 <%=user_name(2)%>
상기 본인의 출퇴근 사항에 대하여 다음과 같이 보고하오니 재가하여 주시기 바랍니다.
<%for i=1 to Max_Repare_Day_Cnt%> <%next%> <%for i=Max_Repare_Day_Cnt + 1 to 10%> <%next%>
일자 System상 보고사유 출근
조정시각
퇴근
조정시각
출근 퇴근
<%=gap(i,1)%> <%=gap(i,2)%> <%=gap(i,3)%> <%=gap(i,4)%> <%=gap(i,5)%> <%=gap(i,6)%>
 
	신  청  일  :          <%=Curr_date%>
	신  청  인  :              <%=user_name(1)%>     (印)
*상기 휴가 부여 기준은 취업규칙 제 4 장(휴일 및 휴가) 기준에 의거합니다.
<% end if rsc.Close %>