单位选择框
chooseUnit=function(type,show,method,single,selectedId,showRoot,showMobile,onlyShowRoot){
if(self != top){
top.commonDialog = self;
}else{
commonDialog = self;
}
var url = getRootPath()+'/selectuser/index?type='+type+'&show='+show+'&method='+method+'&single='+single+'&selectedId='+selectedId+'&showRoot='+showRoot+'&showMobile='+showMobile+'&onlyShowRoot='+onlyShowRoot;
top.openDialog({
title : '人员组织机构选择',
//fullScreen:true,
id : 'dialog_commonChooseUser',
width :700,
height :500,
left :50,
top :40,
iframeWin:true,
iframeId : 'chooseUserFrame',
href : url,
myButtons :{//扩展buttons
id:'#btn_chooseUser',
loc:'right',
buttons:[
{
id :'btn_sureChooseUser',
text:'确 定',
iconCls:'btn-ok',
handler:'sureUser()'
},
{
id :'btn_clearChooseUser',
text:'清 空',
iconCls:'btn-clear',
handler:'clearUser()'
},
{
id:'btn_closeChooseUser',
text:'关 闭',
iconCls:'btn-cancel',
handler:'closeDialog("dialog_commonChooseUser")'
}
]
}
});
}
search.jsp
<tr>
<th>待签收单位:</th>
<td>
<input type="hidden" name="strObjUnitId" id="strObjUnitId" value=""/>
<input type="text" name="strObjUnitName" id="strObjUnitName" onclick="chooseUnit('g','','','no','strObjUnitId','true','');" class="txt" value="" size="50"/>
</td>
</tr>
Controller:listData
Controller:list