81,094
社区成员
发帖
与我相关
我的任务
分享
</tr>
<tr>
<th>
方式二:
<s:select
theme="simple"
list="deptList"
id="selectDW"
headerKey="-1"
headerValue="==请选择=="
listKey="dwbh"
listValue="dwmc"
name="dwbh"
onchange="changeDeptUp(this.value);">
</s:select>
<s:select
theme="simple"
list="postList"
id="selectGW"
headerKey="-1"
headerValue="==请选择=="
listKey="gwbh"
listValue="gwmc"
name="gwbh">
</s:select>
<s:submit value="查询" method="changePostUp" theme="simple" onclick="return clearXh();"/>
</th>
<th>
<s:submit value="导出" method="queryExcel" theme="simple" onclick="return queryExcel();"/>
</th>
</tr>
function changeDeptUp(dwbh) {
if(dwbh == '-1') {
return;
}else {
EngageMgDAOImpl.getPostListByDwbh(dwbh,retDeptList);
}
}
function retDeptList(list) {
if(list.length != 0) {
dwr.util.removeAllOptions('selectGW');
dwr.util.addOptions('selectGW',[{'value':'-1','name':"==请选择=="}],'value','name');
for(var i=0;i<list.length;i++){
dwr.util.addOptions('selectGW',[{'gwbh':list[i].gwbh,'gwmc':jQuery.trim(list[i].gwmc)}],'gwbh','gwmc');
}
}else{
}
}