% Response.Expires = 0 Dim Sql dim i dim j Dim txtHtml dim tempStr Dim PrjCnt dim direct_cost_PrjCnt dim user_name dim tmp_year dim tmp_month dim p_depart dim sc_name dim sc_name_type dim sc_method dim direct_cost_type dim Search_flag dim prj_list() '홍근 추가 dim krc_team() dim krc_team_cnt dim cost_type p_depart = Session("Depart_Code") if p_depart <= 10 or (p_depart >= 20 and p_depart <= 95) then p_depart_name = "research" elseif p_depart = 12 then p_depart_name = "field" else p_depart_name = "admin" end if tmp_year = Request("tmp_year") tmp_month = Request("tmp_month") p_depart = Request("p_depart") sc_name = Request("sc_name") sc_name_type = Request("sc_name_type") sc_method = Request("sc_method") cost_type = request("cost_type") if cost_type = "" then cost_type = "field" end if if tmp_year = "" and tmp_month = "" and p_depart = "" and sc_method = "" then search_flag = 1 else search_flag = 2 end if if tmp_year = "" then tmp_year = year(date) end if if tmp_month = "" then tmp_month = 0 end if if p_depart = "" then p_depart = 0 end if if sc_method = "" then sc_method = 100 end if if sc_name_type = "" then sc_name_type = 0 end if sql = "" sql = sql & " SELECT DISTINCT before_t_cd1 as d_code, LEFT(T_Name, 8) as d_name " sql = sql & " FROM project2.dbo.v_Department " sql = sql & " WHERE (before_t_cd1 in (12, 90) or before_t_cd1 between 20 and 99) " sql = sql & " order by LEFT(T_Name, 8) " Rs.open sql, adoconn,adopenstatic, adlockreadonly krc_team_cnt = Rs.recordcount redim krc_team(krc_team_cnt,2) krc_team_cnt = 0 do while not Rs.eof krc_team_cnt = krc_team_cnt + 1 krc_team(krc_team_cnt,1) = rs("d_code") krc_team(krc_team_cnt,2) = rs("d_name") Rs.movenext loop Rs.close Sql = "select p_name from person where p_no ='" & Session("user_number") & "'" Rs.open sql, adoconn,adopenstatic, adlockreadonly user_name = Rs.fields("p_name") Rs.close %>