<!-------------------部门选择开始---------------->
<%@ page import="net.sz600.system.SzLevelNumber" %>
<%
    SzDepartInfo szDepartInfo_DEPART = null;
    Iterator iter_DEPART = null;
%>
<table width="350" align="left">
  <tr>
    <td colspan="3">查找：<input type="text" name="txtDepartSelecting" class="txtClass1"><input type="button" class="btnClassShort" value="确定" OnClick="SearchOption(formUpdate.DepartSelecting, formUpdate.DepartSelected, formUpdate.txtDepartSelecting.value);"></td>
  </tr>
  <tr>
    <td width="150" align="right">
      <select name="DepartSelecting" size="10" multiple style="width:150;" OnDblClick="MoveSelectedOption(formUpdate.DepartSelecting, formUpdate.DepartSelected);">
<%
    iter_DEPART = SzUserHelp.getDepartStaticList(szCOMPANY_SESSION).iterator();
    while (iter_DEPART!=null && iter_DEPART.hasNext()) {
        szDepartInfo_DEPART = (SzDepartInfo)iter_DEPART.next();
        if (sBMID_selected.indexOf("," + szDepartInfo_DEPART.getBMID() + ",") >= 0) {
           //这个不能显示，
           continue;
        }
%>
        <option value="<%=szDepartInfo_DEPART.getBMID()%>"><%=SzLevelNumber.getLevelSpace(szDepartInfo_DEPART.getBMBH())%><%=szDepartInfo_DEPART.getBMMC()%></option>
<%
    }
%>
      </select>
    </td>
    <td width="50">
      <table>
        <tr><td><input type="button" name="btnToRight" value=">>" OnClick="MoveAllOption(formUpdate.DepartSelecting, formUpdate.DepartSelected);"></td></tr>
        <tr><td><input type="button" name="btnToRight" value=" >"  OnClick="MoveSelectedOption(formUpdate.DepartSelecting, formUpdate.DepartSelected);"></td></tr>
        <tr><td><input type="button" name="btnToLeft"  value=" <"  OnClick="MoveSelectedOption(formUpdate.DepartSelected, formUpdate.DepartSelecting);"></td></tr>
        <tr><td><input type="button" name="btnToLeft"  value="<<" OnClick="MoveAllOption(formUpdate.DepartSelected, formUpdate.DepartSelecting);"></td></tr>
      </table>
    </td>
    <td width="150" align="left">
      <select name="DepartSelected" size="10" multiple style="width:150;" OnDblClick="MoveSelectedOption(formUpdate.DepartSelected, formUpdate.DepartSelecting);">
<%
    iter_DEPART = SzUserHelp.getDepartStaticList(szCOMPANY_SESSION).iterator();
    while (iter_DEPART!=null && iter_DEPART.hasNext()) {
        szDepartInfo_DEPART = (SzDepartInfo)iter_DEPART.next();
        if (sBMID_selected.indexOf("," + szDepartInfo_DEPART.getBMID() + ",") == -1) {
           //这个不能显示，
           continue;
        }
%>
        <option value="<%=szDepartInfo_DEPART.getBMID()%>"><%=szDepartInfo_DEPART.getBMMC()%></option>
<%
    }
%>
      </select>
    </td>
  </tr>
</table>
<!-------------------部门选择结束---------------->
