單位選擇框



		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

標題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章