📄 persongroupbrowermain.jsp
字号:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*,java.text.*,oa.main.DealString,java.util.Hashtable"%>
<%
oa.bean.PersonGroupBean myBean = null;
oa.bean.PersonBean perBean = null;
try{
myBean = new oa.bean.PersonGroupBean();
perBean = new oa.bean.PersonBean();
DealString ds = new DealString();
//人员编号
String strPersonNO = ds.toString((String)session.getAttribute("zgbh"));
//群组编号
String strGroupNO= ds.toString((String)request.getParameter("txt_GroupNO"));
String[] strArry_Selected = request.getParameterValues("select_PersonList_To");
String strZGBHs = ds.toString((String)request.getParameter("ZGBHs"));
if (strGroupNO.equals("")){
strGroupNO="0";
}
//debug --
if (strPersonNO.equals("")){
strPersonNO="1";
}
//debug --完
%>
<html>
<head><title>组织人员浏览</title>
<link href="../css/person.css" type=text/css rel=stylesheet>
<script language="javascript" src="../scripts/treeBrower.js"></script>
<script language="javascript" src="../scripts/ctrStyles.js"></script>
</head>
<body>
<%
myBean.setPersonNO(strPersonNO);
myBean.setGroupNO(strGroupNO);
Vector vect=new Vector();
if(!strGroupNO.equals("0")){
vect = (Vector)myBean.getMembers();
}
%>
<table border="0" cellpadding="2" style="border-collapse: collapse; color:#FFFFFF" bordercolor="D0E7FF" width="100%" height="18">
<tr>
<td align="left" > <b><font color="#007EAE">人员列表</font></b></td>
</tr>
</table>
<table width="95%" height="166" border="0">
<tr>
<td width="95%" align="left" height="162">
<table width="100%" align="left" height="1" >
<tr>
<td>
<form>
<select size="20" name="select_PersonList_From" multiple style="width: 150;height: 160" ondblclick="moveSelected(document.getElementById('select_PersonList_From'),document.getElementById('select_PersonList_To'));">
<%
for(int i=0;i<vect.size();i++)
{
Hashtable hash = (Hashtable)vect.get(i);
String strZGBH = ds.toString((String)hash.get("ZGBH"));
String strXM = ds.toString((String)hash.get("XM"));
String strGH = ds.toString((String)hash.get("GH"));
if (strGH.equals("")) {
strGH=" ";
}
%>
<option value="<%=strZGBH%>,<%=strXM%>,<%=strGH%>"><%=strXM%>[<%=strGH%>]</option>
<%
}//end for
%>
</select></form> </td></tr>
<tr>
<td height="1" align="left">
<img src="../images/jt02.gif" onclick="moveSelected(document.getElementById('select_PersonList_From'),document.getElementById('select_PersonList_To'));" onmouseover="src='../images/jt022.gif';" onmouseout="src='../images/jt02.gif';" title="选择">
<img src="../images/jt01.gif" onclick="reMoveSelected(document.getElementById('select_PersonList_To'));" onmouseover="src='../images/jt011.gif';" onmouseout="src='../images/jt01.gif';" title="取消">
<img src="../images/jt04.gif" onclick="moveAll(document.getElementById('select_PersonList_From'),document.getElementById('select_PersonList_To'))" onmouseover="src='../images/jt044.gif';" onmouseout="src='../images/jt04.gif';" title="全部选择">
<img src="../images/jt03.gif" onclick="reMoveAll(document.getElementById('select_PersonList_To'))" onmouseover="src='../images/jt033.gif';" onmouseout="src='../images/jt03.gif';" title="全部取消">
</td></tr>
<tr>
<td width="30%" rowspan="4" height="1" valign="middle" align="left">
<form method="POST" name="formSelected" >
<select size="20" name="select_PersonList_To" multiple style="width: 150;height: 160" ondblclick="reMoveSelected(document.getElementById('select_PersonList_To'));">
<%
//如果有传入的参数,则将其显示出来
if (!strZGBHs.equals("")) {
String[] strZGs=strZGBHs.split(",");
for(int i=0;i<strZGs.length;i++){
perBean.setPersonNO(strZGs[i]);
Hashtable hash = perBean.getOneData();
String strXM = (String)hash.get("XM");
String strZGBH = (String)hash.get("ZGBH");
String strGH = ds.toString((String)hash.get("GH"));
if (strGH.equals("")) {
strGH=" ";
}
%>
<option value="<%=strZGBH%>,<%=strXM%>,<%=strGH%>"><%=strXM%>[<%=strGH%>]</option>
<%
}//end for
}
if (strArry_Selected!=null)
for(int i=0; i < strArry_Selected.length; i++)
{
String[] str=strArry_Selected[i].split(",");
out.println("<option value=\""+ds.toGBK(strArry_Selected[i])+"\">"+ds.toGBK(str[1])+"["+ds.toGBK(str[2])+"]</option>");
}
%>
</select></form></td></tr>
</table>
</td>
</table>
<!--table border="1" cellpadding="2" style="border-collapse: collapse; color:#FFFFFF" bordercolor="D0E7FF" width="100%" height="18" bgcolor="#007EAE">
<tr>
<td align="left" ></b></td>
</tr>
</table--->
<table border="0" width="100%">
<tr>
<td width="50%" align=center>
<input type="button" value=" 确定 " name="Button_OK" onclick="onButtonOK()">
<input type="button" value=" 取消 " name="Button_Cancel" onclick="onButtonCancel()"></td>
</tr>
</table>
</body>
<script>
function onButtonCancel(){
parent.close();
}
function onButtonOK(){
parent.opener.onButton_OK(document.getElementById('select_PersonList_To'));
parent.close();
}
</script>
</html>
<%}finally{
if(myBean!=null)myBean.closeConn();
if(perBean!=null)perBean.closeConn();
}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -