<% dim tmpstr dim Query dim i, j dim user_name(4) '현재 사용자,0:사원코드, 1:이름,2:직급,3:전화번호, 4:부서코드(명) dim Max_Width dim title dim Curr_date '오늘날짜 dim Company(6) dim krc_no '정산서의 문서번호 dim krc_no_estimate '가지급금지출결의서의 문서번호 dim gap(16) dim gap_real(63) dim print_type dim tabindex dim db_table_name d_no = request("d_no") x = request("x") krc_no = d_no print_type = request("print_type") view_chk= request("view_chk") db_table_name = "문서내용" title="가지급금정산" Max_Width =750 Curr_date = year(date) & "년 " & month(date) & "월 " & day(date) & "일" query = "SELECT * " query = query & "FROM 문서내용 as a " query = query & " INNER JOIN Document as b on a.문서번호 = b.d_no " query = query & "WHERE a.문서번호='" & d_no & "' " if x = "99" then else query = query & " AND b.d_delok = 'N' " end if 'Response.Write query &"
" rsc.Open query, adoConn, 1 if rsc.RecordCount > 0 then tmp_date = split(rsc("d_write_date"), "-") Curr_date = tmp_date(0) & "년 " & tmp_date(1) & "월 " & tmp_date(2) & "일" tmp_0 = split(rsc("target97"), "^^") user_name(0) = rsc("login_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_00 = split(rsc("target98"), "^^") Company(1) = tmp_00(0) Company(2) = tmp_00(1) Company(3) = tmp_00(2) Company(4) = tmp_00(3) Company(5) = tmp_00(4) Company(6) = tmp_00(5) tmp_7 = split(rsc("target99"), "^^") tmp_8 = split(rsc("target100"), "^^") if instr(1,tmp_7(0), "반려") then tmp_txt1 = tmp_7(0) elseif instr(1,tmp_7(0), "
") then tmp_t1 = split(tmp_7(0), "
") tmp_txt1 = "" else tmp_txt1 = tmp_7(0) end if if instr(1,tmp_7(1), "반려") then tmp_txt2 = tmp_7(1) elseif instr(1,tmp_7(1), "
") then tmp_t2 = split(tmp_7(1), "
") tmp_txt2 = "" else tmp_txt2 = tmp_7(1) end if if instr(1,tmp_7(2), "반려") then tmp_txt3 = tmp_7(2) elseif instr(1,tmp_7(2), "
") then tmp_t3 = split(tmp_7(2), "
") tmp_txt3 = "" else tmp_txt3 = tmp_7(2) end if if instr(1,tmp_7(3), "반려") then tmp_txt4 = tmp_7(3) elseif instr(1,tmp_7(3), "
") then tmp_t4 = split(tmp_7(3), "
") tmp_txt4 = "" else tmp_txt4 = tmp_7(3) end if if instr(1,tmp_7(4), "반려") then tmp_txt5 = tmp_7(4) elseif instr(1,tmp_7(4), "
") then tmp_t5 = split(tmp_7(4), "
") tmp_txt5 = "" else tmp_txt5 = tmp_7(4) end if if instr(1,tmp_7(5), "반려") then tmp_txt6 = tmp_7(5) elseif instr(1,tmp_7(5), "
") then tmp_t6 = split(tmp_7(5), "
") tmp_txt6 = "" else tmp_txt6 = tmp_7(5) end if tmp_txt7 = tmp_8(0) tmp_txt8 = tmp_8(1) tmp_txt9 = tmp_8(2) tmp_txt10 = tmp_8(3) tmp_txt11 = tmp_8(4) tmp_txt12 = tmp_8(5) gap(1) = rsc("target1") gap(2) = rsc("target2") gap(3) = rsc("target3") gap(4) = rsc("target4") gap(5) = rsc("target5") gap(6) = rsc("target6") gap(7) = ViewWord(rsc("target7")) gap(8) = rsc("target8") gap(9) = rsc("target9") gap(10) = rsc("target10") gap(11) = ViewWord(rsc("target11")) gap(16) = rsc("target17") tmpstr = split(rsc("target12"),"^^") for i=0 to ubound(tmpstr) gap_real(i) = tmpstr(i) 'Response.Write i & " => " & gap_real(i) & "'
" next tmpstr = split(rsc("target13"),"^^") for i=0 to ubound(tmpstr) gap_real(i+24) = tmpstr(i) ' Response.Write i & " => " & gap_real(i) & "'
" next tmpstr = split(rsc("target14"),"^^") for i=0 to ubound(tmpstr) gap_real(i+36) = tmpstr(i) ' Response.Write i & " => " & gap_real(i) & "'
" next tmpstr = split(rsc("target15"),"^^") 'Response.Write ubound(tmpstr) & "
" for i=0 to ubound(tmpstr) gap_real(i+59) = tmpstr(i) 'Response.Write i+59 & " => " & gap_real(i+59) & "'
" next d_order_cnt = int(rsc("d_order_cnt")) %> <%=GNB_TITLE%> onLoad="print_ie();" <% end if %>>
<%if x = "99" then%> <%end if '''if x = "99" then%> <% if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then %> <%end if%>
<% '---------------------------------------------------------------------------------------- '### 프로젝트명에 해당하는 직접비가 있다면 링크함 - 2010년 1월 26일 수정 query = "SELECT * " query = query & "FROM Document a " query = query & " INNER JOIN 문서내용 b on a.d_no = b.문서번호 " query = query & "WHERE a.d_delok = 'N' " query = query & " AND a.d_name = '직접비' " query = query & " AND b.p_sn = '" & rsc("p_sn") & "' " 'Response.Write query & "
" adoRs.open query, adoConn, 1 'Response.Write "adoRs.recordcount : " & adoRs.recordcount & "
" if adoRs.recordcount > 0 then 'tmp_link = " - 직접비 보기" tmp_link = "" else tmp_link = "" end if adoRs.close '---------------------------------------------------------------------------------------- %>
가지급금 정산 내역서
지급처 <%=gap(1)%> <%tmpstr = split(gap(2),"-")%> Tel. <%=tmpstr(0)%> - <%=tmpstr(1)%> - <%=tmpstr(2)%> 가지급금 내역 <%=ViewWord(gap(7))%> 
지급처 담당자 <%=gap(3)%>
지급일자 <%=gap(4)%>
정산 예정일 <%=gap(5)%>
지출사유 <%=gap(6)%> 계 <%=gap(8)%> 원
프로젝트 <%=gap(16)%>(<%=rsc("p_sn")%>) <%=tmp_link%> 부가세액 <%=gap(9)%> 원
지출 발의자 <%=user_name(1)%> 가지급 합계액 <%=gap(10)%> 원
",chr(13))%>"> <% tabindex = 10 for i=1 to 2 '사례비, 운반비 tabindex = tabindex + 1 %> <%tabindex = tabindex + 1%> <% next %> <%for i=1 to 3%> <%for j=(i-1) * 2+3 to (i-1) * 2+4 '임대료부터 우편료까지 tabindex = tabindex + 1'%> <%tabindex = tabindex + 1%> <%next%> <%next%> <%for i=4 to 5%> <%for j=(i-1) * 2+3 to (i-1) * 2+4 '여분4개 tabindex = tabindex + 1'%> <%tabindex = tabindex + 1'%> <%next%> <%next%> <% for i=13 to 14 '항공료부터 교통비까지 tabindex = tabindex + 1 %> <%tabindex = tabindex + 1%> <% next %> <%for i=7 to 8%> <%for j=(i-1) * 2+3 to (i-1) * 2+4 '숙바료 부터 기타까지 tabindex = tabindex + 1'%> <%tabindex = tabindex + 1'%> <%next%> <%next%> <% for i=19 to 20 tabindex = tabindex + 1 %> <%tabindex = tabindex + 1%> <% next %> <%for i=10 to 11%> <%for j=(i-1) * 2+3 to (i-1) * 2+4 tabindex = tabindex + 1'%> <%tabindex = tabindex + 1'%> <%next%> <%next%> <%tabindex = tabindex + 1'%> <%if print_type=2 then%> <%end if%>
세 부 정 산 내 역 (진 행 비)
 원
 원
 원
세 부 정 산 내 역 (출 장 비)
 원
 원
세 부 정 산 내 역 (기 타)
 원
 원
정 산 내 역
정산일자
가지급 정산 총사용 금액  원
 원

<%=ViewWord(gap(11))%>
	영 수 일 자 :              년      월      일
	영   수   자 :                               (印)
<% '프로그램이 구려서 아래의 히든 값은 반드시 여기에 위치해야 함.. '위로 올리면 저장되는 값이 어긋남. %>
<% end if rsc.Close %>