<%if cint(print_type) = 1 then%>
<%if approval_chk = "true" then%>
<%else
Response.Write "본부가 혼재된 프로젝트는 결재 상신이 안됩니다. 본부를 구분하세요"
end if%>
|
<%end if%>
 |
<%if title_type = "지출" then%>
<%else%>
<%end if%>
|
<%if cdate(formatdatetime(date,2)) > "2014-01-07" then
tmp_title = "대표이사"
else
tmp_title = "부회장"
end if%>
| 기안/승인(소속부서) |
검토/승인(관리부서) |
| 본인 |
팀장 |
부서장 |
임원 |
<%=tmp_title%> |
담당 |
부서장 |
임원 |
<%=tmp_title%> |
<%
'my_pos = "3"
'Response.Write "my_pos : " & my_pos & " "
tmp_txt = "" & Session("loginuser") & " " & replace(date(), "-","") & " " & FormatDateTime(time,4)
tmp_txt = Session("loginuser") & " " & replace(date(), "-","") & " " & Session("User_Number")
if my_pos = 6 then '사장
tmp_txt1 = "전결"
tmp_txt2 = "전결"
tmp_txt3 = "전결"
tmp_txt4 = "전결"
tmp_txt5 = tmp_txt
tmp_txt6 = "/"
tmp_txt7 = "/"
tmp_txt8 = "/"
tmp_txt9 = "/"
tmp_txt10 = month(now()) & " / " & day(now())
elseif my_pos = 5 then '임원(본부장)
tmp_txt1 = "전결"
tmp_txt2 = "전결"
tmp_txt3 = "전결"
tmp_txt4 = tmp_txt
tmp_txt5 = " "
tmp_txt6 = "/"
tmp_txt7 = "/"
tmp_txt8 = "/"
tmp_txt9 = month(now()) & " / " & day(now())
tmp_txt10 = "/"
elseif my_pos = 3 or my_pos = 4 then '팀장(부서장)
tmp_txt1 = "전결"
tmp_txt2 = "전결"
tmp_txt3 = tmp_txt
tmp_txt4 = " "
tmp_txt5 = " "
tmp_txt6 = "/"
tmp_txt7 = "/"
tmp_txt8 = month(now()) & " / " & day(now())
tmp_txt9 = "/"
tmp_txt10 = "/"
elseif my_pos = 2 then '팀장(부서장)
tmp_txt1 = tmp_txt
tmp_txt2 = "전결"
tmp_txt3 = " "
tmp_txt4 = " "
tmp_txt5 = " "
tmp_txt6 = month(now()) & " / " & day(now())
tmp_txt7 = "/"
tmp_txt8 = "/"
tmp_txt9 = "/"
tmp_txt10 = "/"
elseif my_pos = 0 or my_pos = 1 then '팀원
tmp_txt1 = tmp_txt
tmp_txt2 = "전결"
tmp_txt3 = " "
tmp_txt4 = " "
tmp_txt5 = " "
tmp_txt6 = month(now()) & " / " & day(now())
tmp_txt7 = "/"
tmp_txt8 = "/"
tmp_txt9 = "/"
tmp_txt10 = "/"
end if
%>
| <%=tmp_txt1%> |
<%=tmp_txt2%> |
<%=tmp_txt3%> |
<%=tmp_txt4%> |
<%=tmp_txt5%> |
|
|
|
|
| <%=tmp_txt6%> |
<%=tmp_txt7%> |
<%=tmp_txt8%> |
<%=tmp_txt9%> |
<%=tmp_txt10%> |
/ |
/ |
/ |
/ |
|
|
|
| 결 의 일 자 |
<%=Curr_date%> |
|
| 성 명 |
<%=user_name(1)%> |
|
| 소 속 |
<%=user_name(4)%> |
|
| 직 급 |
<%=user_name(2)%> |
|
| 하기의 프로젝트(업무)와 관련하여, <%=title_type%>을 결의하오니 승인하여 주시기 바랍니다. |
| 비용항목 |
<%=hangmok_name%> |
세부내용 |
<%=sebu_name%> |
| 거래처 |
<%=expence_company%> |
증빙일자 |
<%=expence_date%> |
| 증빙서류 |
<%=expence_way%> |
증빙번호 |
<%=expence_num%> |
| 지급일자 |
<%=payment_date%> |
<% if cint(print_type) = 1 then %>
| 증빙첨부 |
<% if uploadform("doc_attach")(1) <> "" Then %>
<%
set objImage = Server.CreateObject("DEXT.ImageProc")
objImage.AutoMakeFolder = True
For i=1 To uploadform("doc_attach").count
if true = objImage.SetSourceFile(uploadform("doc_attach")(i).TempFilePath) then
tmpFileName = "\Upload\DOC_ATTACH\tmp\" & date_time() & "_" & Session("User_Number") & "_" & Cstr(i) & ".jpg"
thumb_image = objImage.SaveasThumbnail(Server.MapPath("/") & tmpFileName, objImage.ImageWidth, objImage.ImageHeight, false)
%>
<%
End If
Next
Set objImage = Nothing
%>
<% End If %>
|
<% End If %>
|
| 프로젝트 |
공급가액 |
부가세액 |
지출총액 |
비고(내용, 수량, 단가) |
<%
Dim project_mapping_check
project_mapping_check = True
total_expence_money = 0
total_expence_vat = 0
total_expence_sum = 0
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 Then
Query = Query & "WHERE p_sn = '" & gap(i, 1) & "' "
Else
If 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
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
If tmp_p_subject = "" Then
tmp_p_subject = "프로젝트 코드 맵핑 오류"
project_mapping_check = false
End if
%>
| <%=tmp_p_subject&" ("&gap(i, 1)&")"%> |
<%=gap(i, 5)%> |
<%=gap(i, 6)%> |
<%=gap(i, 7)%> |
<%=ViewWord(gap(i, 10))%> |
<%
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 & "' "
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
Dim approval_money, remark
approval_money = "0"
remark= ""
if adoRs.recordcount > 0 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
%>
영 수 일 자 : 년 월 일
영 수 자 : (印)
|
|
|
 |
|