% If tmp_support_chk = "1" Then query = "" query = query & " UPDATE T_SEAL_RES " query = query & " SET support_check = '1' " query = query & " WHERE support_check = '0' " adoConn.Execute query End If if request("s_type") = "" then s_type = 1 else s_type = request("s_type") end if if request("sdate") = "" then tmp_sdate = date() else tmp_sdate = request("sdate") if len(tmp_sdate) <= 9 then tmp_sdate = tmp_sdate & "-" & day(date()) end if end if tmp_sdate = cdate(tmp_sdate) - (weekday(cdate(tmp_sdate)) - 1) tmp_edate = cdate(tmp_sdate) + (7 - weekday(cdate(tmp_sdate))) dim tmp_s_type(5,3) tmp_s_type(1,1) = "1" tmp_s_type(1,2) = "(KRI)1번 사용인감" tmp_s_type(1,3) = "1" tmp_s_type(2,1) = "2" tmp_s_type(2,2) = "(KRI)2번 사용인감" tmp_s_type(2,3) = "1" tmp_s_type(3,1) = "3" tmp_s_type(3,2) = "(KRI)3번 사용인감" tmp_s_type(3,3) = "1" tmp_s_type(4,1) = "4" tmp_s_type(4,2) = "(KRC)1번 사용인감" tmp_s_type(4,3) = "1" tmp_s_type(5,1) = "5" tmp_s_type(5,2) = "(KRC)2번 사용인감" tmp_s_type(5,3) = "1" query = " SELECT s_type FROM T_SEAL_RES " query = query & " WHERE use_div = '1' " query = query & " AND s_r_date between '" & tmp_sdate & "' and '" & tmp_edate & "' " query = query & " AND s_status = '1' " query = query & " GROUP BY s_type " query = query & " ORDER BY s_type " Adors.Open query, adoConn, 1 If Adors.recordCount > 0 Then For i=1 To Adors.recordCount tmp_s_type(cint(Adors("s_type")), 3) = "0" Adors.MoveNext Next End If Adors.Close %>