<% if request("s_type") = "" then s_type = 1 else s_type = request("s_type") end if s_r_date = request("condate") x = request("x") dim tmp_s_type(5,2) tmp_s_type(1,1) = "1" tmp_s_type(1,2) = "(KRI)1번 사용인감" tmp_s_type(2,1) = "2" tmp_s_type(2,2) = "(KRI)2번 사용인감" tmp_s_type(3,1) = "3" tmp_s_type(3,2) = "(KRI)3번 사용인감" tmp_s_type(4,1) = "4" tmp_s_type(4,2) = "(KRC)1번 사용인감" tmp_s_type(5,1) = "5" tmp_s_type(5,2) = "(KRC)2번 사용인감" %>

사용인감 반출 예약

날짜 : <%=s_r_date%>
대상 : <%=tmp_s_type(s_type,2)%> 예약현황입니다.
* 하단 탭을 이용하시면, 각 대상에 대한 예약 현황을 보실 수 있습니다. 주간현황으로 돌아가시려면, 주간현황 탭을 클릭해주세요.
<% Dim tmp_min(2) tmp_scode = 1 tmp_code = 0 tmp_min(0) = "00" tmp_min(1) = "30" for i = 9 to 22 for j = 1 to 2 if i <> 22 or j <> 2 then if tmp_code = 0 then query = " SELECT TSR.id, s_type, s_depart, team_name as s_depart_name, s_p_no, p_name as s_p_name, s_r_date, s_rs_time, s_re_time, s_rs_time_cd, s_re_time_cd, s_cd_gap, s_client, s_comment, s_status " query = query & " FROM T_SEAL_RES TSR LEFT OUTER JOIN TEAM_GROUP TG ON TSR.s_depart = TG.team_cd and TG.div_use = '1' " query = query & " LEFT OUTER JOIN PERSON P ON TSR.s_p_no = P.p_no " query = query & " WHERE s_r_date='" & s_r_date & "' " query = query & " AND s_type='" & s_type & "' " query = query & " AND use_div = '1' " query = query & " ORDER BY CAST(s_rs_time_cd AS int) " Adors.Open query, adoConn, 1 if Adors.RecordCount > 0 then tmp_code = 0 for Adors_cnt = 1 to Adors.RecordCount if tmp_scode >= int(Adors("s_rs_time_cd")) AND tmp_scode <= int(Adors("s_re_time_cd")) then s_re_time_cd = int(Adors("s_re_time_cd")) tmp_code = int(Adors("s_cd_gap")) tmp_client = Adors("s_client") tmp_comment = Adors("s_comment") tmp_depart = Adors("s_depart_name") tmp_name = Adors("s_p_name") tmp_namecode = Adors("s_p_no") tmp_sn = Adors("id") tmp_chk = 1 tmp_status = Adors("s_status") exit for end if Adors.MoveNext next end if Adors.Close end if %> <% if tmp_code = 0 then %> <% else if tmp_chk = 1 then %> <% tmp_chk = 0 end if tmp_code = tmp_code - 1 end if %> <% tmp_scode = tmp_scode + 1 end if next next %>
시간 시작 종료 내용
<%=right("0" & i, 2)%>:<%=tmp_min(j - 1)%> ~ <%=right("0" & i + int(1 - (j mod 2)), 2)%>:<%=tmp_min(j mod 2)%> 0 then %> disabled <% end if %>>

<%=tmp_depart%> - <%=tmp_name%> : <% if tmp_namecode = cstr(session("User_Number")) and tmp_status = "0" then %> [예약취소] <% end if %> <%=tmp_client %>  <%=tmp_comment%>