 |
<%if title_type = "지출" then%>
<%else%>
<%end if%>
|
|
|
|
| 문 서 번 호 |
<%=d_no%> 출력시간 : <%=now%> |
|
| 결 의 일 자 |
<%=Curr_date%>
|
|
| 성 명 |
<%=user_name(1)%> |
|
| 소 속 |
<%=user_name(4)%> |
|
| 직 급 |
<%=user_name(2)%> |
|
| 하기의 프로젝트(업무)와 관련하여, <%=title_type%>을 결의하오니 승인하여 주시기 바랍니다. |
<%
'----------------------------------------------------------------------------------------
'### 프로젝트명에 해당하는 직접비가 있다면 링크함 - 2010년 1월 26일 수정
'### 프로젝트를 여러개 선택시 직접비 링크 여러개로 함 - 2011년 6월 07일 추가
tmp_link = ""
tmp_p_sn = split(rsc("p_sn"),",")
'Response.Write ubound(tmp_p_sn)
if ubound(tmp_p_sn) = 0 then
end_i = 1
tmp_p_sn(0) = rsc("p_sn")
else
end_i = ubound(tmp_p_sn)
end if
'Response.Write rsc("p_sn") & " "
for i = 0 to end_i - 1
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 = '프로젝트수행계획서' AND a.d_order_cnt = '77' "
query = query & " AND b.p_sn = '" & tmp_p_sn(i) & "' "
adoRs.open query, adoConn, 1
'Response.Write "adoRs.recordcount : " & adoRs.recordcount & " "
dataCount = adoRs.recordcount
adoRs.close
if dataCount > 0 then
'tmp_link = " - 직접비 보기"
If CLng(Left(tmp_p_sn(i), 4)) >= 1407 Then
cost_p_child_sn = gap(11)
tmp_link = tmp_link & " "
Else
tmp_link = tmp_link & " "
End if
else
tmp_link = tmp_link & "[직접비 없음]"
end if
next
'----------------------------------------------------------------------------------------
%>
|
|
| 프로젝트 |
공급가액 |
부가세액 |
지출총액 |
비고(내용, 수량, 단가) |
<%
For i = 1 To contents_cnt
%>
<%
Dim tmp_p_subject
tmp_p_subject = ""
Query = "SELECT * "
Query = Query & "FROM V_PROJECT_METHOD "
If CInt(left(gap(i, 1), 4)) < 1407 or CInt(left(gap(i, 1), 4)) = 9999 Then
Query = Query & "WHERE p_sn = '" & gap(i, 1) & "' "
Else
Query = Query & "WHERE p_child_sn = '" & gap(i, 1) & "' "
End if
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
if adoRs.recordcount > 0 then
tmp_p_subject = adors("p_subject")
Else
If gap(i, 1) = "99999" Then
tmp_p_subject = "운영 및 관리업무"
End if
end if
adors.close
%>
| <%=tmp_p_subject&" ("&gap(i, 1)&")"%>
|
<%if xadmin="edit" then %>
<%else%>
<%=FormatNumber(gap(i, 5), 0)%>
<%end if%>
|
<%if xadmin="edit" then %>
<%else%>
<%=FormatNumber(gap(i, 6), 0)%>
<%end if%>
|
<%if xadmin="edit" then %>
<%else%>
<%=FormatNumber(gap(i, 7), 0)%>
<%end if%>
|
<%if xadmin="edit" then %>
<%else %>
<%=ViewWord(gap(i, 10))%>
<%end if%>
|
<%
'total_expence_money = total_expence_money + cDbl(Replace(gap(i, 5), ",", ""))
'total_expence_vat = total_expence_vat + cDbl(Replace(gap(i, 6), ",", ""))
'total_expence_sum = total_expence_sum + cDbl(Replace(gap(i, 7), ",", ""))
Next
%>
| 합계 |
<%=FormatNumber(total_expence_money, 0)%> |
<%=FormatNumber(total_expence_vat, 0)%> |
<%=FormatNumber(total_expence_sum, 0)%> |
|
|
<%
if attach_d_no <> "" then
%>
| 품의문서 |
<%=attach_d_no%> [ 품의문서 금액 : <%=FormatNumber(pre_Approval_money, 0)%>원 ], [ 남은금액 :
<% If CDbl(before_Approval_money) < 0 Then %>
<%=FormatNumber(before_Approval_money, 0)%>
<% Else %>
<%=FormatNumber(before_Approval_money, 0)%>
<% End If %>
원 ]
|
<%
Query = "select *, dbo.SPLIT(target21,'^//^',5) AS remark "
Query = Query & "from 문서내용 "
Query = Query & "where 문서제목 = '지출결의서' and del_yes_no = 'no' "
Query = Query & "and target9 like '" & attach_d_no & "' "
'response.Write query
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
Dim approval_money, remark
approval_money = "0"
remark= ""
if adoRs.recordcount > 0 and cint(print_type) <> 2 then
'tmp_p_subject = adors("p_subject")
%>
|
품의서를 이용한 지출결의서 사용 내역
|
| 문서제목 |
문서번호 |
지출금액(VAT별도) |
증빙일/작성자 |
비고(내용, 수량, 단가) |
<%
For i = 1 To adoRs.recordcount
approval_money = Replace(adoRs("target5"), ",", "")
remark = ViewWord(adoRs("remark"))
If Len(remark) > 20 Then
remark = Left(remark, 20) & "..."
End if
%>
| <%=adoRs("문서제목")%> |
<%=adoRs("문서번호")%> |
<%=FormatNumber(approval_money, 0)%> |
<%=adoRs("target3")%> / <%=adoRs("login_이름")%> |
<%=remark%> |
<%
adors.moveNext
next
end if
adors.close
%>
|
<%
end if
%>
<%if xadmin="edit" then '-- 수정시 %>
|
<%else %>
<%' %>
<%end if %>
영 수 일 자 : 년 월 일
영 수 자 : (印)
|
|
|
 |
|