一级关联
来源:互联网 发布:今日头条推荐算法 编辑:程序博客网 时间:2024/04/29 19:05
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,com.tisson.business.*,com.tisson.jdbc.*"%>
<%@ taglib uri="/tld/selecttaglib.tld" prefix="SelectTagLib"%>
<%@ taglib uri="/tld/selectarraytaglib.tld" prefix="SelectArrayTagLib" %>
<%
String deptid = request.getParameter("deptid");
CarService cs = CarServiceFactory.getCarService();
RowSet rs = cs.getCarArgument();
%>
<html>
<head>
<title>汽车信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type=text/javascript>
var onecount;
onecount=0;
subcat = new Array();
<%
int count = 0;
for(int i=0; i<rs.length(); i++) {
Row row = (Row)rs.get(i);
String argid = row.get("ARGUMENTID").toString();
String aname = row.get("ARGUMENTNAME").toString();
String supid = row.get("SUPID").toString();
%>
subcat[<%=count %>] = new Array('<%=argid %>','<%=aname %>','<%=supid %>');
<%
count++;
}
%>
onecount=<%=count %>;
function changeSecond(locationid, secondCode)
{
document.frm.DETAILED_TYPE.length = 0;
var k;
for (k=0;k < onecount; k++)
{
if (subcat[k][2] == locationid)
{
document.frm.DETAILED_TYPE.options[document.frm.DETAILED_TYPE.length] = new
Option(subcat[k][1], subcat[k][0]);
if(subcat[k][0].toString() == secondCode) {
document.frm.DETAILED_TYPE.options[document.frm.DETAILED_TYPE.length-1].selected=true;
}
}
}
}
</script>
</head>
<body class="Sfont">
<center><br>
<form action="AddPage.jsp" name="frm" onsubmit="return check();">
<table width="600" cellspacing="0" cellpadding="0" border="0" class="uniformstyle" id="myform">
<tr height="19" >
<td height="19" class="tdBgColor">类型</td>
<td ><select style="width:110" name="CAR_TYPE" onchange="changeSecond(this.value, ' ')">
<SelectTagLib:SelectTagLib selectName="ARGUMENTID,ARGUMENTNAME"
fromName="ARGUMENT"
whereName=" ARGUMENTID like '000100110%' and length(ARGUMENTID)=12" orderName="ARGUMENTID"
selectedName="" databaseName="" />
</select>
</td>
</table>
</form>
</center>
</body>
</html>
<script type="text/javascript">
<!--
function check() {
return true;
}
//-->
</script>
- 一级关联
- word 自动项目编号,自动关联上一级编号
- 框架 day32 Hibernate,一级缓存,关联关系映射(一对多,多对多)
- 框架 day66 Mybatis(关联查询映射(1对1/多),延迟加载,一级/二级缓存,与spring整合,逆向工程)
- 上一级下一级
- 一级缓存
- 一级单词
- 一级党课
- 一级市场
- 一级市场
- 一级学科
- 一级缓存
- 一级函数
- 偶然一级
- 一级缓存
- 一级指针
- 一级指针
- 一级列表
- MYSQL主从复制或双机互备
- 承接管理系统开发
- 从无头单链表中删除节点
- BB之"Uncaught exception:net.rim.device.api...."错误的解决之道
- Release 的问题
- 一级关联
- matlab函数randn:产生正态分布的随机数或矩阵的函数
- 我来看看大家!
- 常用的css样式
- 研究: VLC 流媒体视频播放
- 硬盘安装IIS
- 表单选择器
- 有关T-SQL中的ROUND()的用法
- 【已解决】yaffs2中,mount mtd block设备后,insmod就死掉了