防止select事件累加的js操作

<%@ page contentType="text/html;charset=GBK"%>
<%@include file="../common/tag_include.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>
查看市场折扣表-分销
</title>
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/default.css" type="text/css">
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/menu.css" type="text/css">
<script language="javascript" src="<%=request.getContextPath()%>/js/global.js"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/tooltip.js"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/common.js"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/xmlcommon.js"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/checkfield.js"></script>
</head>
<body topmargin="0" leftmargin="0">
<table width="100%" border="0" cellspacing="1" cellpadding="2" align="center" class="etable">
<input type="hidden" name="calibID" value="<c:out value="${calib6.calibID}"/>" />
<tr align="center">
<td class="content" colspan="4">
<b>
查看市场折扣表-分销
</b>
</td>
</tr>

<tr>
<td align="right" width="15%">机构</td>
<td width="35%">
<c:forEach var="departmentList" items="${departmentList}" varStatus="status">
<c:if test="${departmentList.name==calib6.departmentCode}"><c:out value="${departmentList.text}" /></c:if>
</c:forEach>

</td>
<TD align="right">
渠道
</TD>
<TD>
<c:if test="${calib6.channelSourceCode=='1'}">分销</c:if>
<c:if test="${calib6.channelSourceCode=='2'}">电销</c:if>
<c:if test="${calib6.channelSourceCode=='3'}">直销</c:if>
<c:if test="${calib6.channelSourceCode=='4'}">车商</c:if>
<c:if test="${calib6.channelSourceCode=='5'}">网销</c:if>
</TD>

</tr>

<tr>
<TD align="right">
业务类型
</TD>
<TD>
<c:if test="${calib6.businessType=='1'}">非营业客车</c:if>
<c:if test="${calib6.businessType=='2'}">其他</c:if>
</TD>
<TD width="15%" align="right">
投保方式
</TD>
<TD width="35%">
<c:if test="${calib6.applyType=='1'}">新保</c:if>
<c:if test="${calib6.applyType=='2'}">续保</c:if>
</TD>
</tr>
<tr>
<TD align="right">规则类型</TD>
<TD colspan="3">
<c:forEach var="decisionRuleList" items="${decisionRuleList}" varStatus="status">
<c:forEach var="calibRuleList" items="${calibRuleList}" varStatus="status">
<c:if test="${decisionRuleList.ruleId==calibRuleList.ruleID}"><c:out value="${decisionRuleList.ruleName}" /></c:if>
</c:forEach>
</c:forEach>
</TD>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="2" align="center" class="etable">
<c:forEach var="calibRule" items="${calibRuleList}" varStatus="status">
<c:if test="${calibRule.businessType=='D1'}">
<tr>
<td class="content1" colspan="4">
<select id="ruleVersionNo" name="ruleVersionNo" οnchange="javascript:valChange(this);">
<option value="">请选择</option>
<c:forEach var="tab1" items="${calibRule.rule.tables}" varStatus="status">
<option value="<c:out value="${tab1.tableId}"/>"><c:out value="${tab1.versionNo}"/></option>
</c:forEach>
</select>
</td>
</tr>
<c:forEach var="tab" items="${calibRule.rule.tables}" varStatus="status">
<tbody id='<c:out value="${tab.tableId}"/>' style="display:none">
<tr>
<td class="content1" colspan="4">
<b>
规则-表信息(<c:out value="${tab.versionNo}"/>)
</b>
</td>
</tr>
<TR>
<TD nowrap align="center">
<B> 流水号 </B>
</TD>
<TD nowrap align="center">
<B> 版本生效时间</B>
</TD>
<TD nowrap align="center">
<B> 版本失效时间</B>
</TD>
<TD nowrap align="center">
<B> 导入文件名称</B>
</TD>
</TR>
<tr>
<td nowrap align="center">
<c:out value="${tab.tableId}"/>
<input type="hidden" name='tableId' value='<c:out value="${tab.tableId}"/>'>
</td>
<td nowrap align="center">
<fmt:formatDate value="${tab.versionStartDate}" pattern="yyyy-MM-dd"/>
</td>
<td nowrap align="center">
<fmt:formatDate value="${tab.versionEndDate}" pattern="yyyy-MM-dd"/>
</td>
<td nowrap align="center">
<c:out value="${tab.attachName}"/>
</td>
</tr>
<tr>
<td colspan="60">
<table width="100%" border="0" cellspacing="1" cellpadding="2" align="center" class="etable">
<tr>
<td align="left" colspan="60">
<b>
行信息
</b>
</td>
</tr>
<TR>
<TD nowrap align="center">
<B> 序号 </B>
</TD>
<c:forEach var="condition" items="${decisionRow_R.conditions}" varStatus="status">
<TD nowrap align="center">
<B> <c:out value="${condition.columnDefine.columnName}"/></B>
</TD>
</c:forEach>
<TD nowrap align="center">
<B> <c:out value="${decisionRow.conclusion.columnDefine.columnName}"/></B>
</TD>
<TD nowrap align="center">
<B> <c:out value="${decisionRow.message.columnDefine.columnName}"/></B>
</TD>
</TR>
<c:forEach var="row" items="${tab.rows}" varStatus="status">
<tr>
<td nowrap width="10%" align="center">
<c:out value="${row.indexId}"/>
</td>

<c:forEach var="condValue" items="${row.conditions}" varStatus="status">
<TD nowrap align="center">
<c:out value="${condValue.value}"/>
</TD>
</c:forEach>

<td nowrap width="10%" align="center">
<c:out value="${row.conclusion.value}"/>
</td>
<td nowrap width="10%" align="center">
<c:out value="${row.message.value}"/>
</td>
</tr>
</c:forEach>
</table>
</td>
</tr>
<tr>
<td colspan="60"> </td>
</tr>
</tbody>
</c:forEach>
<TR>
<TD align="left" colspan="4">
   <input type="button" class="tpbutton" name="btnEdit" value=" 导入实例数据 " onClick="importObject('<c:out value="${calibRule.ruleID}"/>','<c:out value="${calibRule.rule.ruleDefineId}"/>');" />
</TD>
</TR>
</c:if>
</c:forEach>
</table>
</body>
</html>
<script languge="javascript">
var tempVar = '';
function valChange(obj){
var changeValue = obj.value;
if(tempVar != '') {
document.getElementById(tempVar).style.display = "none";
}
if(changeValue != '') {
document.getElementById(changeValue).style.display = "block";
}
tempVar = changeValue;
}
function importObject(ruleId,ruleDefineId){
// var ruleId = <c:out value="${decisionRule.ruleId}"/>;
// var ruleDefineId = <c:out value="${decisionRule.ruleDefineId}"/>;
var url = "decisionRowImprotMenu.do?ruleIdPara="+ruleId+"&ruleDefineIdPara="+ruleDefineId;
window.open(url,'importObject',"scrollbars=yes,status=no,width=800,height=600");
}

function successCallback(){
window.location.reload();
}

</script>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值