?? refundindex.jsp
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=GBK"%>
<jsp:useBean id="comm" class="com.saas.biz.commen.commMethodMgr" scope="page" />
<jsp:useBean id="bean" class="com.saas.biz.commen.ParamethodMgr" scope="page" />
<html>
<head>
<title>電子商務(wù)</title>
<link href="/style/layout.css" rel="stylesheet" type="text/css">
<link href="/style/daohang.css" rel="stylesheet" type="text/css">
<link href="/style/manager.css" rel="stylesheet" type="text/css">
<style type="text/css">
.ping_1{
font-weight: bold;color: black;
}
#tr{
background-color:#f6f6f6; color:#000000;font-weight:bold; font-size:12px;text-align: center;
}
#tr1{
background-color:#f6f6f6; color:#000000; font-size:12px;
}
#tr2{
background-color:#ffffff; color:#000000; font-size:12px;
}
</style>
<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript">
function check_Value(){
var cust_name=$F("cust_name");
if(cust_name =="" || cust_name==null){
alert("請(qǐng)輸入客戶名稱!");
$("cust_name").focus();
return false;
}
var id=$F("obj_cust_id");
if(id=="" || id==null){
alert("請(qǐng)輸入客戶不存在或輸入有誤!\n請(qǐng)重新輸入正確的客戶名!");
$("cust_name").focus();
return false;
}
var value_num=$F("value_num");
var sum=$F("sum");
if(value_num=="" || value_num==null){
alert("請(qǐng)輸入退還金額!");
$("value_num").focus();
return false;
}
if(parseFloat(value_num)>parseFloat(sum)){
alert("退還金額有誤!請(qǐng)認(rèn)真計(jì)算退還金額");
$("value_num").focus();
return false;
}
return true;
}
function chechCustName() {
var data = Math.round(Math.random() * 10000);
var name=$F('cust_name');
if(name =="" || name==null){
alert("請(qǐng)輸入客戶名稱!");
$("cust_name").focus();
return false;
}else{
$("sever-div").innerHTML="";
var myAjax = new Ajax.Updater('cust-div',
'refundList.jsp?cust_name=' + name + "&data=" + data,
{
method : 'get',
evalScripts: true
});
}
}
function setCustId(id){
var data = Math.round(Math.random() * 10000);
$("obj_cust_id").value=id;
var myAjax = new Ajax.Updater('sever-div',
'useSever.jsp?cust_id=' + id + "&data=" + data,
{
method : 'get',
evalScripts: true
});
}
</script>
</head>
<%
String refund_type=bean.getSelectItems("13");
String account_id=comm.GenTradeId();
%>
<body>
<form name="serverForm" id="serverForm" action=/doTradeReg.do method=post target="_self">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<jsp:include page="/inc/top.jsp" />
<tr>
<!-- 中間 -->
<td align="center">
<div id="manager_body">
<!--左邊菜單-->
<div id="manager_body_left">
<jsp:include page="/inc/left.jsp" />
</div>
<div id="manager_body_right">
<table width="740" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="2">
</td>
</tr>
<tr>
<td style="margin-top: 20px">
<table width=100% border=0 cellpadding=5 cellspacing=1 align=center bgcolor="#dddddd">
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;text-align:right" align=right width="15%">
退費(fèi)類型:
</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left width="85%">
<div class="ping">
<select id="reg_type" name=reg_type>
<%=refund_type%>
</select>
</div>
</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;text-align:right" align=right width="15%">
客戶名稱:
</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left width="85%">
<div class="ping">
<input type="text" name="cust_name" id="cust_name" maxlength="100" title="請(qǐng)輸入繳費(fèi)客戶名稱。"> <input type="button" name="bnt" id="bnt" value="查詢" onclick="chechCustName()"><span style="margin-bottom:2px;color:red;">(檢測(cè)客戶名是否正確)</span>
</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; color:#000000; font-weight:bold; font-size:12px;text-align:right" colspan="2">
<div id="cust-div"></div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; color:#000000; font-weight:bold; font-size:12px;text-align:right" colspan="2">
<div id="sever-div"></div>
</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;text-align:right" align=right width="15%">
退還金額:
</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left width="85%">
<div class="ping">
<input type="text" name="value_num" id="value_num" size="10" maxlength="15" style="height: 12px" onkeyup="if(isNaN(this.value))this.value=''">
</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=center colspan="2">
<input class="tjan" name="submit" type="submit" value="" onclick="return check_Value()">
</td>
</tr>
<input type="hidden" id="account_id" name="account_id" value="<%=account_id%>">
<input type="hidden" id="obj_cust_id" name="obj_cust_id">
<input type="hidden" id="trade_type_code" name="trade_type_code" value="1187">
</table>
</td>
</tr>
</table>
</td>
<!-- 中間 結(jié)束 -->
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -