

<%@ Page Language="C#" MasterPageFile="~/Common/MainFramePage.master" AutoEventWireup="true"
CodeFile="Test.aspx.cs" Inherits="DataManagement_Test" Title="Untitled Page" %>
<%@ Register Src="../Common/UserControl/IndicatorMultiSelectControl.ascx" TagName="IndicatorMultiSelectControl"
TagPrefix="uc1" %>
<%@ Register Src="../Common/UserControl/DateRangeControl.ascx" TagName="DateRangeControl"
TagPrefix="uc3" %>
<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderMainFramePage"
runat="Server">
<table style="width: 100%">
<tr>
<td style="width: 3px; height: 68px;">
<asp:Label ID="Label1" runat="server" Text="请选择指标" Width="117px"></asp:Label>
</td>
<td style="width: 2011px; height: 68px;" colspan="2">
<uc1:indicatormultiselectcontrol
id="IndicatorMultiSelectControl_Test" runat="server"></uc1:indicatormultiselectcontrol></td>
</tr>
<tr>
<td style="width: 3px">
<asp:Label ID="Label2" runat="server" Text="请选择时间" Width="110px"></asp:Label>
</td>
<td style="width: 2011px" colspan="2">
<uc3:DateRangeControl ID="DateRangeControl_Test" runat="server" />
</td>
</tr>
<tr>
<td style="width: 3px">
<asp:Label ID="Label3" runat="server" Text="行政区划" Width="110px"></asp:Label></td>
<td style="width: 100%" colspan="2">
<asp:CheckBoxList ID="CheckBoxList_xzqh" runat="server" Width="100%" RepeatColumns="10">
<asp:ListItem Value="IndicatorCnName1" Text="全国"></asp:ListItem>
<asp:ListItem Value="IndicatorCnName2">中央</asp:ListItem>
<asp:ListItem Value="IndicatorCnName3">地方</asp:ListItem>
<asp:ListItem Value="IndicatorCnName4">北京市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName5">天津市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName6">上海市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName7">河北省</asp:ListItem>
<asp:ListItem Value="IndicatorCnName8">石家庄市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName9">秦皇岛市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName10">山西省</asp:ListItem>
<asp:ListItem Value="IndicatorCnName11">太原市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName12">内蒙古自治区</asp:ListItem>
<asp:ListItem Value="IndicatorCnName13">呼和浩特市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName14">辽宁省</asp:ListItem>
<asp:ListItem Value="IndicatorCnName15">沈阳市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName16">大连市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName17">营口市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName18">吉林省</asp:ListItem>
<asp:ListItem Value="IndicatorCnName19">长春市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName20">黑龙江省</asp:ListItem>
<asp:ListItem Value="IndicatorCnName21">哈尔滨市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName22">江苏省</asp:ListItem>
<asp:ListItem Value="IndicatorCnName23">南京市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName24">连云港市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName25">浙江省</asp:ListItem>
<asp:ListItem Value="IndicatorCnName26">杭州市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName27">宁波市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName28">安徽省</asp:ListItem>
<asp:ListItem Value="IndicatorCnName29">合肥市</asp:ListItem>
<asp:ListItem Value="IndicatorCnName30">福建省</asp:ListItem>
</asp:CheckBoxList>
</td>
</tr>
<tr>
<td style="width: 3px">
<asp:Label ID="Label4" runat="server" Text="国别地区" Width="110px"></asp:Label></td>
<td style="width: 2011px" colspan="2">
<asp:DropDownList ID="DropDownList_Test0" runat="server" Width="158px">
<asp:ListItem Value="IndicatorCn1">亚洲</asp:ListItem>
<asp:ListItem Value="IndicatorCn2">阿富汗</asp:ListItem>
<asp:ListItem Value="IndicatorCn3">巴林</asp:ListItem>
<asp:ListItem Value="IndicatorCn4">中华人民共和国</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 3px">
<asp:Label ID="Label5" runat="server" Text="金融机构" Width="110px"></asp:Label></td>
<td style="width: 2011px" colspan="2">
<asp:DropDownList ID="DropDownList1" runat="server" Width="158px">
<asp:ListItem Value="IndicatorCnName1">中央银行</asp:ListItem>
<asp:ListItem Value="IndicatorCnName2">中国人民银行</asp:ListItem>
<asp:ListItem Value="IndicatorCnName3">政策性银行</asp:ListItem>
<asp:ListItem Value="IndicatorCnName4">商业银行</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 3px">
<asp:Label ID="Label6" runat="server" Text="指标属性" Width="110px"></asp:Label></td>
<td style="width: 2011px" colspan="2">
<asp:DropDownList ID="DropDownList2" runat="server" Width="158px">
<asp:ListItem Value="IndicatorCnName1">本周值</asp:ListItem>
<asp:ListItem Value="IndicatorCnName2">本月值</asp:ListItem>
<asp:ListItem Value="IndicatorCnName3">指数(上年=100)</asp:ListItem>
<asp:ListItem Value="IndicatorCnName4">不变价值(1995年价)</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 3px">
<asp:Label ID="Label7" runat="server" Text="产地和交货地" Width="110px"></asp:Label></td>
<td style="width: 2011px" colspan="2">
<asp:DropDownList ID="DropDownList3" runat="server" Width="158px">
<asp:ListItem Value="IndicatorCnName1">英国设得兰群岛 </asp:ListItem>
<asp:ListItem Value="IndicatorCnName2">美国</asp:ListItem>
<asp:ListItem Value="IndicatorCnName3">鹿特丹</asp:ListItem>
<asp:ListItem Value="IndicatorCnName4">印度尼西亚</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 3px">
<asp:Button ID="ExportXML" runat="server" Height="32px" Text="导出XML" Width="140px" OnClick="ExportXML_Click" /></td>
<td style="width: 2011px" colspan="2">
</td>
</tr>
<tr>
<td style="width: 3px">
<asp:FileUpload ID="FileUpload1" runat="server" /></td>
<td style="width: 2011px">
<asp:Button ID="SubnodeBtn" runat="server" Text="获取子节点" Width="155px" OnClick="Subnode_Click" /></td>
<td style="width: 2011px">
<asp:Button ID="TransBtn" runat="server" Text="整理子节点" Width="155px"
OnClick="TransBtn_Click" /></td>
</tr>
<tr>
<td colspan="3">
<asp:GridView ID="ExportGridView" runat="server" Height="100%" Width="100%">
</asp:GridView>
</td>
</tr>
<tr>
<td colspan="3">
<SCRIPT LANGUAGE="JavaScript">
<!--
// JScript 文件
var xmlHttp;
var BigCate;
function createXMLHttpRequest()
{
if (window.ActiveXObject)
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest)
{
xmlHttp = new XMLHttpRequest();
}
}
function getBigCate()
{
createXMLHttpRequest();
BigCate = document.getElementById("BigCate").value;
xmlHttp.onreadystatechange=handleStateChange;
xmlHttp.open("GET","AAA.aspx?BigCateID="+BigCate+"",true);
xmlHttp.send(null);
}
function handleStateChange()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
getSmallCate(xmlHttp.responseText);
}
}
}
function getSmallCate(paramValue)
{
document.getElementById("SmallCate").length = 0;
document.getElementById("SmallCate").options.add(new Option("please choose the city","0"));
if (paramValue != "")
{
var Array1 = paramValue.split("|");
for(var i = 1;i < Array1.length;i++)
{
var Array2 = Array1[i].split(",");
document.getElementById("SmallCate").options.add(new Option(Array2[0].toString(),Array2[1].toString()));
}
}
else
{
document.getElementById("SmallCate").length = 0;
}
}
//-->
</SCRIPT>
分类
<asp:DropDownList id="BigCate" runat="server" Width="112px"></asp:DropDownList>
名称
<asp:DropDownList id="SmallCate" runat="server" Width="168px"></asp:DropDownList>
</td>
</tr>
<tr>
<td colspan="3">
<div>
<script language="JavaScript" type="text/javascript">
//ChangeSelect(上一级的值,下一级Select控件的ID值,下一级Select控件要选中的值(即value而非text),数据源数组名,默认显示字符(如:请选择

function ChangeSelect(ParentValue, NextId, NextSelectedValue, ArrObj,DefaultStr)
{
StrObj = eval(document.getElementById(NextId));
StrObj.length = 0;
//判断它是二级数据源,还是三级
if (ArrObj.length > 0)
{
if (ArrObj[0].length == 2)
{ArrNum = 0;}
else
{ArrNum = 2;}
}
//显示所有列表
for (i = 0; i < ArrObj.length; i++)
{
if (i == 0)
{
if (DefaultStr == undefined ) DefaultStr="==请选择==";
StrObj.options[StrObj.length] = new Option(DefaultStr, "");
}
if (ArrObj[i][1] == ParentValue)
{
StrObj.options[StrObj.length] = new Option(ArrObj[i][0],ArrObj[i][ArrNum]);
}
}
//选中列表内某一项
for (i = 0; i < StrObj.length; i++)
{
if (StrObj.options[i].value == NextSelectedValue)
{
StrObj.options[i].selected = true;
}
}
//激发下一级的onchange事件以实现多级级联
StrObj.onchange();
}
//三维数组数据源
City3 = [
["CategoryName","ParentId","Id"],
["中国","0","010"],
["美国","0","0359"],
["北京","010","001"],
["山西省","010","002"],
["朝阳区","001","101"],
["石景山区","001","102"],
["休斯敦","0359","301"],
["费城","0359","302"],
["火箭","301","311"],
["76人","302","312"]
];
</script>
<select id="City3001" onchange="ChangeSelect(this.value,'City3002','',City3)" style="width:100px"></select>
<select id="City3002" onchange="ChangeSelect(this.value,'City3003','',City3)" style="width:100px"></select>
<select id="City3003" onchange="" style="width:100px"></select>
<script language="JavaScript" type="text/javascript">ChangeSelect('0','City3001','0359',City3) </script>
</div>
</td>
</tr>
</table>
<%-- <br />
</div>--%>
<%-- </form>--%>
</asp:Content>
测试页改后留存


<%@ Page Language="C#" MasterPageFile="~/Common/MainFramePage.master" AutoEventWireup="true"
CodeFile="Test.aspx.cs" Inherits="DataManagement_Test" Title="Untitled Page" %>
<%@ Register Src="../Common/UserControl/IndicatorMultiSelectControl.ascx" TagName="IndicatorMultiSelectControl"
TagPrefix="uc1" %>
<%@ Register Src="../Common/UserControl/DateRangeControl.ascx" TagName="DateRangeControl"
TagPrefix="uc3" %>
<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderMainFramePage"
runat="Server">
<table style="width: 100%">
<tr>
<td style="width: 3px; height: 68px;">
<asp:Label ID="Label1" runat="server" Text="请选择指标" Width="117px"></asp:Label>
</td>
<td style="width: 2011px; height: 68px;" colspan="2">
<uc1:indicatormultiselectcontrol
id="IndicatorMultiSelectControl_Test" runat="server"></uc1:indicatormultiselectcontrol></td>
</tr>
<tr>
<td style="width: 3px">
<asp:Label ID="Label2" runat="server" Text="请选择时间" Width="110px"></asp:Label>
</td>
<td style="width: 2011px" colspan="2">
<uc3:DateRangeControl ID="DateRangeControl_Test" runat="server" />
</td>
</tr>
<tr>
<td style="width: 3px">
<asp:Label ID="Label3" runat="server" Text="指标分类" Width="62px"></asp:Label>
<asp:DropDownList id="FirstClass" runat="server" Width="112px"></asp:DropDownList></td>
<td colspan="2" style="width: 2011px">
<asp:Label ID="Label4" runat="server" Text="详细信息"></asp:Label>
<asp:DropDownList id="SecondClass" runat="server" Width="168px"></asp:DropDownList></td>
</tr>
<tr>
<td style="width: 3px">
<asp:Button ID="ExportXML" runat="server" Height="32px" Text="导出XML" Width="140px" OnClick="ExportXML_Click" /></td>
<td style="width: 2011px" colspan="2">
</td>
</tr>
<tr>
<td style="width: 3px">
<asp:FileUpload ID="FileUpload1" runat="server" /></td>
<td style="width: 2011px">
<asp:Button ID="SubnodeBtn" runat="server" Text="获取子节点" Width="155px" OnClick="Subnode_Click" /></td>
<td style="width: 2011px">
<asp:Button ID="TransBtn" runat="server" Text="整理子节点" Width="155px"
OnClick="TransBtn_Click" /></td>
</tr>
<tr>
<td colspan="3">
<asp:GridView ID="ExportGridView" runat="server" Height="100%" Width="100%">
</asp:GridView>
</td>
</tr>
</table>
<%-- <br />
</div>--%>
<%-- </form>--%>
</asp:Content>