<% dim command command = Request("command") if command <> "excel" then %>

그룹운영비 상세 집계

<% end if job_month = Request("job_month") search_depart = Request("search_depart") if command = "excel" Then Response.CacheControl = "public" Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition","attachment;filename=그룹운영비용정산상세_" & job_month & ".xls" end if %>
<%if command <> "excel" then%> <% end if %> <% if command <> "" then %> <% end if %>
<% if Session("depart_code") = "18" or session("teamplace") = "6" Then %> <% End If %>
<% query = "" query = query & " SELECT d_no, hangmok, gubun, cost_date, txt_pjt " query = query & " , isnull((SELECT top 1 p_subject FROM V_PROJECT_METHOD where p_child_sn = txt_pjt),'일반/행정') as 'prj_nm' " query = query & " , CASE WHEN depart IN ('개발그룹','온라인서베이운영그룹','데이터분석그룹','디지털COMM그룹') THEN '디지털서비스본부' ELSE depart END AS depart " query = query & " , txt_hangmok, contents, cost, depart_cd, write_name " query = query & " FROM V_GROUP_COST_NEW with(nolock) " query = query & " where 1 = 1 " query = query & " AND left(cost_date,7) = '" & job_month & "' " if search_depart <> "" then 'query = query & " and depart = '" & search_depart & "' " If search_depart = "디지털서비스본부" Then query = query & " AND depart IN ('개발그룹','온라인서베이운영그룹','데이터분석그룹','디지털COMM그룹') " Else query = query & " AND depart = '" & search_depart & "' " End If end if if(session("depart_code") = "17" and session("teamplace") = "5")then '채주희 본부장님 개발팀, 데이터분석, 확인 가능 query = query & " and (( depart_cd in ('17','18','19') and depart_cd <> '0') OR depart = '" & Session("loginuser") & "') " query = query & " and depart <> '경영문화본부' " else if session("depart_code") <> "18" and session("teamplace") <> "6" Then query = query & " and ((depart_cd = '" & Session("depart_code") & "' " query = query & " and depart_cd <> '0') OR " query = query & " depart = '" & Session("loginuser") & "') " End If end if query = query & " order by cost_date asc " ' Response.write session("teamplace") ' Response.write query Adors.open query, adoconn, adopenstatic, adlockreadonly if Adors.RecordCount > 0 Then sum_money = 0 %> <% For i=1 to Adors.recordcount IF list_bgcolor="#FFFFFF" Then list_bgcolor="floralwhite" Else list_bgcolor="#FFFFFF" End IF %> <% sum_money = sum_money + CDbl(Adors("cost")) adors.movenext next AdoRs.close %> <% Else %> <% End if %>
일자 프로젝트 항목 세부항목 금액 부서 작성자
<%=Adors("cost_date") %> <%=Adors("prj_nm") %> <%=Adors("txt_hangmok") %> <%=Adors("contents") %> <%=Formatnumber(Adors("cost"), 0) %> <%=Adors("depart") %> <%=Adors("write_name") %>
합 계 <%= Formatnumber(sum_money, 0) %>
일자 프로젝트 항목 세부항목 금액 부서 작성자
결과가 없습니다.
합 계 0
<% if command <> "excel" then%>
<% end if %>