⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editinsure.jsp

📁 一个制作计划书的小程序
💻 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>&nbsp;</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" >&nbsp;</td>
          </tr>
        </table></td>
    </tr>
	<%}%>
  </form>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -