<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.tool.SzDateHelp" %>
<%@ page import="net.sz600.organize.*" %>
<%@ page import="net.sz600.system.*" %>
<%@ page import="net.sz600.flow.*" %>
<%@ page import="net.sz600.formEngine2.*" %>
<%@ page import="java.util.*" %>
<%@ include file="/sessionInfo.jsp"%>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<%=strSkin_SESSION%>/css2007.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=strLevel_SESSION%>/share/js/common.js"></script>
</style>
</head>
<form name="formUpdate" method="post" action="stat_group_control.jsp">
  <input type="hidden" name="OPERATOR" value="desktop_order">
<%@ include file="/share/title.jsp"%>
<table width="100%">
  <tr>
    <td>
    <% if (isBarManager_SESSION) { %>
      <%=SzPageHelp.button("保存", "javascript:FormSave(formUpdate, 'desktop_control.jsp');")%>
    <% } %>
    (桌面显示规则：只显示前面18个;只显示1到9999的序号，按照从小到大排列;只显示有系统模块列表中的)
    </td>
  </tr>
</table>
<table width="98%" border="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" class="tableClass" cellpadding="1" cellspacing="0">
<tr class="trClassTitle">
	<td>序号</td>
	<td>ID</td>
	<td>名称</td>
	<td>原桌面顺序</td>
	<td>桌面顺序</td>
</tr>
<%
	LcForm lcForm = new LcForm();
	LcFormInfo lcFormInfo = null;

	ArrayList list = lcForm.getDesktopListInSystem();
	
	String str[] = null;
	int i = 0;
	Iterator iter = list.iterator();
	boolean flag = false;
  while (iter != null && iter.hasNext()) {
	  lcFormInfo = (LcFormInfo)iter.next();
	  if (lcFormInfo == null) {
		  continue;
	  }
		if (!flag && (i==18 || lcFormInfo.getBDZMSX()==10000)) {
			flag = true;
			out.println("<tr class='trClassTitle_c'><td colspan='5'>注：以下不在桌面显示</td></tr>");
		}	  
%>
<tr>
	<td align="center"><%=i + 1%></td>
	<td align="center"><%=lcFormInfo.getBDID()%></td>
  <td align="center"><%=lcFormInfo.getBDMC()%></td>
	<td align="center"><%=lcFormInfo.getBDZMSX()%></td>
  <td align="center">
    <input type="hidden" class="txtClass1" name="BDID<%=i%>" value="<%=lcFormInfo.getBDID()%>">
  	<input type="text" class="txtClass1" name="BDZMSX<%=i%>" value="<%=lcFormInfo.getBDZMSX()%>"></td>
</tr>
<%
		i++;

  }
%>
	<input type="hidden" name="count" value="<%=i %>">
</table>
</form>
<script language="javascript">

  function FormSave(formName, url) {

    formName.action = url;
    formName.submit();
  }
</script>