?? editinsure.jsp
字號:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" import="java.lang.*,com.jilee.guoshou.*,com.jilee.tool.*,java.util.*,java.net.*" %>
<%@ include file="../include/checkReg.jsp" %>
<jsp:useBean id="plan" scope="session" class="com.jilee.guoshou.PlanManager"/>
<%
//編輯險種
//作者:郭琛
%>
<%
HashMap hmCategory = plan.getCategory(request);
String strUrl = "../category/rule/rule_"+ hmCategory.get("code") + ".htm";
%>
<html>
<head>
<title>中國人壽營銷支持系統網絡通</title>
<script language="JavaScript" src="../script/validate.js" type="text/JavaScript">
</script>
<script language="JavaScript" type="text/JavaScript">
function checkForm(){
if(dataForm.PAYMENT_MODE!=null && dataForm.PAYMENT_MODE.selectedIndex==0){
alert("請選擇交費方式");
return false;
}
if(dataForm.GET_AGE!=null && dataForm.GET_AGE.selectedIndex==0){
alert("請選擇領取年齡");
return false;
}
if(dataForm.INSURE_PERIOD!=null && dataForm.INSURE_PERIOD.selectedIndex==0){
alert("請選擇保險期間");
return false;
}
return true;
}
<%if (hmCategory!=null){%>
function CheckInsuranceInput(Sender)
{
var fInsuranceMax = <%=(String)hmCategory.get("Insurance")%> * 1000 ;
var fInsuranceMin = <%=(String)hmCategory.get("Insurance")%>;
var fCode = "<%=(String)hmCategory.get("code")%>";
var fid = <%=((Integer)hmCategory.get("id")).intValue()%>;
if ((fCode == "D31") && (fid == 23))
{
if ((Sender.value<30000.00) || (Sender.value>500000.00))
{
alert("[人身意外傷害綜合保險/意外]的保額范圍為3--50萬");
Sender.value = 30000.00;
return false;
}
}
else if ((fCode == "D31") && (fid == 49))
{
alert("[人身意外傷害綜合保險/醫療]的保額應同時滿足下列條件\n1、不超過[人身意外傷害綜合保險/意外]保額的20%;\n2、最低保額為2千元;\n3、最高保額為2萬元;\n4、父母為其未成年子女投保,不得超過中國保監會規定的限額");
}
else if (Sender.value>fInsuranceMax)
{
alert ("超出保額范圍!");
Sender.value=fInsuranceMax;
return false;
}
else if (Sender.value<fInsuranceMin)
{
alert ("超出保額范圍!");
Sender.value=fInsuranceMin;
return false;
}
}
<%}%>
</script>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="../css/main.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="dataForm" method="post" action="editInsureUp.jsp" onSubmit="javascript:return checkForm();">
<%if(hmCategory==null){%>
<tr>
<td height="31">該被保人無法選擇此保險 <a href="selectInsure.jsp">返回</a></td>
</tr>
<%}else{%>
<tr>
<td height="31"> <div align="center" class="title14b">險種信息設置</div></td>
</tr>
<tr>
<td > <table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
<tr align="center">
<td height="22" colspan="4" bgcolor="#ABD3AB"><div align="left"><a href="http://websphere:8080/sysinfo/insurerule.jsp?id=<%=hmCategory.get("code")%>" target="_blank">投保規則</a>
</div></td>
</tr>
<tr align="center">
<td height="22" colspan="4" bgcolor="#ABD3AB"><iframe src="<%=strUrl%>" width="360" height="180"></iframe> </td>
</tr>
<tr valign="bottom">
<td width="15%" height="30" align="right" > <%if(hmCategory.containsKey("PAYMENT_MODE")){%>
交費方式:
<%}%></td>
<td width="15%" height="30" >
<%if(hmCategory.containsKey("PAYMENT_MODE")){%> <select name="PAYMENT_MODE" id="PAYMENT_MODE">
<%=(String)hmCategory.get("PAYMENT_MODE")%> </select> <%}%> </td>
<td width="15%" height="30" align="right" > <%if(hmCategory.containsKey("GET_AGE")){%>
領取年齡:
<%}%></td>
<td width="15%" height="30" > <%if(hmCategory.containsKey("GET_AGE")){%> <select name="GET_AGE" id="select">
<%=(String)hmCategory.get("GET_AGE")%> </select> <%}%> </td>
</tr>
<tr valign="bottom">
<td height="30" align="right" > <%if(hmCategory.containsKey("INSURE_PERIOD")){%>
保險期間:
<%}%></td>
<td height="30" >
<%if(hmCategory.containsKey("INSURE_PERIOD")){%> <select name="INSURE_PERIOD" id="select2">
<%=(String)hmCategory.get("INSURE_PERIOD")%> </select> <%}%> </td>
<td height="30" align="right" >保 額: </td>
<td height="30" ><input name="Insurance" type="text" id="Insurance" size="5" value="<%=hmCategory.get("Insurance")%>" onfocusout="CheckInsuranceInput(this)" onChange="CheckInsuranceInput(this);" ></td>
</tr>
<tr>
<td height="30" align="right" > </td>
<td height="30" align="right" valign="bottom" >
<input type="submit" name="Submit" value="確認">
</td>
<td height="30" align="left" valign="bottom" >
<input type="submit" name="Submit2" value="重置"> <input name="insureIndex" type="hidden" id="insureIndex" value="<%=request.getParameter("insureIndex")%>">
<input name="way" type="hidden" id="way"></td>
<td height="30" > </td>
</tr>
</table></td>
</tr>
<%}%>
</form>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -