<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="com.gx.webpage.framework.util.inoutformat.DataBean" %>
<%@ page import="com.gx.webpage.framework.pageconfengine.*" %>
<%@ page import="java.util.*" %>
<%
	String selectTypeStr = DataBean.getStr(request,"selectType");
	int selectType = 0;
	try{
		selectType = Integer.parseInt(selectTypeStr);
	}catch(Exception err){
		//
	}
  Map map = WebpageConfEngine.getInstance().getCompMap();
  Set set = map.keySet();
  Iterator it = set.iterator();
  Iterator itForScript = set.iterator();
%>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="StyleSheet" href="./../../../webpage/common/css/Dialog.css" type="text/css" />
<script language="javascript" src="./../../../webpage/common/engine/constant.js"></script>
<script language="JScript.Encode" src="./../../../webpage/common/engine/common.js"></script>
</HEAD>
<BODY class=innerBody>
<table border=0 width=100%>
    <tr>
        <td height=10>数据表现形式</td>
        <td colspan=2>
<script language="javascript">
  function ChangeDataType(myList){
    var id = myList.value;
    var url = "";
    var viewId = "";
    if(id=="绝对不等于"){
    }
    <%
    while(itForScript.hasNext()){
      String id = (String)itForScript.next();
      CompRegisterModel crm = (CompRegisterModel)map.get(id);
    %>
    else if(id=="<%=id%>"){
      url = "<%=crm.getOriginDesignPath()%>"+"/designControl.htm";
      viewId="<%=crm.getId()%>";
			document.all("nowViewId").value = viewId;
    }
    <%}%>    
  }
  function doOk()
	{
			var md = document.all("nowViewId").value;
		  window.returnValue = md;
	    window.close();
	}
	function doCancel()
	{
	    window.close();
	}
</script>
<select size="1" id="dataType" name="dataType" onchange='ChangeDataType(this)' style="WIDTH: 250px">
<option value="">&nbsp;</option>
<%	
  while(it.hasNext()){
    String id = (String)it.next();
    CompRegisterModel crm = (CompRegisterModel)map.get(id);
    if(crm.getCompType() != selectType){
        continue;
    }
%>
    <option value="<%=crm.getId()%>"><%=crm.getName()%></option>
<%}%>
</select>
        </td>
    </tr>
<tr height=20px>
<input type="hidden" name="nowViewId" id="nowViewId">
    <td align=center><input class=butAction type=button id=butOk name=butOk value="确　定" onclick='doOk();'></td>
    <td align=center><input class=butAction type=button id=butCancel name=butCancel value="取　消" onclick='doCancel();'></td>
</tr>
</table>
</BODY>
</HTML>
