최초커밋

This commit is contained in:
2025-09-29 17:55:08 +09:00
parent 90af30c0d0
commit e39813395a
3334 changed files with 338522 additions and 0 deletions

View File

@@ -0,0 +1,283 @@
<!-- #include virtual = "lib/config.asp" -->
<%
'Response.write session("User_Number")
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 print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
dim y_m
print_type = request("print_type")
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 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, CONVERT(VARCHAR(10), target3) as d_date, V.p_subject, M.p_sn, "
Query = Query & " convert(varchar(300), target2) as content, convert(varchar(20), target4) as cost, "
Query = Query & " convert(varchar(50), target9) as cli_company, convert(varchar(30), target7) as cli_nm, "
Query = Query & " convert(varchar(30), target15) as money_type, convert(varchar(1000), target99) as target99 "
Query = Query & " FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M LEFT JOIN V_PROJECT_METHOD V ON M.p_sn = V.p_child_sn OR M.p_sn = V.p_sn "
Query = Query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>='<27><><EFBFBD><EFBFBD><EFBFBD>񺸰<EFBFBD><F1BAB8B0><EFBFBD>' AND del_yes_no='no' "
Query = Query & " AND login_p_no='" & session("User_Number") & "' AND CONVERT(VARCHAR(7), target3) = '" & y_m & "' "
Query = Query & " ORDER BY CONVERT(VARCHAR(10), target3) "
'response.Write query
rsc.Open query, adoConn, 1
if print_type = "2" then
query = " update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 "
query = query & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ in ("
query = query & " select <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>='<27><><EFBFBD><EFBFBD><EFBFBD>񺸰<EFBFBD><F1BAB8B0><EFBFBD>' AND del_yes_no='no' "
query = query & " AND login_p_no='" & session("User_Number") & "' "
query = query & " AND CONVERT(VARCHAR(7), target3) = '" & y_m & "' "
query = query & " ) "
adoConn.Execute query
end if
user_name(0) = session("User_Number")
Query = "SELECT p_name, p_team_name, p_rank_name, p_tel3 FROM project2.dbo.V_Person WHERE p_no = '" & user_name(0) & "'"
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
user_name(1) = adoRs("p_name") '<27≯<EFBFBD>
user_name(2) = adoRs("p_rank_name") '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
user_name(3) = adoRs("p_tel3") '<27><><EFBFBD><EFBFBD> <20><>ȭ
user_name(4) = adoRs("p_team_name") '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
adoRs.close
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_entertainment_all_print.asp";
url = url + "?print_type=2";
document.enter_cost.action = url;
document.enter_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='enter_cost'>
<input type="hidden" name="y_m" value="<%=y_m %>" />
<%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">
<span style="color:#636B7E;font-family:batang;font-weight:bold;font-size:40px;letter-spacing:-6;line-height:30px;"><3E><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD></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%>&nbsp;</td>
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt2%>&nbsp;</td>
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%>&nbsp;</td>
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt4%>&nbsp;</td>
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt5%>&nbsp;</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><>&nbsp;<3B><>&nbsp;&nbsp;&nbsp;<3B><>&nbsp;<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><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="25%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
<td width="10%" class="tit2" align="center"><3E>ݾ<EFBFBD></td>
<td width="40%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="15%" class="tit2" align="center">ȸ<><C8B8><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)</td>
</tr>
<%
Dim sum_cost
sum_cost=0
Do while Not rsc.Eof
sum_cost = sum_cost + cdbl(rsc("cost"))
%>
<tr>
<td class="tit7" align="center"><font class="tahoma"><%=rsc("d_date")%></font></td>
<td class="tit7" style="word-break:keep-all;"><font class="tahoma">(<%=rsc("p_sn")%>)<%=iif(rsc("p_sn") = "99999", "<22><20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", rsc("p_subject"))%></font></td>
<td class="tit7" align="right"><font class="tahoma"><3E><><%=formatnumber(rsc("cost"),0)%>&nbsp;</font></td>
<td class="tit7" style="word-break:keep-all;"><font class="tahoma"><%=rsc("content")%></font></td>
<td class="tit7" style="word-break:keep-all;"><font class="tahoma"><%=rsc("cli_company")%><% if rsc("cli_nm") <> "" then %>(<%=rsc("cli_nm")%>)<% end if %></font></td>
</tr>
<%
rsc.MoveNext
Loop
%>
<tr>
<td class="tit2" align="center" colspan="2"><3E>հ<EFBFBD></td>
<td class="tit2" align="right"><font class="tahoma"><3E><><%=formatnumber(sum_cost,0)%>&nbsp;</font></td>
<td class="tit2" colspan="2"></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
%>