최초커밋
This commit is contained in:
416
business/cost_print.asp
Normal file
416
business/cost_print.asp
Normal file
@@ -0,0 +1,416 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim tmpstr, xadmin
|
||||
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 target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Gap()
|
||||
dim krc_no
|
||||
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>Ʈ
|
||||
|
||||
if fnc_user_level("0","<22>ϷṮ<CFB7><E1B9AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",Request.ServerVariables("REMOTE_ADDR"))="1" then
|
||||
xadmin="1" '-- <20><><EFBFBD><EFBFBD>
|
||||
end if
|
||||
|
||||
print_type = request("print_type")
|
||||
view_chk= 1
|
||||
rnum = request("rnum")
|
||||
y_m = request("ym")
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
Dim apply_count
|
||||
Dim not_approval_cnt
|
||||
Dim username
|
||||
not_approval_cnt = 0
|
||||
|
||||
|
||||
p_no = request("p_no")
|
||||
if p_no = "" then
|
||||
p_no = Session("User_Number")
|
||||
end if
|
||||
|
||||
Query = "SELECT p_no, p_name, p_team_name, p_rank_name, p_tel3 FROM project2.dbo.V_Person WHERE p_no = '" & p_no & "'"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
if adoRs.recordcount > 0 then
|
||||
user_name(0) = adoRs("p_no")
|
||||
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>
|
||||
end if
|
||||
adoRs.close
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT T.ID, P.p_name, job_date, ISNULL(VPM.p_subject, '<27>Ϲ<EFBFBD>/<2F><><EFBFBD><EFBFBD>') AS p_subject, "
|
||||
query = query & " T.p_sn, job_code, CASE WHEN job_code = 5 THEN ISNULL(MAX(JL.j_contents_nm), '<27> <20><> <20><><EFBFBD><EFBFBD>') ELSE JC.j_name END AS j_name, "
|
||||
query = query & " T.cost_code, CC.cost_name, cost_money, cost_member, cost_remark, d_order_cnt, "
|
||||
query = query & " T.p_no as d_order7, d_order8, d_order9, d_order10, ISNULL(PE.p_name, '') as d_order8_name "
|
||||
query = query & " FROM "
|
||||
query = query & " ( "
|
||||
query = query & " SELECT CEILING(ROW_NUMBER() OVER(ORDER BY job_date, p_sn, job_code, cost_code, cost_money) / 12.0) AS rnum, "
|
||||
query = query & " * "
|
||||
query = query & " FROM V_BUSI_COST "
|
||||
query = query & " WHERE p_no = '" & p_no & "' AND job_date LIKE '" & y_m & "%' "
|
||||
query = query & " ) T LEFT JOIN V_PROJECT_METHOD VPM ON T.p_sn = VPM.p_child_sn "
|
||||
query = query & " LEFT JOIN Job_Code JC ON T.job_code = JC.j_code "
|
||||
query = query & " LEFT JOIN V_Job_List JL ON T.job_date = JL.j_date AND T.p_no = JL.p_no "
|
||||
query = query & " AND T.p_sn = JL.j_p_sn AND T.job_code = '5' "
|
||||
query = query & " LEFT JOIN cost_category CC ON T.cost_code = CC.cost_code "
|
||||
query = query & " LEFT JOIN V_Person P ON T.p_no = P.p_no "
|
||||
query = query & " LEFT JOIN V_Person PE ON T.d_order8 = PE.p_no "
|
||||
query = query & " WHERE rnum = '" & rnum & "' "
|
||||
query = query & " GROUP BY T.ID, P.p_name, job_date, ISNULL(VPM.p_subject, '<27>Ϲ<EFBFBD>/<2F><><EFBFBD><EFBFBD>'), T.p_sn, job_code, JC.j_name, "
|
||||
query = query & " T.cost_code, CC.cost_name, cost_money, cost_member, cost_remark, d_order_cnt, "
|
||||
query = query & " T.p_no, d_order8, d_order9, d_order10, ISNULL(PE.p_name, '') "
|
||||
query = query & " ORDER BY job_date, T.p_sn "
|
||||
|
||||
'Response.write query
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 Then
|
||||
temp_order_user = rsc("p_name") & "<BR>" & rsc("d_order9") & "<BR>" & rsc("d_order7") & "^^" & rsc("d_order8_name") & "<BR>" & rsc("d_order10") & "<BR>" & rsc("d_order8")
|
||||
temp_order_date = Mid(rsc("d_order9"), 6, 2) & "/" & right(rsc("d_order9"), 2) & "^^" & rsc("d_order10")
|
||||
|
||||
tmp_7 = split(temp_order_user, "^^")
|
||||
tmp_8 = split(temp_order_date, "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") 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), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
if tmp_t2(0) = "" Then
|
||||
tmp_txt2 = ""
|
||||
Else
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
End if
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
tmp_txt6 = split(tmp_7(0), "<BR>")(0)
|
||||
tmp_txt7 = split(tmp_7(1), "<BR>")(0)
|
||||
End if
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
<style>
|
||||
.input_cost_money{
|
||||
width: 100%;
|
||||
padding: 1px 3px;
|
||||
text-align: right;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.input_cost_money:focus{
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
}
|
||||
.saveCost{
|
||||
position: absolute;
|
||||
background-color: #3e3e3e;
|
||||
padding: 2px 8px;
|
||||
border: 1px #b3b3b3 solid;
|
||||
margin-left: 69px;
|
||||
margin-top: -17px;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.input_cost_money:focus + .saveCost{
|
||||
display:block;
|
||||
}
|
||||
.saveCost:hover{
|
||||
display:block;
|
||||
}
|
||||
|
||||
<%
|
||||
if xadmin="0" Then %>
|
||||
.input_cost_money{
|
||||
cursor:default;
|
||||
}
|
||||
<% End if %>
|
||||
</style>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
</head>
|
||||
<script>
|
||||
function win_close(){
|
||||
window.close();
|
||||
}
|
||||
|
||||
function win_print(){
|
||||
var not_approval_cnt = document.ess.not_approval_cnt.value;
|
||||
$("#print_area").css("display", "none");
|
||||
if(+not_approval_cnt > 0 && "<%=session("depart_code")%>" != "18"){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>մϴ<D5B4>.");
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
var tmp_cost = "";
|
||||
$(document).ready(function () {
|
||||
var clicky;
|
||||
$(document).mousedown(function(e) {
|
||||
clicky = $(e.target);
|
||||
});
|
||||
$(document).mouseup(function(e) {
|
||||
clicky = null;
|
||||
});
|
||||
|
||||
if ($("input[name=print_type]").val() != "1" && "<%=session("depart_code")%>" != "18") {
|
||||
$("#print").hide();
|
||||
$("#popup_background").css("display", "block");
|
||||
}
|
||||
|
||||
$(".input_cost_money").on("focus", function(){
|
||||
if("<%=xadmin%>" == "0"){
|
||||
$(this).blur();
|
||||
}else{
|
||||
tmp_cost = $(this).val();
|
||||
}
|
||||
});
|
||||
|
||||
$(".input_cost_money").on("blur", function(){
|
||||
if(tmp_cost != "" && tmp_cost != $(this).val() && $(clicky).hasClass("saveCost") != true){
|
||||
$(this).val(tmp_cost);
|
||||
}
|
||||
});
|
||||
|
||||
$(".saveCost").on("click", function(){
|
||||
var cost_id = $(this).attr("id").split("_")[1];
|
||||
if(!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$("#cost_"+cost_id).val(tmp_cost);
|
||||
tmp_cost = "";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var cost_money = $("#cost_"+cost_id).val().replace(/,/g,'');
|
||||
|
||||
var param = {
|
||||
"cost_id" : cost_id,
|
||||
"cost_money" : cost_money
|
||||
};
|
||||
$.ajax({
|
||||
url: "./cost_mod.asp",
|
||||
data: param,
|
||||
method: "POST",
|
||||
success: function(res){
|
||||
if(res == "1") {
|
||||
$.each($(".input_cost_money"), function(idx, obj){
|
||||
$(obj).val(commify($(obj).val().replace(/,/g,'')));
|
||||
});
|
||||
var sum_cost = $.map($(".input_cost_money"), function(obj){
|
||||
return $(obj).val().replace(/,/g,'');
|
||||
}).reduce(function(total, val){ return +total + +val; });
|
||||
$("#sum_cost").html(commify(sum_cost));
|
||||
tmp_cost = "";
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
if(cost_money == "0"){
|
||||
location.href = location.href;
|
||||
}
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10">
|
||||
<div style="filter: alpha(opacity=5);position:absolute; display:none; left:50px; top:70px; z-index:499;width:80%;height:80%;background-color: rgb(255,255,255); opacity:0.05; font-size:35px; font-family:malgun gothic; font-weight:bold; line-height:50px;" id="popup_background">
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br />
|
||||
</div>
|
||||
<form method='post' name='ess'>
|
||||
<table id="print_area" border=0 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td>
|
||||
<img id="print" 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>
|
||||
|
||||
<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="750" 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="260"><img src="/images/approval/doc_stit26.jpg"></td>
|
||||
<td>
|
||||
<table width="100%" cellpadding="0" cellspacing="1" border="1" style="border-collapse:collapse;" bgcolor="#d8d8d8">
|
||||
<tr>
|
||||
<td colspan="2" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)</td>
|
||||
<td colspan="3" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="10%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="10%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="10%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="10%" 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"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt6%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt7%></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>
|
||||
</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="7%" class="tit2" align="center"><3E><>¥</td>
|
||||
<td width="16%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td width="28%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="15%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="10%" class="tit2" align="center"><3E>ݾ<EFBFBD></td>
|
||||
<td width="22%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
</tr>
|
||||
<%
|
||||
sum_cost = 0
|
||||
do while not rsc.eof
|
||||
%>
|
||||
<tr>
|
||||
<td class="tit7" align="center"><font class="tahoma"><%=right(rsc("job_date"), 5)%></font></td>
|
||||
<td class="tit7"><font class="tahoma"><%=rsc("p_subject")%> (<%=rsc("p_sn")%>)</font></td>
|
||||
<td class="tit7"><font class="tahoma"><%=rsc("j_name")%></font></td>
|
||||
<td class="tit7"><font class="tahoma"><%=rsc("cost_name")%></font></td>
|
||||
<td class="tit7" align="right"><input type='text' class='input_cost_money' id='cost_<%=rsc("id")%>' value='<%=formatnumber(rsc("cost_money"),0)%>' /><div class='saveCost' id='saveCost_<%=rsc("id")%>'><3E><> <20><></div>
|
||||
<% If rsc("d_order_cnt") = 77 Then %>
|
||||
<span style="color:red; display:none;"><3E><><EFBFBD><EFBFBD></span>
|
||||
<% Else %>
|
||||
<br><span style="color:red;"><3E>̽<EFBFBD><CCBD><EFBFBD></span>
|
||||
<% not_approval_cnt = 1 %>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td class="tit7"><font class="tahoma"><%=rsc("cost_remark")%><% If rsc("cost_remark") <> "" Then %><br><% End if %><% if rsc("cost_member") <> "" then %>(<%=rsc("cost_member")%>)<% End If %></font></td>
|
||||
</tr>
|
||||
<%
|
||||
sum_cost = sum_cost + rsc("cost_money")
|
||||
rsc.movenext
|
||||
loop
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="4" class="tit2"></td>
|
||||
<td class="tit2" align="right" id='sum_cost' style='font-family:tahoma; padding:2px 5px;letter-spacing:0px'><%=formatnumber(sum_cost,0)%></td>
|
||||
<td class="tit2"></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 width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="print_type" value="<%=print_type %>" />
|
||||
<input type="hidden" name="not_approval_cnt" value="<%=not_approval_cnt %>" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
rsc.Close
|
||||
%>
|
||||
Reference in New Issue
Block a user