防止select事件累加的js操作

<%@pagecontentType="text/html;charset=GBK"%>

<%@includefile="../common/tag_include.jsp"%>

<html>

<head>

<metahttp-equiv="Content-Type"content="text/html;charset=GBK">

<title>

查看市场折扣表-分销

</title>

<linkrel="stylesheet"href="<%=request.getContextPath()%>/js/default.css"type="text/css">

<linkrel="stylesheet"href="<%=request.getContextPath()%>/js/menu.css"type="text/css">

<scriptlanguage="javascript"src="<%=request.getContextPath()%>/js/global.js"></script>

<scriptlanguage="javascript"src="<%=request.getContextPath()%>/js/tooltip.js"></script>

<scriptlanguage="javascript"src="<%=request.getContextPath()%>/js/common.js"></script>

<scriptlanguage="javascript"src="<%=request.getContextPath()%>/js/xmlcommon.js"></script>

<scriptlanguage="javascript"src="<%=request.getContextPath()%>/js/checkfield.js"></script>

</head>

<bodytopmargin="0"leftmargin="0">

<tablewidth="100%"border="0"cellspacing="1"cellpadding="2"align="center"class="etable">

<inputtype="hidden"name="calibID"value="<c:outvalue="${calib6.calibID}"/>"/>

<tralign="center">

<tdclass="content"colspan="4">

<b>

查看市场折扣表-分销

</b>

</td>

</tr>

<tr>

<tdalign="right"width="15%">机构</td>

<tdwidth="35%">

<c:forEachvar="departmentList"items="${departmentList}"varStatus="status">

<c:iftest="${departmentList.name==calib6.departmentCode}"><c:outvalue="${departmentList.text}"/></c:if>

</c:forEach>

</td>

<TDalign="right">

渠道

</TD>

<TD>

<c:iftest="${calib6.channelSourceCode=='1'}">分销</c:if>

<c:iftest="${calib6.channelSourceCode=='2'}">电销</c:if>

<c:iftest="${calib6.channelSourceCode=='3'}">直销</c:if>

<c:iftest="${calib6.channelSourceCode=='4'}">车商</c:if>

<c:iftest="${calib6.channelSourceCode=='5'}">网销</c:if>

</TD>

</tr>

<tr>

<TDalign="right">

业务类型

</TD>

<TD>

<c:iftest="${calib6.businessType=='1'}">非营业客车</c:if>

<c:iftest="${calib6.businessType=='2'}">其他</c:if>

</TD>

<TDwidth="15%"align="right">

投保方式

</TD>

<TDwidth="35%">

<c:iftest="${calib6.applyType=='1'}">新保</c:if>

<c:iftest="${calib6.applyType=='2'}">续保</c:if>

</TD>

</tr>

<tr>

<TDalign="right">规则类型</TD>

<TDcolspan="3">

<c:forEachvar="decisionRuleList"items="${decisionRuleList}"varStatus="status">

<c:forEachvar="calibRuleList"items="${calibRuleList}"varStatus="status">

<c:iftest="${decisionRuleList.ruleId==calibRuleList.ruleID}"><c:outvalue="${decisionRuleList.ruleName}"/></c:if>

</c:forEach>

</c:forEach>

</TD>

</tr>

</table>

<tablewidth="100%"border="0"cellspacing="1"cellpadding="2"align="center"class="etable">

<c:forEachvar="calibRule"items="${calibRuleList}"varStatus="status">

<c:iftest="${calibRule.businessType=='D1'}">

<tr>

<tdclass="content1"colspan="4">

<selectid="ruleVersionNo"name="ruleVersionNo"onchange="javascript:valChange(this);">

<optionvalue="">请选择</option>

<c:forEachvar="tab1"items="${calibRule.rule.tables}"varStatus="status">

<optionvalue="<c:outvalue="${tab1.tableId}"/>"><c:outvalue="${tab1.versionNo}"/></option>

</c:forEach>

</select>

</td>

</tr>

<c:forEachvar="tab"items="${calibRule.rule.tables}"varStatus="status">

<tbodyid='<c:outvalue="${tab.tableId}"/>'style="display:none">

<tr>

<tdclass="content1"colspan="4">

<b>

规则-表信息(<c:outvalue="${tab.versionNo}"/>)

</b>

</td>

</tr>

<TR>

<TDnowrapalign="center">

<B>流水号</B>

</TD>

<TDnowrapalign="center">

<B>版本生效时间</B>

</TD>

<TDnowrapalign="center">

<B>版本失效时间</B>

</TD>

<TDnowrapalign="center">

<B>导入文件名称</B>

</TD>

</TR>

<tr>

<tdnowrapalign="center">

<c:outvalue="${tab.tableId}"/>

<inputtype="hidden"name='tableId'value='<c:outvalue="${tab.tableId}"/>'>

</td>

<tdnowrapalign="center">

<fmt:formatDatevalue="${tab.versionStartDate}"pattern="yyyy-MM-dd"/>

</td>

<tdnowrapalign="center">

<fmt:formatDatevalue="${tab.versionEndDate}"pattern="yyyy-MM-dd"/>

</td>

<tdnowrapalign="center">

<c:outvalue="${tab.attachName}"/>

</td>

</tr>

<tr>

<tdcolspan="60">

<tablewidth="100%"border="0"cellspacing="1"cellpadding="2"align="center"class="etable">

<tr>

<tdalign="left"colspan="60">

<b>

行信息

</b>

</td>

</tr>

<TR>

<TDnowrapalign="center">

<B>序号</B>

</TD>

<c:forEachvar="condition"items="${decisionRow_R.conditions}"varStatus="status">

<TDnowrapalign="center">

<B><c:outvalue="${condition.columnDefine.columnName}"/></B>

</TD>

</c:forEach>

<TDnowrapalign="center">

<B><c:outvalue="${decisionRow.conclusion.columnDefine.columnName}"/></B>

</TD>

<TDnowrapalign="center">

<B><c:outvalue="${decisionRow.message.columnDefine.columnName}"/></B>

</TD>

</TR>

<c:forEachvar="row"items="${tab.rows}"varStatus="status">

<tr>

<tdnowrapwidth="10%"align="center">

<c:outvalue="${row.indexId}"/>

</td>

<c:forEachvar="condValue"items="${row.conditions}"varStatus="status">

<TDnowrapalign="center">

<c:outvalue="${condValue.value}"/>

</TD>

</c:forEach>

<tdnowrapwidth="10%"align="center">

<c:outvalue="${row.conclusion.value}"/>

</td>

<tdnowrapwidth="10%"align="center">

<c:outvalue="${row.message.value}"/>

</td>

</tr>

</c:forEach>

</table>

</td>

</tr>

<tr>

<tdcolspan="60">&nbsp;</td>

</tr>

</tbody>

</c:forEach>

<TR>

<TDalign="left"colspan="4">

&nbsp;&nbsp;<inputtype="button"class="tpbutton"name="btnEdit"value="导入实例数据"onClick="importObject('<c:outvalue="${calibRule.ruleID}"/>','<c:outvalue="${calibRule.rule.ruleDefineId}"/>');"/>

</TD>

</TR>

</c:if>

</c:forEach>

</table>

</body>

</html>

<scriptlanguge="javascript">

vartempVar='';

functionvalChange(obj){

varchangeValue=obj.value;

if(tempVar!=''){

document.getElementById(tempVar).style.display="none";

}

if(changeValue!=''){

document.getElementById(changeValue).style.display="block";

}

tempVar=changeValue;

}

functionimportObject(ruleId,ruleDefineId){

//varruleId=<c:outvalue="${decisionRule.ruleId}"/>;

//varruleDefineId=<c:outvalue="${decisionRule.ruleDefineId}"/>;

varurl="decisionRowImprotMenu.do?ruleIdPara="+ruleId+"&ruleDefineIdPara="+ruleDefineId;

window.open(url,'importObject',"scrollbars=yes,status=no,width=800,height=600");

}

functionsuccessCallback(){

window.location.reload();

}

</script>

相关推荐