최초커밋
This commit is contained in:
293
business/approval_depart_all_print.asp
Normal file
293
business/approval_depart_all_print.asp
Normal file
@@ -0,0 +1,293 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim Query
|
||||
dim i,j
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap()
|
||||
dim Max_length '<27>Է°<D4B7><C2B0><EFBFBD> <20>ټ<EFBFBD><D9BC><EFBFBD><EFBFBD><EFBFBD>
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim depart_cost_type
|
||||
dim depart_gubun
|
||||
dim y_m
|
||||
dim cost_type(2) ''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
cost_type(1) = "<22><><EFBFBD>ι<EFBFBD><CEB9><EFBFBD>ī<EFBFBD><C4AB>"
|
||||
cost_type(2) = "<22><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>ī<EFBFBD><C4AB>"
|
||||
|
||||
print_type = request("print_type")
|
||||
|
||||
depart_cost_type = request("depart_div")
|
||||
depart_gubun = "<22><>"
|
||||
if depart_cost_type = "2" then
|
||||
depart_gubun = "<22><>"
|
||||
end if
|
||||
y_m = request("y_m")
|
||||
if y_m = "" then
|
||||
y_m = LEFT(date, 7)
|
||||
end if
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
Query = ""
|
||||
Query = Query & " SELECT VGC.cost_date, VGC.p_no, VGC.txt_pjt, ISNULL(TPM.p_subject, '<27>Ϲݾ<CFB9><DDBE><EFBFBD>') AS p_subject, VGC.txt_hangmok, VGC.contents, VGC.cost, M.target97, M.target99 "
|
||||
Query = Query & " FROM V_GROUP_COST_NEW VGC LEFT JOIN T_PROJECT_METHOD TPM ON VGC.txt_pjt = TPM.p_child_sn "
|
||||
Query = Query & " LEFT JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M ON VGC.d_no = M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
Query = Query & " WHERE VGC.p_no = '" & session("User_Number") & "' "
|
||||
Query = Query & " AND CONVERT(VARCHAR(7), VGC.cost_date) = '" & y_m & "' "
|
||||
Query = Query & " ORDER BY VGC.cost_date "
|
||||
'response.Write query
|
||||
rsc.Open query, adoConn, 1
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
|
||||
if trim(tmp_7(0)) <> "<22><><EFBFBD><EFBFBD>" and trim(tmp_7(0)) <> "" 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 = trim(tmp_7(0))
|
||||
end if
|
||||
if trim(tmp_7(1)) <> "<22><><EFBFBD><EFBFBD>" and trim(tmp_7(1)) <> "" 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 = trim(tmp_7(1))
|
||||
end if
|
||||
if trim(tmp_7(2)) <> "<22><><EFBFBD><EFBFBD>" and trim(tmp_7(2)) <> "" 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 = trim(tmp_7(2))
|
||||
end if
|
||||
if trim(tmp_7(3)) <> "<22><><EFBFBD><EFBFBD>" and trim(tmp_7(3)) <> "" 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 = trim(tmp_7(3))
|
||||
end if
|
||||
if trim(tmp_7(4)) <> "<22><><EFBFBD><EFBFBD>" and trim(tmp_7(4)) <> "" 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 = trim(tmp_7(4))
|
||||
end if
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var url = "approval_depart_all_print.asp";
|
||||
url = url + "?print_type=2";
|
||||
document.depart_cost.action = url;
|
||||
document.depart_cost.submit();
|
||||
}
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
<form method='post' name='depart_cost'>
|
||||
<input type="hidden" name="y_m" value="<%=y_m %>" />
|
||||
<input type="hidden" name="depart_div" value="<%=request("depart_div") %>" />
|
||||
<%if cint(print_type) <> 2 then%>
|
||||
<table border=0 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="/images/common/btn_print2.jpg" border="0" onClick="win_print()" style="CURSOR:pointer;">
|
||||
<img src="/images/common/btn_cancel.jpg" border="0" onClick="win_close();" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<%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 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 depart_cost_type = "1" then
|
||||
' tmp_tit = "<22><EFBFBD>Ȱ<EFBFBD><C8B0><EFBFBD><EFBFBD>"
|
||||
'elseif depart_cost_type = "2" then
|
||||
' tmp_tit = "<22><EFBFBD><D7B7><EFBFBD>Ȱ<EFBFBD><C8B0><EFBFBD><EFBFBD>"
|
||||
'end if
|
||||
tmp_tit = "<22><EFBFBD><D7B7><EFBFBD><EEBFB5>"
|
||||
%>
|
||||
<span style="color:#636B7E;font-family:batang;font-weight:bold;font-size:40px;letter-spacing:-6;line-height:30px;"><%=tmp_tit%></span></td>
|
||||
<td>
|
||||
<div style="width:100%;">
|
||||
<table width="100%" align="right" cellpadding="0" cellspacing="1" border="1" style="border-collapse:collapse;" bgcolor="#d8d8d8">
|
||||
<tr>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)</td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><>ǥ<EFBFBD>̻<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><>ǥ<EFBFBD>̻<EFBFBD></td>
|
||||
</tr>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt2%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt4%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt5%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></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><3E><> <3B><></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><3E><> <3B><></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 0 0">
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="10%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="50%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(<28><><EFBFBD><EFBFBD>)<29><>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td width="10%" class="tit2" align="center"><3E><EFBFBD></td>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="10%" class="tit2" align="center"><3E>ݾ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Dim d_date, d_project, d_hangmok, d_contents, d_cost, d_cost_kind
|
||||
Dim sum_cost
|
||||
sum_cost=0
|
||||
Do while Not rsc.Eof
|
||||
d_date = rsc("cost_date")
|
||||
d_project = "[" & rsc("txt_pjt") & "] " & rsc("p_subject")
|
||||
d_hangmok = rsc("txt_hangmok")
|
||||
d_contents = rsc("contents")
|
||||
d_cost = rsc("cost")
|
||||
|
||||
sum_cost = sum_cost + cdbl(d_cost)
|
||||
' split(rsc("contents"), "^^") --> 2017-02-14^^<5E>Ϲݾ<CFB9><DDBE><EFBFBD> - <20><>Ÿ^^1^^5000^^99999^^<5E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>ī<EFBFBD><C4AB>
|
||||
%>
|
||||
<tr>
|
||||
<td class="tit7" align="center"><font class="tahoma"><%=d_date%></font></td>
|
||||
<td class="tit7"><font class="tahoma"><%=d_project%></font></td>
|
||||
<td class="tit7" align="center"><font class="tahoma"><%=d_hangmok%></font></td>
|
||||
<td class="tit7"><font class="tahoma"><%=d_contents%></font></td>
|
||||
<td class="tit7" align="right"><font class="tahoma"><3E><><%=formatnumber(d_cost,0)%> </font></td>
|
||||
</tr>
|
||||
<%
|
||||
rsc.MoveNext
|
||||
Loop
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="4" class="tit2" align="center"><3E>հ<EFBFBD></td>
|
||||
<td class="tit2" align="right"><font class="tahoma"><3E><><%=formatnumber(sum_cost,0)%> </font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> <20><> : <20><> <20><> <20><></font></pre>
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> : (<28><>)</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 src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
rsc.Close
|
||||
%>
|
||||
Reference in New Issue
Block a user