现有三个数据表:
create table Factory
(
id int identity(1,1) not null,
Factory_ID varchar(4) not null,
Factory_Name varchar(20) not null,
Factory_DeptCode varchar(256) not null,
) create table Department
(
id int identity(1,1) not null,
Department_ID varchar(4) not null,
Department_Name varchar(20) not null,
Department_Code varchar(256) not null,
) create table Reason
(
id int identity(1,1) not null,
Reason_ID varchar(6) not null,
Reason_Name varchar(100) not null,
Reason_Content varchar(256) null,
) Factory表中的字段Factory_DeptCode中是由Department表中的字段Department_ID组合而成,同理Department表中的字段Department_Code是由Reason表中的Reason_ID组和而成。
现有三个下拉列表,分别是Fact、Dept、Rea ,分别对应的是Factory_Name、Department_Name、Reason_Name。理论上通过判断各自的Code可以实现联动,用javascript可以取到列表当前选中的值,但是在javascript中怎么通过取到的值查找对应的Code,然后判断再输出?
新人求教,用的是asp,或能有更好的方案实现联动的。
create table Factory
(
id int identity(1,1) not null,
Factory_ID varchar(4) not null,
Factory_Name varchar(20) not null,
Factory_DeptCode varchar(256) not null,
) create table Department
(
id int identity(1,1) not null,
Department_ID varchar(4) not null,
Department_Name varchar(20) not null,
Department_Code varchar(256) not null,
) create table Reason
(
id int identity(1,1) not null,
Reason_ID varchar(6) not null,
Reason_Name varchar(100) not null,
Reason_Content varchar(256) null,
) Factory表中的字段Factory_DeptCode中是由Department表中的字段Department_ID组合而成,同理Department表中的字段Department_Code是由Reason表中的Reason_ID组和而成。
现有三个下拉列表,分别是Fact、Dept、Rea ,分别对应的是Factory_Name、Department_Name、Reason_Name。理论上通过判断各自的Code可以实现联动,用javascript可以取到列表当前选中的值,但是在javascript中怎么通过取到的值查找对应的Code,然后判断再输出?
新人求教,用的是asp,或能有更好的方案实现联动的。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货