1649 lines
56 KiB
Plaintext
1649 lines
56 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
|
|
<%
|
|
''//=====================
|
|
''//=====================
|
|
''2013년 9월 27일자로
|
|
' 지출 결의서에 입금결의서를 추가하여 2개문서를 같은 프로그램에서 구동
|
|
'' 구분은 titie와 title_type로 구분
|
|
''//=====================
|
|
''//=====================
|
|
|
|
|
|
dim tmpstr
|
|
dim Query
|
|
dim i
|
|
dim user_name(4) '현재 사용자,0:사원코드, 1:이름,2:직급,3:전화번호, 4:부서코드(명)
|
|
dim Max_Width
|
|
dim title
|
|
dim target_name '발급대상자 이름
|
|
dim Curr_date '오늘날짜
|
|
dim Company(6)
|
|
dim Gap(30, 10) '1:프로젝트 코드, 2:지출(입금)목적, 3:지출(입금)일자, 4:지출(입금)방법, 5:공급가액, 6:부가세액, 7:총액, 8:거래처, 9:프로젝트 코드, 10:품의서 문서번호
|
|
dim krc_no
|
|
dim print_type '1:보기, 2:진짜프린트
|
|
dim print_chk
|
|
dim db_table_name
|
|
dim title_type
|
|
|
|
|
|
'--------------- 추가(20170306)↓ ------------------------
|
|
|
|
dim xadmin : xadmin = request("xadmin") '-- 수정(edit)
|
|
'response.write "[" & xadmin & "]"
|
|
|
|
dim pay_type(4)
|
|
pay_type(1) = "카드/현금"
|
|
pay_type(2) = "세금계산서"
|
|
pay_type(3) = "인보이스"
|
|
pay_type(4) = "인건비"
|
|
'--------------- 추가(20170306)↑ ------------------------
|
|
|
|
|
|
d_no = request("d_no")
|
|
x = request("x")
|
|
krc_no = d_no
|
|
print_type = request("print_type")
|
|
view_chk = request("view_chk")
|
|
rev_type = request("rev_type")
|
|
|
|
db_table_name = "문서내용"
|
|
title="지 출 결 의 서"
|
|
title_type = mid(replace(title," ",""), 1, 2)
|
|
|
|
|
|
Max_Width =750
|
|
Curr_date = year(date) & "년 " & zeroformat(month(date),2) & "월 " & zeroformat(day(date),2) & "일"
|
|
|
|
|
|
|
|
''//==========================================
|
|
''2010년 3월 3일
|
|
'''인쇄여부 표시
|
|
|
|
|
|
|
|
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
|
|
if session("admin_ip") = Request.ServerVariables("remote_host") then
|
|
else
|
|
query = query & " AND b.d_delok = 'N' "
|
|
end if
|
|
end if
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
print_chk = Ucase(rsc("print_chk"))
|
|
|
|
d_cost_type = rsc("target16")
|
|
|
|
tmp_date = split(rsc("d_write_date"), "-")
|
|
dim tmp_date_edit : tmp_date_edit=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), "<BR>") then
|
|
tmp_t1 = split(tmp_7(0), "<BR>")
|
|
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
|
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), "<BR>") then
|
|
tmp_t2 = split(tmp_7(1), "<BR>")
|
|
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
|
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), "<BR>") then
|
|
tmp_t3 = split(tmp_7(2), "<BR>")
|
|
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
|
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), "<BR>") then
|
|
tmp_t4 = split(tmp_7(3), "<BR>")
|
|
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
|
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), "<BR>") then
|
|
tmp_t5 = split(tmp_7(4), "<BR>")
|
|
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
|
else
|
|
tmp_txt5 = tmp_7(4)
|
|
end if
|
|
|
|
tmp_txt6 = tmp_8(0)
|
|
tmp_txt7 = tmp_8(1)
|
|
tmp_txt8 = tmp_8(2)
|
|
tmp_txt9 = tmp_8(3)
|
|
tmp_txt10 = tmp_8(4)
|
|
|
|
hangmok = rsc("target11") '비용항목
|
|
sebu = rsc("target12") '세부내용
|
|
expence_company = rsc("target8") '거래처
|
|
expence_date = rsc("target3") '증빙일자
|
|
expence_way = rsc("target4") '지출방법
|
|
|
|
expence_num = rsc("target18") '지출방법
|
|
if rsc("target19") <> "" Then
|
|
expence_company_num = Split(rsc("target19"), "|")(0) '지출방법
|
|
expence_taxtype = Split(rsc("target19"), "|")(1) '지출방법
|
|
expence_item = Split(rsc("target19"), "|")(2) '지출방법
|
|
End If
|
|
|
|
total_expence_money = rsc("target5") '공급가총액
|
|
total_expence_vat = rsc("target6") '부가세총액
|
|
total_expence_sum = rsc("target7") '지출총액 합
|
|
|
|
attach_d_no = rsc("target9") '품의서
|
|
payment_date = rsc("remark19") '지급일자
|
|
|
|
If attach_d_no <> "" Then
|
|
Query = " select * from project2.dbo.문서내용 where 문서번호 = '" & attach_d_no & "'"
|
|
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
|
if adoRs.recordcount > 0 Then
|
|
pre_Approval_money = CLng(Replace(adoRs("target5"), ",", ""))
|
|
before_Approval_money = CLng(Replace(adoRs("target5"), ",", ""))
|
|
end if
|
|
adoRs.close
|
|
|
|
Query = "select * "
|
|
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
|
|
|
|
if adoRs.recordcount > 0 Then
|
|
For i = 1 To adoRs.recordcount
|
|
approval_money = Replace(adoRs("target5"), ",", "")
|
|
before_Approval_money = before_Approval_money - approval_money
|
|
adors.moveNext
|
|
next
|
|
end if
|
|
adors.close
|
|
End If
|
|
|
|
contents_cnt = 0
|
|
Dim tmp_rowData
|
|
|
|
for i=1 to 30
|
|
tmp_rowData = rsc("target"& CStr(20 + i))
|
|
If Trim(tmp_rowData) <> "" Then
|
|
'response.Write "tmp_rowData : " & tmp_rowData &"<BR>"
|
|
contents_cnt = contents_cnt + 1
|
|
tmp_Arr = split(tmp_rowData, "^//^")
|
|
replaceStr = CStr(i)+"^^"
|
|
gap(i, 1) = tmp_Arr(0) '프로젝트 명
|
|
gap(i, 1) = Replace(gap(i, 1), replaceStr, "")
|
|
gap(i, 2) = tmp_Arr(4) '메모
|
|
gap(i, 3) = "" '
|
|
gap(i, 4) = "" '
|
|
gap(i, 5) = tmp_Arr(1) '공급가액
|
|
gap(i, 6) = tmp_Arr(2) '부가세액
|
|
gap(i, 7) = tmp_Arr(3) '입금총액
|
|
gap(i, 8) = "" '
|
|
gap(i, 9) = gap(i, 1) '프로젝트 번호
|
|
gap(i, 10) = tmp_Arr(4) '비고내용
|
|
End if
|
|
|
|
next
|
|
|
|
d_order_cnt = int(rsc("d_order_cnt"))
|
|
|
|
|
|
'비용 항목 가져오기
|
|
query = " SELECT d_cost_name "
|
|
query = query & " FROM direct_costcode "
|
|
query = query & " WHERE id = '"& rsc("target11") & "'"
|
|
query = query & " AND d_cost_parents = '0' "
|
|
' Response.Write query
|
|
rsp.Open query, adoConn, 1
|
|
hangmok_name = rsp("d_cost_name")
|
|
rsp.close
|
|
|
|
'세부내용 가져오기
|
|
if rsc("target12") <> "" then
|
|
query = " SELECT d_cost_name "
|
|
query = query & " FROM direct_costcode "
|
|
query = query & " WHERE id = '"& rsc("target12") & "'"
|
|
'Response.Write query
|
|
rsp.Open query, adoConn, 1
|
|
sebu_name = rsp("d_cost_name")
|
|
rsp.close
|
|
end if
|
|
|
|
|
|
''로그저장
|
|
query = "insert into " & db_table_name & "_log (문서번호, 문서제목, 대상자_p_no, 대상자_이름, 내용,"
|
|
query = query & " 발급일, 발급시각, 발급자_p_no, 발급자_이름, 발급자_ip) values ( "
|
|
query = query & "'" & krc_no & "', "
|
|
query = query & "'" & replace(title, " ", "") & "', "
|
|
query = query & "'" & Session("User_Number") & "', "
|
|
query = query & "'" & Session("loginuser") & "', "
|
|
query = query & "'문서열기', "
|
|
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
|
query = query & "'" & time() & "', "
|
|
query = query & "'" & user_name(0) & "', "
|
|
query = query & "'" & user_name(1) & "', "
|
|
query = query & "'" & Session("USERIP") & "')"
|
|
|
|
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
|
else
|
|
adoconn.execute query
|
|
end if
|
|
|
|
if print_type = "2" then
|
|
query = "update 문서내용 set print_chk = 'Yes', print_cnt = print_cnt + 1 where 문서번호='" & d_no & "' "
|
|
adoConn.Execute query
|
|
end if
|
|
|
|
if tmp_year = "" then
|
|
tmp_year = year(date)
|
|
end If
|
|
%>
|
|
<html>
|
|
<head>
|
|
<title><%=GNB_TITLE%></title>
|
|
<link rel="stylesheet" type="text/css" href="/css/jquery-ui.min.css">
|
|
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
|
<style>
|
|
.reprint_comment{
|
|
position: absolute;
|
|
left: 190px;
|
|
top: 96px;
|
|
font-size: 14px;
|
|
font-family: "malgun gothic";
|
|
color: #9c9c9c;
|
|
}
|
|
.print_date{
|
|
width: 395px;
|
|
text-align: right;
|
|
display:none;
|
|
}
|
|
|
|
@media print{
|
|
.print_date{
|
|
display: inline-block;
|
|
}
|
|
}
|
|
.attach_div{
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
.attach_preview{
|
|
display: flex;
|
|
width: 15%;
|
|
height: 70px;
|
|
border: 1px solid #ccc;
|
|
box-shadow: 1px 1px 2px 1px #b9b9b9;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
margin: 4px;
|
|
}
|
|
.attach_preview > img{
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
.attach_modal_overlay{
|
|
display:none;
|
|
position:fixed;
|
|
top:0;left:0;right:0;bottom:0;
|
|
background:rgba(0,0,0,0.8);
|
|
z-index:9999;
|
|
justify-content:center;
|
|
align-items:center;
|
|
}
|
|
.attach_modal_overlay.active{
|
|
display:flex;
|
|
}
|
|
.attach_modal_img{
|
|
max-width:85%;
|
|
max-height:85%;
|
|
}
|
|
.attach_modal_nav{
|
|
position:absolute;
|
|
top:50%;
|
|
transform:translateY(-50%);
|
|
font-size:40px;
|
|
color:#fff;
|
|
cursor:pointer;
|
|
user-select:none;
|
|
padding:10px 20px;
|
|
}
|
|
.attach_modal_prev{ left:20px; }
|
|
.attach_modal_next{ right:20px; }
|
|
.attach_modal_close{
|
|
position:absolute;
|
|
top:20px;
|
|
right:30px;
|
|
font-size:30px;
|
|
color:#fff;
|
|
cursor:pointer;
|
|
}
|
|
.attach_modal_count{
|
|
position:absolute;
|
|
bottom:20px;
|
|
left:50%;
|
|
transform:translateX(-50%);
|
|
color:#fff;
|
|
font-size:14px;
|
|
}
|
|
.attach_preview{ position:relative; }
|
|
.attach_add_btn{
|
|
display:flex;
|
|
width:15%;
|
|
height:70px;
|
|
border:1px dashed #ccc;
|
|
justify-content:center;
|
|
align-items:center;
|
|
cursor:pointer;
|
|
margin:4px;
|
|
color:#888;
|
|
font-size:13px;
|
|
}
|
|
.attach_del_btn{
|
|
position:absolute;
|
|
top:-6px;
|
|
right:-6px;
|
|
width:18px;
|
|
height:18px;
|
|
line-height:16px;
|
|
text-align:center;
|
|
background:#e74c3c;
|
|
color:#fff;
|
|
border-radius:50%;
|
|
font-size:13px;
|
|
cursor:pointer;
|
|
z-index:2;
|
|
}
|
|
.attach_file_box{
|
|
position:relative;
|
|
display:flex;
|
|
flex-direction:column;
|
|
justify-content:center;
|
|
align-items:center;
|
|
width:15%;
|
|
height:70px;
|
|
border:1px solid #ccc;
|
|
box-shadow: 1px 1px 2px 1px #b9b9b9;
|
|
margin:4px;
|
|
overflow:hidden;
|
|
text-align:center;
|
|
padding:4px;
|
|
box-sizing:border-box;
|
|
}
|
|
.attach_file_link{
|
|
text-decoration:none;
|
|
display:flex;
|
|
flex-direction:column;
|
|
align-items:center;
|
|
width:100%;
|
|
}
|
|
.attach_file_ext{
|
|
font-weight:bold;
|
|
color:#666;
|
|
font-size:11px;
|
|
}
|
|
.attach_file_name{
|
|
display:block;
|
|
max-width:100%;
|
|
overflow:hidden;
|
|
text-overflow:ellipsis;
|
|
white-space:nowrap;
|
|
font-size:10px;
|
|
color:#333;
|
|
}
|
|
.attach_upload_loading{
|
|
display:none;
|
|
position:fixed;
|
|
top:0;left:0;right:0;bottom:0;
|
|
background:rgba(255,255,255,0.7);
|
|
z-index:10000;
|
|
flex-direction:column;
|
|
justify-content:center;
|
|
align-items:center;
|
|
}
|
|
.attach_upload_loading.active{
|
|
display:flex;
|
|
}
|
|
.attach_upload_spinner{
|
|
width:50px;
|
|
height:50px;
|
|
border:5px solid #ccc;
|
|
border-top:5px solid #333;
|
|
border-radius:50%;
|
|
animation:attach_spin 1s linear infinite;
|
|
}
|
|
@keyframes attach_spin{
|
|
0%{ transform:rotate(0deg); }
|
|
100%{ transform:rotate(360deg); }
|
|
}
|
|
.attach_upload_text{
|
|
margin-top:10px;
|
|
font-size:14px;
|
|
color:#333;
|
|
}
|
|
</style>
|
|
</head>
|
|
<script src="/js/jquery.min.js"></script>
|
|
<script src="/js/jquery-ajax-call.js"></script>
|
|
<script src="/js/jquery.form.min.js"></script>
|
|
<script src="/js/jquery-ui.min.js"></script>
|
|
<script src="/js/common.js"></script>
|
|
<script src="/js/pdf.js"></script>
|
|
<script src="/js/pdf.worker.js"></script>
|
|
<script language="javascript">
|
|
|
|
function win_close()
|
|
{
|
|
window.close();
|
|
}
|
|
function win_print()
|
|
{
|
|
if("<%=print_chk%>" == "YES"){
|
|
if(!confirm("이미 출력한 내역이 있습니다.\n그래도 출력하시겠습니까?")){
|
|
return false;
|
|
}
|
|
}
|
|
var p_subject = document.ess.p_subject.value;
|
|
var expence_date = document.ess.expence_date.value;
|
|
var payment_date = document.ess.payment_date.value;
|
|
var expence_way = document.ess.expence_way.value;
|
|
var expence_company = document.ess.expence_company.value;
|
|
var p_sn = document.ess.p_sn.value;
|
|
|
|
var hangmok = document.ess.hangmok.value;
|
|
var sebu = document.ess.sebu.value;
|
|
|
|
<%
|
|
if tmp_admin_chk = "1" then
|
|
%>
|
|
var txt_d_no = document.ess.txt_d_no.value;
|
|
<%
|
|
end if
|
|
%>
|
|
|
|
var url = "doc_expense2_print_2014.asp"
|
|
url = url + "?p_subject=" + p_subject;
|
|
url = url + "&hangmok=" + hangmok;
|
|
url = url + "&sebu=" + sebu;
|
|
url = url + "&expence_date=" + expence_date;
|
|
url = url + "&expence_way=" + expence_way;
|
|
url = url + "&expence_company=" + expence_company;
|
|
url = url + "&print_type=2";
|
|
url = url + "&p_sn=" + p_sn;
|
|
url = url + "&payment_date=" + payment_date;
|
|
|
|
<%
|
|
if tmp_admin_chk = "1" then
|
|
%>
|
|
url = url + "&txt_d_no=" + txt_d_no;
|
|
<%
|
|
end if
|
|
%>
|
|
|
|
document.ess.action=url;
|
|
document.ess.submit();
|
|
}
|
|
|
|
|
|
|
|
function print_ie()
|
|
{
|
|
setTimeout(
|
|
function(){
|
|
//
|
|
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
|
window.PPClose = false; // Clear Close Flag
|
|
window.onbeforeunload = function(){ // Before Window Close Event
|
|
if(window.PPClose === false){ // Close not OK?
|
|
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
|
}
|
|
}
|
|
window.print(); // Print preview
|
|
window.PPClose = true; // Set Close Flag to OK.
|
|
}else{
|
|
window.print();
|
|
window.close();
|
|
}
|
|
}, 3000);
|
|
}
|
|
|
|
function clsit()
|
|
{
|
|
alert('결재요청 되었습니다');
|
|
self.close();
|
|
}
|
|
|
|
function subit(a, b)
|
|
{
|
|
var tmp_txt;
|
|
var approve_pass;
|
|
|
|
if (a == 1)
|
|
{
|
|
tmp_txt = "부재자 ";
|
|
approve_pass = 1;
|
|
}
|
|
else
|
|
{
|
|
tmp_txt = "";
|
|
}
|
|
|
|
if (confirm(tmp_txt + "승인을 하시겠습니까?"))
|
|
{
|
|
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
|
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
|
document.ess.submit();
|
|
}
|
|
}
|
|
|
|
function backit(a)
|
|
{
|
|
alert("사유를 작성해 주세요");
|
|
var url = "reason.asp?d_no="+a;
|
|
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
|
}
|
|
|
|
|
|
// 수정처리
|
|
function js_edit_ok(){
|
|
|
|
//------------------------------------------------
|
|
<%if xadmin="edit" then %>
|
|
if(!doanothercheck(ess.expence_company)){return;}
|
|
<%end if%>
|
|
//------------------------------------------------
|
|
|
|
|
|
document.ess.edit_mode.value="mult"; // 멀티 수정
|
|
|
|
document.ess.target="";
|
|
document.ess.action="doc_expense_editok.asp";
|
|
document.ess.submit();
|
|
|
|
|
|
}
|
|
|
|
|
|
//-->
|
|
$(function(){
|
|
$("#expence_date").datepicker();
|
|
$("#payment_date").datepicker();
|
|
$(document).on('keydown', function(e) {
|
|
if(e.ctrlKey && (e.key == "p" || e.charCode == 16 || e.charCode == 112 || e.keyCode == 80) ){
|
|
alert("이용할 수 없는 단축키 입니다.\n출력하기 버튼을 클릭해주세요.");
|
|
e.cancelBubble = true;
|
|
e.preventDefault();
|
|
|
|
e.stopImmediatePropagation();
|
|
}
|
|
});
|
|
|
|
if (document.addEventListener) {
|
|
document.addEventListener('contextmenu', function(e) {
|
|
alert("이용할 수 없는 기능 입니다.\n출력하기 버튼을 클릭해주세요."); //here you draw your own menu
|
|
e.preventDefault();
|
|
}, false);
|
|
} else {
|
|
document.attachEvent('oncontextmenu', function() {
|
|
alert("이용할 수 없는 기능 입니다.\n출력하기 버튼을 클릭해주세요.");
|
|
window.event.returnValue = false;
|
|
});
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
|
|
|
<form method='post' name='ess'>
|
|
<input type="hidden" name="d_no" value="<%=d_no%>">
|
|
<input type="hidden" name="x" value="<%=x%>">
|
|
<input type=hidden name = "p_subject" value="">
|
|
<input type=hidden name = "txt_d_no" value="<%=attach_d_no%>">
|
|
<input type=hidden name = "tmp_year" value="<%=tmp_year%>">
|
|
<input type=hidden name = "contents_cnt" value="<%=contents_cnt%>">
|
|
<input type=hidden name = "title_type" value='<%=title_type%>'>
|
|
<!-- 추가 -->
|
|
<input type=hidden name = "d_cost_type" value='<%=d_cost_type%>' >
|
|
<input type="hidden" name="edit_mode" value='' ><!-- 수정타입 -->
|
|
<input type="hidden" name="topage" value="doc_expense2_print_2014.asp" ><!-- 현재 페이지명 -->
|
|
|
|
<%if x = "99" then%>
|
|
<!-- #include file = "inc_delreason.asp" -->
|
|
<%end if '''if x = "99" then%>
|
|
|
|
<%
|
|
if rev_type <> "1" and 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
|
|
%>
|
|
<!-- #include file = "inc_print.asp" -->
|
|
<%end if%>
|
|
<%
|
|
if print_chk = "YES" AND cint(print_type) = 2 Then
|
|
%>
|
|
<div class='reprint_comment'>(재출력)</div>
|
|
<%
|
|
End if
|
|
%>
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td colspan="2" style="padding:20;">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td><img width = "100%" src="/images/approval/docbg_top.jpg"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
|
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td colspan="2" style="padding:0 0 10 0">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<tr>
|
|
<td width="255">
|
|
<%if title_type = "지출" then%>
|
|
<img src="/images/approval/doc_stit08.jpg">
|
|
<%else%>
|
|
<img src="/images/approval/doc_stit24.jpg">
|
|
<%end if%>
|
|
</td>
|
|
<td>
|
|
<!-- #include file = "inc_approval.asp" -->
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="20%" style="padding:7 0 7 20"><b>문 서 번 호</b></td>
|
|
<td width="80%" class="tahoma"><%=d_no%><div class='print_date'>출력시간 : <%=now%></div></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="20%" style="padding:7 0 7 20"><b>결 의 일 자</b></td>
|
|
<td width="80%" class="tahoma"><%=Curr_date%>
|
|
<input type=hidden name="tmp_date_edit" value='<%=tmp_date_edit%>' ><!-- 결의일자 --></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="20%" style="padding:7 0 7 20"><b>성 명</b></td>
|
|
<td width="80%"><%=user_name(1)%></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="20%" style="padding:7 0 7 20"><b>소 속</b></td>
|
|
<td width="80%"><%=user_name(4)%></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="20%" style="padding:7 0 7 20"><b>직 급</b></td>
|
|
<td width="80%"><%=user_name(2)%></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" align="center" style="padding:10 0 10 0;font-size:14;font-family:dotum;"><b>하기의 프로젝트(업무)와 관련하여, <%=title_type%>을 결의하오니 승인하여 주시기 바랍니다.</b></td>
|
|
</tr>
|
|
<%
|
|
'----------------------------------------------------------------------------------------
|
|
'### 프로젝트명에 해당하는 직접비가 있다면 링크함 - 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") & "<br>"
|
|
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 & "<BR>"
|
|
|
|
dataCount = adoRs.recordcount
|
|
adoRs.close
|
|
|
|
if dataCount > 0 then
|
|
'tmp_link = " - <a href='direct_cost_print.asp?p_sn=" & rsc("p_sn") & "' target='_blank'>직접비 보기</a>"
|
|
If CLng(Left(tmp_p_sn(i), 4)) >= 1407 Then
|
|
cost_p_child_sn = gap(11)
|
|
|
|
tmp_link = tmp_link & "<img src='/images/approval/btn_directcost_view.jpg' align='absmiddle' style='CURSOR:pointer;' onclick=direct_cost_detail(" & "'" & cost_p_child_sn & "') />"
|
|
Else
|
|
tmp_link = tmp_link & "<a href='direct_cost_print.asp?p_sn=" & tmp_p_sn(i) & "' target='_blank' class='blue'><img src='/images/approval/btn_directcost_view.jpg' align='absmiddle' style='CURSOR:pointer;'></a>"
|
|
End if
|
|
else
|
|
tmp_link = tmp_link & "<font color=blue><b>[직접비 없음]</b></font>"
|
|
end if
|
|
next
|
|
|
|
'----------------------------------------------------------------------------------------
|
|
%>
|
|
<tr>
|
|
<td colspan="2" align="center" style="padding:10 0 0 0">
|
|
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<tr>
|
|
<td width="15%" class='tit2' align="center">비용항목</td>
|
|
<td width="35%" class='tit7' align="center">
|
|
<%if xadmin="edit" then%>
|
|
<b>선택: <font color=blue><%=hangmok_name%></font></b><br>
|
|
<b>변경: </b>
|
|
<select name="hangmok" id="hangmok" tabindex="4" style="background-color:#C1E0FF;" ><!--== 비용항목 ==-->
|
|
<option value=''>선택</option>
|
|
<!--== cost_type = 1 일때는 모든 쿼리 값을 가져오고, cost_type = 2이며, 경영전락실(p_depart = 18 )이면 모든 항목을, 그외 부서는 129, 137 2개의 항목만 가져온다. ==-->
|
|
<%
|
|
If cost_type = 1 Then
|
|
query = "select * from direct_costcode where d_cost_kind = 'support' and d_cost_parents = 0 and d_cost_useyn = 'Y' order by d_cost_kind, d_cost_parents "
|
|
else
|
|
query = "select * from direct_costcode where d_cost_kind = 'common' and d_cost_parents = 0 and d_cost_useyn = 'Y' order by d_cost_kind, d_cost_parents "
|
|
End if
|
|
|
|
If cost_type = 2 and p_depart <> "18" Then
|
|
query = "select * from direct_costcode where id in (154) "
|
|
End if
|
|
|
|
rsp.Open query, adoConn, 1
|
|
|
|
for i=1 to rsp.recordCount %>
|
|
<option value='<%=rsp("id")%>'><%=rsp("d_cost_name")%></option>
|
|
<% rsp.movenext
|
|
next
|
|
rsp.close %>
|
|
</select>
|
|
<%else%>
|
|
<font class="tahoma"><%=hangmok_name%></font>
|
|
<input type="hidden" name = "hangmok" value="<%= hangmok %>" />
|
|
<%end if%>
|
|
</td>
|
|
<td width="15%" class='tit2' align="center" >세부내용</td>
|
|
<td width="35%" class='tit7' align="center" >
|
|
<%if xadmin="edit" then %>
|
|
<b>선택: <font color=blue><%=sebu_name%></font></b><br>
|
|
<b>변경: </b><select name="sebu" id="sebu" tabindex="4" onchange="bugaNoChange()" style="background-color:#C1E0FF;" ><!--== 세부내용 ==-->
|
|
</select>
|
|
<%else %>
|
|
<font class="tahoma"><%=sebu_name%></font>
|
|
<input type=hidden name = "sebu" value="<%=sebu %>" />
|
|
<%end if%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='tit2' align="center">거래처</td>
|
|
<td class='tit7' align="center">
|
|
<%if xadmin="edit" then %>
|
|
<input type="text" class="gray" style="width:200px;background-color:#C1E0FF;" name="expence_company" value='<%=expence_company%>' onKeyUp="javascript:dodacheck(ess.expence_company);" >
|
|
<%else %>
|
|
<font class="tahoma"><%=expence_company%></font>
|
|
<input type=hidden name = "expence_company" value="<%=expence_company %>">
|
|
<%end if %>
|
|
</td>
|
|
<td class='tit2' align="center">증빙일자</td>
|
|
<td class='tit7' align="center">
|
|
<%if xadmin="edit" then %>
|
|
<input type="text" class="gray" style="width:80px;text-align:right; cursor:pointer;background-color:#C1E0FF;" name="expence_date" id="expence_date" value='<%=expence_date%>' style="background-color:#C1E0FF;" readonly>
|
|
<%else %>
|
|
<font class="tahoma"><%=expence_date%></font>
|
|
<input type=hidden name = "expence_date" value="<%=expence_date %>" >
|
|
<%end if%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='tit2' align="center">증빙서류</td>
|
|
<td class='tit7' align="center">
|
|
<%if xadmin="edit" then %>
|
|
<select id="expence_way" name="expence_way" tabindex="4" style="background-color:#C1E0FF;" onchange="bugaNoChange()">
|
|
<%for i=1 to 4%>
|
|
<%if pay_type(i) <> "" Then %>
|
|
<option value="<%=pay_type(i)%>"
|
|
<%if trim(pay_type(i)) = trim(expence_way) then%>
|
|
selected
|
|
<%end if%>
|
|
><%=pay_type(i)%></option>
|
|
<% End If %>
|
|
<%next%>
|
|
</select>
|
|
<%else %>
|
|
<font class="tahoma"><%=expence_way%></font>
|
|
<input type=hidden name = "expence_way" value="<%=expence_way %>">
|
|
<%end if%>
|
|
</td>
|
|
<td width="15%" class="tit2" align="center">증빙번호</td>
|
|
<td width="30%" class="tit7" align="center"><font class="tahoma"><a href='javascript:taxInvoiceView("<%=expence_num%>");'><%=expence_num%></a></font></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='tit2' align="center">지급일자</td>
|
|
<td class='tit7' align="center" colspan="3">
|
|
<!-- 경영문화본부만 수정 가능 -->
|
|
<%If xadmin = "edit" And (session("admin_ip") = Request.ServerVariables("remote_host")) Then %>
|
|
<input type="text" class="gray" style="width:80px;text-align:right; cursor:pointer;background-color:#C1E0FF;" name="payment_date" id="payment_date" value='<%=payment_date%>' style="background-color:#C1E0FF;" readonly>
|
|
<%else %>
|
|
<font class="tahoma"><%=payment_date%></font>
|
|
<input type=hidden name = "payment_date" value="<%=payment_date %>" >
|
|
<%end if%>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
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|"
|
|
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
|
|
%>
|
|
<tr>
|
|
<td class="tit2" align="center">증빙첨부</td>
|
|
<td colspan="3" class="tit7">
|
|
<div class="attach_div">
|
|
<%
|
|
For i=1 To 20
|
|
If attachFileMap(i) <> "" Then
|
|
If attachIsImage(i) Then
|
|
%>
|
|
<div class="attach_preview">
|
|
<img src="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & attachFileMap(i)%>" />
|
|
<% If xadmin = "edit" And Session("N_depart") = "M" And Session("N_team") = "101" Then %>
|
|
<span class="attach_del_btn" data-idx="<%=i%>">×</span>
|
|
<% End If %>
|
|
</div>
|
|
<%
|
|
Else
|
|
%>
|
|
<div class="attach_file_box">
|
|
<a href="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & attachFileMap(i)%>" target="_blank" class="attach_file_link">
|
|
<span class="attach_file_ext"><%=Ucase(Mid(attachFileMap(i), InStrRev(attachFileMap(i),".")+1))%></span>
|
|
<span class="attach_file_name"><%=attachFileMap(i)%></span>
|
|
</a>
|
|
<% If xadmin = "edit" And Session("N_depart") = "M" And Session("N_team") = "101" Then %>
|
|
<span class="attach_del_btn" data-idx="<%=i%>">×</span>
|
|
<% End If %>
|
|
</div>
|
|
<%
|
|
End If
|
|
End If
|
|
Next
|
|
%>
|
|
<% If xadmin = "edit" And Session("N_depart") = "M" And Session("N_team") = "101" Then %>
|
|
<div class="attach_add_btn" id="attachAddBtn">+ 추가</div>
|
|
<input type="file" id="attachFileInput" accept="image/*,.zip,.pdf,.hwp,.doc,.docx,.xls,.xlsx,.ppt,.pptx" multiple style="display:none;" />
|
|
<% End If %>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
Set fso = Nothing
|
|
%>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2" align="center" style="padding:10 0 0 0">
|
|
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<tr>
|
|
<td width="29%" class='tit2' align="center">프로젝트</td>
|
|
<td width="12%" class='tit2' align="center">공급가액</td>
|
|
<td width="12%" class='tit2' align="center">부가세액</td>
|
|
<td width="12%" class='tit2' align="center">지출총액</td>
|
|
<td width="35%" class='tit2' align="center">비고(내용, 수량, 단가)</td>
|
|
</tr>
|
|
<%
|
|
For i = 1 To contents_cnt
|
|
%>
|
|
<tr>
|
|
<%
|
|
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
|
|
%>
|
|
<td class='tit7' align="center"><font class="tahoma"><%=tmp_p_subject&" ("&gap(i, 1)&")"%></font>
|
|
<input type=hidden name = "ex_account" value='<%=gap(i, 1)%>' > <!-- 경비코드 -->
|
|
<input type="hidden" name="p_sn" value="<%=gap(i, 1) %>" />
|
|
</td>
|
|
<td class='tit7' align="right">
|
|
<%if xadmin="edit" then %>
|
|
<input type="text" id="val_supply<%=i%>" class="gray" OnKeyup="OnlyNumber(this);check_comma(this.value,'1', '<%=i%>');" name="expence_money" style="width:95%;text-align:right;background-color:#C1E0FF;" value='<%=FormatNumber(gap(i, 5), 0)%>'>
|
|
<%else%>
|
|
<font class="tahoma"><%=FormatNumber(gap(i, 5), 0)%></font>
|
|
<input type="hidden" name="expence_money" value="<%=gap(i, 5)%>" />
|
|
<%end if%>
|
|
</td>
|
|
<td class='tit7' align="right">
|
|
<%if xadmin="edit" then %>
|
|
<input type="button" value="자동계산" onclick="vat_auto('<%=i%>');" style="width:95%;" /><br />
|
|
<input type="text" class="gray" OnKeyup="OnlyNumber(this);check_comma(this.value,2, '<%=i%>');" name="expence_vat" id="expence_vat<%=i%>" style="width:95%;text-align:right;background-color:#C1E0FF;" value="<%=FormatNumber(gap(i, 6), 0)%>">
|
|
<%else%>
|
|
<font class="tahoma"><%=FormatNumber(gap(i, 6), 0)%></font>
|
|
<input type="hidden" name="expence_vat" value="<%=gap(i, 6)%>" />
|
|
<%end if%>
|
|
</td>
|
|
<td class='tit7' align="right">
|
|
<%if xadmin="edit" then %>
|
|
<input type="text" class="gray" style="width:95%;text-align:right;background-color:#C1E0FF;" name="expence_sum" id="expence_sum<%=i%>" value="<%=FormatNumber(gap(i, 7), 0)%>" readonly >
|
|
<%else%>
|
|
<font class="tahoma"><%=FormatNumber(gap(i, 7), 0)%></font>
|
|
<input type="hidden" name="expence_sum" value="<%=gap(i, 7)%>" />
|
|
<%end if%>
|
|
</td>
|
|
<td class='tit7' align="left">
|
|
<%if xadmin="edit" then %>
|
|
<TEXTAREA rows="3" cols="80" name="expence_reason" id="expence_reason" style="width:100%;height:50;background-color:#C1E0FF;" ><%=ViewWord(gap(i, 10))%></TEXTAREA>
|
|
<%else %>
|
|
<font class="tahoma"><%=ViewWord(gap(i, 10))%></font>
|
|
<input type="hidden" name="expence_reason" value="<%=gap(i, 10)%>" />
|
|
<%end if%>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
'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
|
|
%>
|
|
|
|
<tr>
|
|
<td align="center" class='tit7' ><font class="tahoma">합계</font></td>
|
|
<td align="right" class='tit7'><font class="tahoma"><%=FormatNumber(total_expence_money, 0)%></font></td>
|
|
<td align="right" class='tit7'><font class="tahoma"><%=FormatNumber(total_expence_vat, 0)%></font></td>
|
|
<td align="right" class='tit7'><font class="tahoma"><%=FormatNumber(total_expence_sum, 0)%></font></td>
|
|
<td class='tit7' style="text-align: right;"> </td>
|
|
|
|
<input type="hidden" name="total_expence_money" value="<%=total_expence_money%>">
|
|
<input type="hidden" name="total_expence_vat" value="<%=total_expence_vat%>">
|
|
<input type="hidden" name="total_expence_sum" value="<%=total_expence_sum%>">
|
|
</tr>
|
|
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
<%
|
|
if attach_d_no <> "" then
|
|
%>
|
|
<tr>
|
|
<td colspan="2" align="center" style="padding:20 0 0 0">
|
|
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<tr>
|
|
<td width="15%" class="tit2" align="center">품의문서</td>
|
|
<td width="85%" class="tit7" colspan="4">
|
|
<font class="tahoma"><a href="javascript:openit('0', '<%=attach_d_no%>','1','2')"><%=attach_d_no%></a> [ 품의문서 금액 : <%=FormatNumber(pre_Approval_money, 0)%>원 ], [ 남은금액 :
|
|
<% If CDbl(before_Approval_money) < 0 Then %>
|
|
<font color="red"> <%=FormatNumber(before_Approval_money, 0)%> </font>
|
|
<% Else %>
|
|
<%=FormatNumber(before_Approval_money, 0)%>
|
|
<% End If %>
|
|
원 ]</font>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
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")
|
|
%>
|
|
<tr>
|
|
<td width="100%" align="center" colspan="5">
|
|
<font class="tahoma">품의서를 이용한 지출결의서 사용 내역</font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="14%" class="tit2" align="center">문서제목</td>
|
|
<td width="16%" class="tit2" align="center">문서번호</td>
|
|
<td width="17%" class="tit2" align="center">지출금액(VAT별도)</td>
|
|
<td width="19%" class="tit2" align="center">증빙일/작성자</td>
|
|
<td width="34%" class="tit2" align="center">비고(내용, 수량, 단가)</td>
|
|
</tr>
|
|
<%
|
|
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
|
|
%>
|
|
<tr>
|
|
<td class="tit7" align="center"><font class="tahoma"><%=adoRs("문서제목")%></font></td>
|
|
<td class="tit7" align="center"><font class="tahoma"><%=adoRs("문서번호")%></font></td>
|
|
<td class="tit7" align="right"><font class="tahoma"><%=FormatNumber(approval_money, 0)%></font></td>
|
|
<td class="tit7" align="center"><font class="tahoma"><%=adoRs("target3")%> / <%=adoRs("login_이름")%></font></td>
|
|
<td class="tit7"><font class="tahoma"><%=remark%></font></td>
|
|
</tr>
|
|
<%
|
|
adors.moveNext
|
|
next
|
|
end if
|
|
adors.close
|
|
%>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
end if
|
|
%>
|
|
<%if xadmin="edit" then '-- 수정시 %>
|
|
<tr>
|
|
<td colspan="2" align="center" style="padding:10 0 0 0"><button type="button" onclick="javascript:js_edit_ok();" >수 정 하 기</button></td>
|
|
</tr>
|
|
<%else %>
|
|
<%' <!-- #include file = "inc_reply.asp" --> %>
|
|
<%end if %>
|
|
<tr>
|
|
<td colspan="2" style="padding:20 0 0 0" align="right">
|
|
<pre><font class="tahoma"> 영 수 일 자 : 년 월 일</font></pre>
|
|
<pre><font class="tahoma"> 영 수 자 : (印)</font></pre>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><img width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<% if cint(print_type) = 2 Then %>
|
|
<%
|
|
Set fso = Server.CreateObject("Scripting.FileSystemObject")
|
|
For i=1 To 20
|
|
if fso.FileExists(Server.Mappath("/") & "/Upload/DOC_ATTACH/" & krc_no & "/" & krc_no & "_" & cstr(i) & ".jpg") = True then
|
|
%>
|
|
<div style='page-break-before:always; max-width:750px;'>
|
|
<img style="max-width:100%;" src="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & krc_no & "_" & cstr(i) & ".jpg"%>" />
|
|
</div>
|
|
<%
|
|
End If
|
|
Next
|
|
Set fso = Nothing
|
|
%>
|
|
<% End If %>
|
|
</form>
|
|
<div class="attach_modal_overlay" id="attachModalOverlay">
|
|
<span class="attach_modal_close" id="attachModalClose">×</span>
|
|
<span class="attach_modal_nav attach_modal_prev" id="attachModalPrev">‹</span>
|
|
<img class="attach_modal_img" id="attachModalImg" src="" />
|
|
<span class="attach_modal_nav attach_modal_next" id="attachModalNext">›</span>
|
|
<div class="attach_modal_count" id="attachModalCount"></div>
|
|
</div>
|
|
<div class="attach_upload_loading" id="attachUploadLoading">
|
|
<div class="attach_upload_spinner"></div>
|
|
<div class="attach_upload_text">업로드 중입니다...</div>
|
|
</div>
|
|
<script>
|
|
var ntsUrl = "";
|
|
$(document).ready(function () {
|
|
|
|
var d_cost_type = document.ess.d_cost_type.value;
|
|
|
|
$('#hangmok').change(function () {
|
|
//alert("비용항목 : "+$("#hangmok option:selected").val());
|
|
var cost_type = 0;
|
|
$("input[name='cost_type']").each(function (index){
|
|
//alert($(this).is(":checked")+"//"+$(this).val());
|
|
if($(this).is(":checked") == true){
|
|
cost_type = $(this).val();
|
|
}
|
|
});
|
|
//return;
|
|
ajaxCallJson("../approval/doc_expense2_ajax_sebu_2014.asp", { hangmok: $("#hangmok option:selected").val(), d_cost_type: document.ess.d_cost_type.value, cost_type: "2"}, null, "post", "sebureturnFunc()");
|
|
});
|
|
|
|
var attachImgs = [];
|
|
var attachIdx = 0;
|
|
|
|
$(".attach_preview img").each(function(){
|
|
attachImgs.push($(this).attr("src"));
|
|
});
|
|
|
|
function showAttachModal(idx){
|
|
if(attachImgs.length == 0){ return; }
|
|
if(idx < 0){ idx = attachImgs.length - 1; }
|
|
if(idx >= attachImgs.length){ idx = 0; }
|
|
attachIdx = idx;
|
|
$("#attachModalImg").attr("src", attachImgs[attachIdx]);
|
|
$("#attachModalCount").text((attachIdx+1) + " / " + attachImgs.length);
|
|
$("#attachModalOverlay").addClass("active");
|
|
}
|
|
|
|
$(".attach_preview").on("click", function(e){
|
|
if($(e.target).hasClass("attach_del_btn")){ return; }
|
|
var idx = $(".attach_preview").index(this);
|
|
showAttachModal(idx);
|
|
});
|
|
|
|
$("#attachModalPrev").on("click", function(){ showAttachModal(attachIdx - 1); });
|
|
$("#attachModalNext").on("click", function(){ showAttachModal(attachIdx + 1); });
|
|
$("#attachModalClose").on("click", function(){ $("#attachModalOverlay").removeClass("active"); });
|
|
$("#attachModalOverlay").on("click", function(e){
|
|
if(e.target.id == "attachModalOverlay"){ $("#attachModalOverlay").removeClass("active"); }
|
|
});
|
|
$(document).on("keydown", function(e){
|
|
if($("#attachModalOverlay").hasClass("active")){
|
|
if(e.keyCode == 37){ showAttachModal(attachIdx - 1); }
|
|
else if(e.keyCode == 39){ showAttachModal(attachIdx + 1); }
|
|
else if(e.keyCode == 27){ $("#attachModalOverlay").removeClass("active"); }
|
|
}
|
|
})
|
|
|
|
$("#attachAddBtn").on("click", function(){
|
|
$("#attachFileInput").val("").trigger("click");
|
|
});
|
|
|
|
$("#attachFileInput").on("change", function(){
|
|
var files = this.files;
|
|
if(!files || files.length == 0){ return; }
|
|
$("#attachUploadLoading").addClass("active");
|
|
expandPdfFiles(files, 0, [], function(expandedFiles){
|
|
uploadAttachFiles(expandedFiles, 0);
|
|
});
|
|
});
|
|
|
|
function expandPdfFiles(files, idx, result, done){
|
|
if(idx >= files.length){
|
|
done(result);
|
|
return;
|
|
}
|
|
var f = files[idx];
|
|
if(f.type == "application/pdf"){
|
|
pdfFileToImages(f, function(imgFiles){
|
|
for(var i=0; i<imgFiles.length; i++){ result.push(imgFiles[i]); }
|
|
expandPdfFiles(files, idx+1, result, done);
|
|
});
|
|
}else{
|
|
result.push(f);
|
|
expandPdfFiles(files, idx+1, result, done);
|
|
}
|
|
}
|
|
|
|
function pdfFileToImages(file, callback){
|
|
var images = [];
|
|
var pdf_url = URL.createObjectURL(file);
|
|
var pdfTask = PDFJS.getDocument({ url: pdf_url });
|
|
pdfTask.promise.then(function(pdf_doc){
|
|
renderPdfPageToImg(pdf_doc, 1, pdf_doc.numPages, images, callback);
|
|
}).catch(function(error){
|
|
callback([file]);
|
|
});
|
|
}
|
|
|
|
function renderPdfPageToImg(pdf_doc, currentPage, maxPage, images, callback){
|
|
pdf_doc.getPage(currentPage).then(function(page){
|
|
var scale = 1.5;
|
|
var viewport = page.getViewport(scale);
|
|
var canvas = document.createElement("canvas");
|
|
var context = canvas.getContext("2d");
|
|
canvas.width = Math.floor(viewport.width);
|
|
canvas.height = Math.floor(viewport.height);
|
|
var renderContext = { canvasContext: context, viewport: viewport };
|
|
page.render(renderContext).then(function(){
|
|
var imgDataUrl = canvas.toDataURL("image/jpeg", 1.0);
|
|
var blobBin = atob(imgDataUrl.split(",")[1]);
|
|
var array = [];
|
|
for(var i=0; i<blobBin.length; i++){ array.push(blobBin.charCodeAt(i)); }
|
|
var imgFile = new File([new Uint8Array(array)], "pdfpage.jpg", {type: "image/jpeg"});
|
|
images.push(imgFile);
|
|
if(maxPage > currentPage){
|
|
renderPdfPageToImg(pdf_doc, currentPage+1, maxPage, images, callback);
|
|
}else{
|
|
callback(images);
|
|
}
|
|
});
|
|
});
|
|
}
|
|
|
|
function uploadAttachFiles(files, idx){
|
|
if(idx >= files.length){
|
|
location.reload();
|
|
return;
|
|
}
|
|
var fd = new FormData();
|
|
fd.append("attach_file", files[idx]);
|
|
fd.append("krc_no", "<%=krc_no%>");
|
|
$.ajax({
|
|
url: "/ess/doc_attach_add.asp",
|
|
type: "POST",
|
|
data: fd,
|
|
processData: false,
|
|
contentType: false,
|
|
dataType: "json",
|
|
success: function(ret){
|
|
if(ret.result == "ok"){
|
|
uploadAttachFiles(files, idx+1);
|
|
}else if(ret.result == "full"){
|
|
$("#attachUploadLoading").removeClass("active");
|
|
alert("최대 20개까지 첨부할 수 있습니다.");
|
|
}else if(ret.result == "denied"){
|
|
$("#attachUploadLoading").removeClass("active");
|
|
alert("권한이 없습니다.");
|
|
}else if(ret.result == "badtype"){
|
|
$("#attachUploadLoading").removeClass("active");
|
|
alert("허용되지 않는 파일 형식입니다.");
|
|
}else{
|
|
$("#attachUploadLoading").removeClass("active");
|
|
alert("업로드에 실패했습니다.");
|
|
}
|
|
},
|
|
error: function(){
|
|
$("#attachUploadLoading").removeClass("active");
|
|
alert("업로드 중 오류가 발생했습니다.");
|
|
}
|
|
});
|
|
}
|
|
|
|
$(document).on("click", ".attach_del_btn", function(e){
|
|
e.stopPropagation();
|
|
var idx = $(this).data("idx");
|
|
if(!confirm("첨부파일을 삭제하시겠습니까?")){ return; }
|
|
$.ajax({
|
|
url: "/ess/doc_attach_del.asp",
|
|
type: "POST",
|
|
data: { krc_no: "<%=krc_no%>", idx: idx },
|
|
dataType: "json",
|
|
success: function(ret){
|
|
if(ret.result == "ok"){
|
|
location.reload();
|
|
}else if(ret.result == "denied"){
|
|
alert("권한이 없습니다.");
|
|
}else{
|
|
alert("삭제에 실패했습니다.");
|
|
}
|
|
},
|
|
error: function(){
|
|
alert("삭제 중 오류가 발생했습니다.");
|
|
}
|
|
});
|
|
});
|
|
|
|
taxInvoicePopup();
|
|
|
|
var today = new Date().getMonth()+1 + " / " + new Date().getDate();
|
|
<% If rev_type = "1" Then %>
|
|
var tmpHtml = "";
|
|
tmpHtml += "<input type='button' id='rev_btn' value='검토' style='background-color: #c6fccf;cursor: pointer;' />";
|
|
<% if cstr(tmp_ess(4, 2)) = cstr(session("user_number")) then %>
|
|
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html(tmpHtml) // 팀장
|
|
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(3)").html(today) // 팀장
|
|
<% Else %>
|
|
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(4)").html(tmpHtml) // 담당자
|
|
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(4)").html(today) // 담당자
|
|
<% End If %>
|
|
|
|
$("#rev_btn").on("click", function(){
|
|
if(confirm("검토처리하시겠습니까?")){
|
|
$.ajax({
|
|
url: "/ess/doc_rev_ajax.asp",
|
|
type: "POST",
|
|
data: {"command":"revReqApproval", "d_no":"<%=d_no%>", "today":today},
|
|
success: function(ret){
|
|
if(ret == "1"){
|
|
alert("검토요청이 정상 처리되었습니다.");
|
|
$(opener.document).find("#tr_<%=d_no%>").remove();
|
|
self.close();
|
|
}else if(ret == "2"){
|
|
alert("검토 처리되었습니다.");
|
|
$(opener.document).find("#tr_<%=d_no%>").remove();
|
|
self.close();
|
|
}else{
|
|
alert("오류가 발생하였습니다.\n개발팀에 문의해주세요.");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
<% ElseIf rev_type = "2" Then %>
|
|
<% if cstr(tmp_ess(4, 2)) = cstr(session("user_number")) then %>
|
|
tmpHtml = ""
|
|
tmpHtml += "<input type='button' id='rev_comp_btn' value='승인' style='background-color: #c6fccf;cursor: pointer;' />";
|
|
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html(tmpHtml) // 팀장
|
|
|
|
$("#rev_comp_btn").on("click", function(){
|
|
if(confirm("승인하시겠습니까?")){
|
|
$.ajax({
|
|
url: "/ess/doc_rev_ajax.asp",
|
|
type: "POST",
|
|
data: {"command":"revCompApproval", "d_no":"<%=d_no%>", "today":today},
|
|
success: function(ret){
|
|
if(ret == "1"){
|
|
alert("승인 처리되었습니다.");
|
|
$(opener.document).find("#tr_<%=d_no%>").remove();
|
|
self.close();
|
|
}else{
|
|
alert("오류가 발생하였습니다.\n개발팀에 문의해주세요.");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
<% End If %>
|
|
|
|
<% ElseIf rev_type = "3" Then %>
|
|
|
|
<% End If %>
|
|
<% If d_order_cnt = 77 Then %>
|
|
$.ajax({
|
|
url: "/ess/doc_rev_ajax.asp",
|
|
type: "POST",
|
|
data: {"command":"revIngApproval", "d_no":"<%=d_no%>", "appoval_level":"2"},
|
|
success: function(ret){
|
|
if(ret != "0"){
|
|
var retJson = JSON.parse(ret);
|
|
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(4)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // 담당자
|
|
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(4)").html(retJson.day) // 담당자
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/ess/doc_rev_ajax.asp",
|
|
type: "POST",
|
|
data: {"command":"revIngApproval", "d_no":"<%=d_no%>", "appoval_level":"3"},
|
|
success: function(ret){
|
|
if(ret != "0"){
|
|
var retJson = JSON.parse(ret);
|
|
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // 팀장
|
|
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(3)").html(retJson.day) // 팀장
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/ess/doc_rev_ajax.asp",
|
|
type: "POST",
|
|
data: {"command":"revIngApproval", "d_no":"<%=d_no%>", "appoval_level":"5"},
|
|
success: function(ret){
|
|
if(ret != "0"){
|
|
var retJson = JSON.parse(ret);
|
|
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(1)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // 팀장
|
|
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(1)").html(retJson.day) // 대표님
|
|
}
|
|
}
|
|
});
|
|
<% End If %>
|
|
});
|
|
|
|
|
|
|
|
function sebureturnFunc() {
|
|
$("#sebu option").remove();
|
|
$("#sebu").append(ajaxResponse);
|
|
}
|
|
|
|
|
|
|
|
function bugaNoChange() {
|
|
return;
|
|
var contents_cnt = document.ess.contents_cnt.value * 1;
|
|
if ($("#sebu").val() == "185" || $("#expence_way").val() == "개인카드" || $("#expence_way").val() == "현금") {
|
|
for (var i = 1; i <= contents_cnt; i++) {
|
|
$("#expence_vat"+i).val("0");
|
|
$("#expence_vat"+i).attr("readonly", true);
|
|
$("#expence_sum"+i).val($("#val_supply"+i).val());
|
|
}
|
|
} else {
|
|
for (var i = 1; i <= contents_cnt; i++) {
|
|
$("#expence_vat"+i).removeAttr("readonly");
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
function check_comma(txt,txt2, index) {
|
|
var cnt = parseInt(document.ess.contents_cnt.value, 10);
|
|
index = index - 1;
|
|
//alert("txt : " + txt);
|
|
txt = allTrim(txt);
|
|
|
|
for(var i=0;i<txt.length;i++){
|
|
txt = txt.replace(',','')
|
|
txt = txt.replace(' ','')
|
|
}
|
|
|
|
if(eval(txt2)==1){
|
|
if(cnt == 1){
|
|
document.ess.expence_money.value = allTrim(commify(txt));
|
|
}else{
|
|
document.getElementsByName("expence_money")[index].value = allTrim(commify(txt));
|
|
}
|
|
}else if(eval(txt2)==2){
|
|
if(cnt == 1){
|
|
document.ess.expence_vat.value = allTrim(commify(txt));
|
|
}else{
|
|
document.getElementsByName("expence_vat")[index].value = allTrim(commify(txt));
|
|
}
|
|
}
|
|
//alert("expence_vat : " + expence_vat + ", txt2 : " + txt2);
|
|
|
|
//-- alert(document.getElementsByName("expence_money")[index].value);
|
|
//-- alert(document.getElementsByName("expence_vat")[index].value);
|
|
|
|
if(cnt == 1){
|
|
var expence_money = document.ess.expence_money.value;
|
|
var expence_vat = document.ess.expence_vat.value;
|
|
}else{
|
|
var expence_money = document.getElementsByName("expence_money")[index].value;
|
|
var expence_vat = document.getElementsByName("expence_vat")[index].value;
|
|
|
|
//-- alert(expence_money+":"+expence_vat);
|
|
//-- return;
|
|
|
|
|
|
}
|
|
//alert("expence_vat : " + expence_vat);
|
|
|
|
for(var i=0;i<expence_money.length;i++){
|
|
expence_money = expence_money.replace(',','')
|
|
expence_money = expence_money.replace(' ','')
|
|
}
|
|
for(var i=0;i<expence_vat.length;i++){
|
|
expence_vat = expence_vat.replace(',','')
|
|
expence_vat = expence_vat.replace(' ','')
|
|
}
|
|
|
|
if (expence_money == ""){
|
|
txt = expence_vat;
|
|
}else if(expence_vat == ""){
|
|
txt = expence_money;
|
|
}else{
|
|
txt = eval(expence_money) + eval(expence_vat);
|
|
}
|
|
|
|
if(cnt == 1){
|
|
document.ess.expence_sum.value = allTrim(commify(txt));
|
|
}else{
|
|
|
|
document.getElementsByName("expence_sum")[index].value = allTrim(commify(txt));
|
|
}
|
|
}
|
|
|
|
|
|
function direct_cost_detail(p_child_sn){
|
|
var tmp_year = document.ess.tmp_year.value;
|
|
|
|
if(confirm("연구 직접비를 확인 하시겠습니까? (확인)\n실사 직접비를 확인 하시겠습니까? (취소)")){
|
|
cost_type = "research";
|
|
}else{
|
|
cost_type = "field";
|
|
}
|
|
|
|
var p_sub_type = p_child_sn.substring(8, 9);
|
|
//alert(p_child_sn+"//"+p_sub_type+"//"+tmp_year);
|
|
|
|
var url = "/" + "ess/direct_cost_print_2014.asp?p_sn=" + p_child_sn + "@" + p_sub_type;
|
|
|
|
if (p_sub_type == "M")
|
|
{
|
|
url = url +"&tmp_year="+tmp_year+"&tmp_month=0&p_depart=0&sc_name=&sc_method=100&view_chk=2&cost_type="+cost_type;
|
|
}else{
|
|
url = url +"&tmp_year="+tmp_year+"&tmp_month=0&p_depart=0&sc_name=&sc_method=100&view_chk=2&cost_type="+cost_type+"&p_child_sn="+p_child_sn;
|
|
}
|
|
|
|
window.open(url, "", 'left=0,top=0,width=920,height=600,scrollbars=yes,resizable=yes');
|
|
}
|
|
|
|
function openit(z,x,c,v) {
|
|
if (z == '0'){
|
|
var url = '/ess/doc_consultation_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
|
}
|
|
window.open(url,'','left=0,top=0,width=850,height=800,scrollbars=yes,resizable=yes')
|
|
}
|
|
|
|
var mikExp = /[$\\@\\\#%\^\&\*\-\"\'\[\]\+\_\{\}\`\~\=\|]/;
|
|
|
|
function dodacheck(val){
|
|
var strPass = val.value;
|
|
var strLength = strPass.length;
|
|
var lchar = val.value.charAt((strLength) - 1);
|
|
if(lchar.search(mikExp) != -1) {
|
|
var tst = val.value.substring(0, (strLength) - 1);
|
|
val.value = tst;
|
|
}
|
|
}
|
|
|
|
function doanothercheck(form) {
|
|
if(form.value.length < 1) {
|
|
alert("거래처를 입력하여 주세요 ");
|
|
return false;
|
|
}
|
|
|
|
if(form.value.search(mikExp) == -1) {
|
|
|
|
|
|
}else {
|
|
alert("거래처 명에는 특수문자를 사용하실수 없습니다 ");
|
|
form.select();
|
|
form.focus();
|
|
return false;
|
|
}
|
|
return true;
|
|
|
|
}
|
|
|
|
function taxInvoicePopup(){
|
|
var ntsNum = "<%=expence_num%>";
|
|
if(ntsNum != ""){
|
|
ajaxCallJson("/barobill/baro_api.asp", {"command":"GetTaxInvoicePopUpURLNK", "NTSConfirmNum":ntsNum, "Company":"kri"}, "", "POST", "taxInvoiceUrl()");
|
|
ajaxCallJson("/barobill/baro_api.asp", {"command":"GetTaxInvoicePopUpURLNK", "NTSConfirmNum":ntsNum, "Company":"krc"}, "", "POST", "taxInvoiceUrl()");
|
|
}
|
|
}
|
|
function taxInvoiceUrl(){
|
|
if(ajaxResponse != "-21002"){
|
|
ntsUrl = ajaxResponse;
|
|
}
|
|
}
|
|
function taxInvoiceView(){
|
|
if(ntsUrl != ""){
|
|
window.open(ntsUrl, "", "left=150, top=150, menubar=no, location=no, status=no, toolbar=no, width=960, height=800, scrollbars=yes ,resizable=no");
|
|
}else{
|
|
alert("전자세금계산서 번호가 아닙니다.\n종이세금계산서인 경우에는 첨부한 이미지를 확인하시기 바랍니다.");
|
|
}
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|
|
<%
|
|
end if
|
|
rsc.Close
|
|
%> |