Files
KIN/project/project_total_cost.asp
2025-09-29 17:55:08 +09:00

73 lines
2.3 KiB
Plaintext

<!-- #include virtual = "lib/config.asp" -->
<%
Dim p_sn
p_sn = request("p_sn")
%>
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=EUC-KR" />
<link rel="stylesheet" type="text/css" href="/css/basic.css">
<script language="javascript" type="text/javascript">
function setFormatPrice() {
strNum = document.tofrm.p_total_cost.value;
strNum = strNum.replace(/,/g, "");
var result = '';
for (var i = 0; i < strNum.length; i++) {
if (i % 3 == 0 && i != 0) result = ',' + result;
result = strNum.charAt(strNum.length - (i + 1)) + result;
}
document.tofrm.p_total_cost.value = result;
}
function total_cost_save(){
var frm = document.tofrm;
var p_total_cost = frm.p_total_cost.value;
if(p_total_cost != "" && p_total_cost * 1 != 0){
frm.action = "./project_total_cost_ok.asp";
frm.submit();
}else{
alert("실제계약액을 정확히 입력하세요.");
}
}
</script>
</head>
<body>
<form name="tofrm" method="post">
<table width="350" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td colspan="2" height="4" ></td>
</tr>
<tr>
<td width="40%" align="center" >제안 번호</td>
<td width="60%" >
<input type="text" style="width:100;" name="p_sn_code" value="<%=p_sn %>" readonly>
</td>
</tr>
<tr>
<td align="center" >
실제계약액 (전체수주금액)
</td>
<td >
<input class="input" type="text" name="p_total_cost" value="" style="width:100;text-align:right;" onkeyup="setFormatPrice()" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;" /> 원 (<font class="tahoma_red">VAT 별도</font>)
</td>
</tr>
<tr>
<td colspan="2" height="4" ></td>
</tr>
<tr>
<td align="center" colspan="3" style="padding:10 0 0 0">
<img src="/images/project/btn_save.jpg" align="absmiddle" style="cursor:pointer" onclick="total_cost_save()"> <!-- 저장하기 -->
</td>
</tr>
</table>
</form>
</body>
</html>