<% dim Query dim i,j dim user_name(4) '현재 사용자,0:사원코드, 1:이름,2:직급,3:전화번호, 4:부서코드(명) dim Curr_date '오늘날짜 dim Company(6) dim Gap() dim Max_length '입력가능 줄수정의 dim print_type '1:보기, 2:진짜프린트 dim depart_cost_type dim depart_gubun dim y_m dim cost_type(2) ''지출방법 구분 cost_type(1) = "개인법인카드" cost_type(2) = "현금/개인카드" print_type = request("print_type") depart_cost_type = request("depart_div") depart_gubun = "팀" if depart_cost_type = "2" then depart_gubun = "장" end if y_m = request("y_m") if y_m = "" then y_m = LEFT(date, 7) end if Curr_date = year(date) & "년 " & zeroformat(month(date),2) & "월 " & zeroformat(day(date),2) & "일" Query = "" Query = Query & " SELECT VGC.cost_date, VGC.p_no, VGC.txt_pjt, ISNULL(TPM.p_subject, '일반업무') AS p_subject, VGC.txt_hangmok, VGC.contents, VGC.cost, M.target97, M.target99 " Query = Query & " FROM V_GROUP_COST_NEW VGC LEFT JOIN T_PROJECT_METHOD TPM ON VGC.txt_pjt = TPM.p_child_sn " Query = Query & " LEFT JOIN 문서내용 M ON VGC.d_no = M.문서번호 " Query = Query & " WHERE VGC.p_no = '" & session("User_Number") & "' " Query = Query & " AND CONVERT(VARCHAR(7), VGC.cost_date) = '" & y_m & "' " Query = Query & " ORDER BY VGC.cost_date " 'response.Write query rsc.Open query, adoConn, 1 tmp_0 = split(rsc("target97"), "^^") user_name(0) = rsc("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_7 = split(rsc("target99"), "^^") if trim(tmp_7(0)) <> "전결" and trim(tmp_7(0)) <> "" then tmp_t1 = split(tmp_7(0), "
") tmp_txt1 = "" else tmp_txt1 = trim(tmp_7(0)) end if if trim(tmp_7(1)) <> "전결" and trim(tmp_7(1)) <> "" then tmp_t2 = split(tmp_7(1), "
") tmp_txt2 = "" else tmp_txt2 = trim(tmp_7(1)) end if if trim(tmp_7(2)) <> "전결" and trim(tmp_7(2)) <> "" then tmp_t3 = split(tmp_7(2), "
") tmp_txt3 = "" else tmp_txt3 = trim(tmp_7(2)) end if if trim(tmp_7(3)) <> "전결" and trim(tmp_7(3)) <> "" then tmp_t4 = split(tmp_7(3), "
") tmp_txt4 = "" else tmp_txt4 = trim(tmp_7(3)) end if if trim(tmp_7(4)) <> "전결" and trim(tmp_7(4)) <> "" then tmp_t5 = split(tmp_7(4), "
") tmp_txt5 = "" else tmp_txt5 = trim(tmp_7(4)) end if %> <%=GNB_TITLE%> onLoad="print_ie();" <% end if %>>
" /> <%if cint(print_type) <> 2 then%>
<%end if%>
<% 'if depart_cost_type = "1" then ' tmp_tit = "그룹활동비" 'elseif depart_cost_type = "2" then ' tmp_tit = "그룹장활동비" 'end if tmp_tit = "그룹운영비" %> <%=tmp_tit%>
기안/승인(소속부서) 검토/승인(관리부서)
본인 팀장 부서장 임원 대표이사 담당 부서장 임원 대표이사
<%=tmp_txt1%>  <%=tmp_txt2%>  <%=tmp_txt3%>  <%=tmp_txt4%>  <%=tmp_txt5%> 
출 력   일 자 <%=Curr_date%>
성         명 <%=user_name(1)%>
소         속 <%=user_name(4)%>
직         급 <%=user_name(2)%>
<% Dim d_date, d_project, d_hangmok, d_contents, d_cost, d_cost_kind Dim sum_cost sum_cost=0 Do while Not rsc.Eof d_date = rsc("cost_date") d_project = "[" & rsc("txt_pjt") & "] " & rsc("p_subject") d_hangmok = rsc("txt_hangmok") d_contents = rsc("contents") d_cost = rsc("cost") sum_cost = sum_cost + cdbl(d_cost) ' split(rsc("contents"), "^^") --> 2017-02-14^^일반업무 - 기타^^1^^5000^^99999^^현금/개인카드 %> <% rsc.MoveNext Loop %>
일자 프로젝트(업무)명/내용 항목 비고 금액
<%=d_date%> <%=d_project%> <%=d_hangmok%> <%=d_contents%> ₩<%=formatnumber(d_cost,0)%> 
합계 ₩<%=formatnumber(sum_cost,0)%> 
	영 수 일 자 :              년      월      일
	영   수   자 :                               (印)
<% rsc.Close %>