<!-------------------模块选择开始---------------->
<%@ page import="net.sz600.system.SzLevelNumber" %>
<%
    sMKID_selected = "," + sMKID_selected + ",";
    Iterator iter_MODULE = null;
    SzModuleInfo szModuleInfo_MODULE = null;

    String strCompanyModule = SzConvert.toZeroStr(SzModuleApp.getCompanyModule(szCOMPANY_SESSION));

%>
<table width="350" align="left">
  <tr>
    <td colspan="3">查找：<input type="text" name="txtModuleSelecting" class="txtClass1"><input type="button" class="btnClassShort" value="确定" OnClick="SearchOption(formUpdate.ModuleSelecting, formUpdate.ModuleSelected, formUpdate.txtModuleSelecting.value);"></td>
  </tr>
  <tr>
    <td width="150" align="right">
      <select name="ModuleSelecting" size="25" multiple style="width:150;" OnDblClick="MoveSelectedOption(formUpdate.ModuleSelecting, formUpdate.ModuleSelected);">
<%
    iter_MODULE = SzModuleApp.getModuleList().iterator();

    while (iter_MODULE!=null && iter_MODULE.hasNext()) {
        szModuleInfo_MODULE = (SzModuleInfo)iter_MODULE.next();
	//不是这个公司的不能显示
	if (!szCOMPANY_SESSION.equals("0") && strCompanyModule.indexOf("," + szModuleInfo_MODULE.getMKID() + ",") == -1) {
	   continue;
	}
	//只显示二级以上
	if (szModuleInfo_MODULE.getMKBH().length() > 2 * SzLevelNumber.I_NUMBER_LEN) {
	   continue;
	}

        if (sMKID_selected.indexOf("," + szModuleInfo_MODULE.getMKID() + ",") >= 0) {
           //这个不能显示，
           continue;
        }
%>
        <option value="<%=szModuleInfo_MODULE.getMKID()%>"><%=SzLevelNumber.getLevelSpace(szModuleInfo_MODULE.getMKBH())%><%=szModuleInfo_MODULE.getMKMC()%></option>
<%
    }
%>
      </select>
    </td>
    <td width="50">
      <table>
        <tr><td><input type="button" name="btnToRightM" value=">>" OnClick="MoveAllOption(formUpdate.ModuleSelecting, formUpdate.ModuleSelected);"></td></tr>
        <tr><td><input type="button" name="btnToRightM2" value=" >"  OnClick="MoveSelectedOption(formUpdate.ModuleSelecting, formUpdate.ModuleSelected);"></td></tr>
        <tr><td><input type="button" name="btnToLeftM"  value=" <"  OnClick="MoveSelectedOption(formUpdate.ModuleSelected, formUpdate.ModuleSelecting);"></td></tr>
        <tr><td><input type="button" name="btnToLeftM2"  value="<<" OnClick="MoveAllOption(formUpdate.ModuleSelected, formUpdate.ModuleSelecting);"></td></tr>
      </table>
    </td>
    <td width="150" align="left">
      <select name="ModuleSelected" size="25" multiple style="width:150;" OnDblClick="MoveSelectedOption(formUpdate.ModuleSelected, formUpdate.ModuleSelecting);">
<%
    iter_MODULE = SzModuleApp.getModuleList().iterator();

    while (iter_MODULE!=null && iter_MODULE.hasNext()) {
        szModuleInfo_MODULE = (SzModuleInfo)iter_MODULE.next();
        if (sMKID_selected.indexOf("," + szModuleInfo_MODULE.getMKID() + ",") == -1) {
           //这个不能显示，
           continue;
        }
%>
        <option value="<%=szModuleInfo_MODULE.getMKID()%>"><%=szModuleInfo_MODULE.getMKMC()%></option>
<%
    }
%>
      </select>
    </td>
  </tr>
</table>
<!-------------------模块选择结束---------------->
