 |
<%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 = '직접비' "
query = query & " AND a.d_name = '프로젝트수행계획서' AND a.d_order_cnt = '77' "
query = query & " AND b.p_sn = '" & tmp_p_sn(i) & "' "
'Response.Write query & " "
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
tmp_doc_link = ""
if gap(10) <> "" then
tmp_doc_link = " " '+'&view_chk='+c+'&x='+v
end if
'----------------------------------------------------------------------------------------
%>
| 프로젝트 명(업무) |
<%=gap(1)%>-(<%=gap(11)%>) <%if xadmin="" then %><%=tmp_link%><%end if%> |
| 비용항목 |
<%if xadmin="edit" then%>
선택: <%=hangmok_name%>
변경:
<%else%>
<%=hangmok_name%>
<%end if%>
|
세부내용 |
<%if xadmin="edit" then %>
선택: <%=sebu_name%>
변경:
<%else %>
<%=sebu_name%>
<%end if%>
|
| 증빙일자 |
<%if xadmin="edit" then %>
<%else%>
<%=gap(3)%>
<%end if%>
|
증빙서류 |
<%if xadmin="edit" then%>
<%else%>
<%=gap(4)%>
<%end if%>
|
| 공급가액 |
<%if xadmin="edit" then %>
원
<%else%>
<%=gap(5)%> 원
<%end if%>
|
"edit" Then %> rowspan="2" <% End If %>><%=title_type%>총액 |
"edit" Then %> rowspan="2" <% End If %>>
<%if xadmin="edit" then %>
원
<%else%>
<%=gap(7)%> 원
<%end if%>
|
| 부가세액 |
<%if xadmin="edit" then %>
<%else%>
<%=gap(6)%> 원
<%end if%>
|
<%if xadmin="edit" then %>
증빙번호 |
|
<%else%>
<% If gap(12) <> "" Then %>
증빙번호 |
<%=gap(12)%> |
<% End If %>
<%end if%>
| 거래처 |
<%if xadmin="edit" then %>
<%else%>
<%=gap(8)%>
<%end if%>
|
입금계좌 |
<%if trim(gap(4)) = "세금계산서" then
Response.Write "첨부파일 참조"
else
Response.Write "해당 없음"
end if%>
|
지급일자 |
<%If xadmin = "edit" And (session("admin_ip") = Request.ServerVariables("remote_host")) Then %>
<%
Dim payDate
If Trim(gap(16)) <> "" Then
' gap(16)에 값이 있으면 yyyy-mm-dd 형태로 변환
payDate = Mid(gap(16),1,4) & "-" & Mid(gap(16),7,2) & "-" & Mid(gap(16),11,2)
Else
' 값이 없으면 공백 혹은 원하는 기본값
payDate = ""
End If
%>
<%else%>
<%=gap(16)%>
<%end if%>
|
<%
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Dim attachFolderPath, attachFolderObj, attachOneFile, attachUs, attachDt, attachIdxPart, attachExt
Dim attachFileMap(20), attachIsImage(20)
Dim imageExtList : imageExtList = "|jpg|jpeg|png|gif|"
Dim attachCacheVersion : attachCacheVersion = CStr(CLng(Timer() * 1000))
attachFolderPath = Server.Mappath("/") & "/Upload/DOC_ATTACH/" & krc_no
If fso.FolderExists(attachFolderPath) Then
Set attachFolderObj = fso.GetFolder(attachFolderPath)
For Each attachOneFile In attachFolderObj.Files
attachUs = InStrRev(attachOneFile.Name, "_")
attachDt = InStrRev(attachOneFile.Name, ".")
If attachUs > 0 And attachDt > attachUs Then
attachIdxPart = Mid(attachOneFile.Name, attachUs + 1, attachDt - attachUs - 1)
If IsNumeric(attachIdxPart) Then
If CInt(attachIdxPart) >= 1 And CInt(attachIdxPart) <= 20 Then
attachFileMap(CInt(attachIdxPart)) = attachOneFile.Name
attachExt = LCase(Mid(attachOneFile.Name, attachDt + 1))
If InStr(imageExtList, "|" & attachExt & "|") > 0 Then attachIsImage(CInt(attachIdxPart)) = True
End If
End If
End If
Next
End If
%>
| 증빙첨부 |
<%
For i=1 To 20
If attachFileMap(i) <> "" Then
If attachIsImage(i) Then
%>
 " />
<% If xadmin = "edit" And attachEditAllowed Then %>
×
<% End If %>
<%
Else
%>
<%
End If
End If
Next
%>
<% If xadmin = "edit" And attachEditAllowed Then %>
+ 추가
<% End If %>
|
<%
Set fso = Nothing
%>
|
<%if xadmin="" then %>
| 직접비 예산 |
<%=est%> 원 |
누적 집행 금액 |
<%=act_sum%> 원 |
| 집행 시 잔액 |
<%=gab_cha%> 원 |
([잔액] = [직접비 예산] - [누적집행금액] - [공급가액]) |
|
<%end if%>
| 비고(사유) |
<%if xadmin="edit" then %>
<%else %>
<%=ViewWord(gap(2))%>
<%end if %>
|
|
| 추가 사유 |
<%if xadmin="edit" then %>
<%else %>
<%=ViewWord(minus_expence_reason)%>
<%end if%>
|
|
<%
if tmp_doc_link <> "" then
%>
|
|
<%
end if
%>
<%if xadmin="edit" then '-- 수정시 %>
|
<%else%>
<%' %>
<%end if%>
영 수 일 자 : 년 월 일
영 수 자 : (印)
|
|
|
 |
|