<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChartTools.aspx.cs" Inherits="InfoPath.Chart.ChartTools" %>

<%@ Register src="../Include/Css.ascx" tagname="Css" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
<script type="text/javascript" src="../JS/Visifire2.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
          <script type="text/javascript" >
              function Finder(xml, width, height) {
                  var width = width;
                  var height = height;
                  var xml = xml;
                  var vChart = new Visifire2('../ClientBin/slc.xap', "MyChart", width, height);
                vChart.setDataUri(xml);
                // Render chart
                vChart.render("Chart1");
                window.document.getElementById("mainTable").style.display = "none;";
            }
             </script>
</head>
<body><uc1:Css ID="Css1" runat="server" />
    <form id="form1" runat="server">
<%--    <div id="VisifireChart0">
                    <script type="text/javascript">

                        // Create Visifire object
                        var vChart = new Visifire2('../ClientBin/SL.Visifire.Charts.xap', "MyChart", 500, 300);
                        vChart.setDataUri("Noname3.xml");

                        vChart.preLoad = function(args) {
                            var chart = args[0];
                            chart.Rendered = function(e) {
                                alert("Rendered");
                            };
                        };
                        // Render chart
                        vChart.render("VisifireChart0");
                        
                    </script>
                </div>--%>
    <div id="Chart1" >
        <script type="text/javascript" >


            
    </script>
    </div>
    <div id="mainTable" runat=server>
    <table cellSpacing="0" cellPadding="0"  border="0" width=100%>
				<tr>
					
					<td class="WsdnOrgTitle1">
						<asp:Label ID="Label2" runat="server" Text="静态图表生成器"></asp:Label>
						
					</td>
				</tr>
				<tr>
					<td class="WsdnOrgInfo"><asp:panel id="Panel1" runat="server" >
								<asp:Label id="Label1" runat="server">主标题</asp:Label>
								<asp:TextBox id="TextBox2" runat="server" Width="376px">演示公司年销售额(万元)</asp:TextBox>
							<br>
								<asp:Label id="Label3" runat="server">标题1</asp:Label>
								<asp:TextBox id="TextBox3" runat="server" Width="90px">一月</asp:TextBox>
								<asp:Label id="Label4" runat="server">数值1</asp:Label>
								<asp:TextBox id="TextBox4" runat="server" Width="90px">18.11</asp:TextBox>&nbsp;
								<br><asp:Label id="Label5" runat="server">标题2</asp:Label>
								<asp:TextBox id="TextBox5" runat="server" Width="90px">二月</asp:TextBox>
								<asp:Label id="Label6" runat="server">数值2</asp:Label>
								<asp:TextBox id="TextBox6" runat="server" Width="90px">22.35</asp:TextBox>
							<br>
								<asp:Label id="Label7" runat="server">标题3</asp:Label>
								<asp:TextBox id="Textbox7" runat="server" Width="90px">三月</asp:TextBox>
								<asp:Label id="Label8" runat="server">数值3</asp:Label>
								<asp:TextBox id="Textbox8" runat="server" Width="90px">33.33</asp:TextBox>&nbsp;
								<br><asp:Label id="Label9" runat="server">标题4</asp:Label>
								<asp:TextBox id="Textbox9" runat="server" Width="90px">四月</asp:TextBox>
								<asp:Label id="Label10" runat="server">数值4</asp:Label>
								<asp:TextBox id="Textbox10" runat="server" Width="90px">5.5</asp:TextBox>
							<br>
								<asp:Label id="Label11" runat="server">标题5</asp:Label>
								<asp:TextBox id="Textbox11" runat="server" Width="90px">五月</asp:TextBox>
								<asp:Label id="Label12" runat="server">数值5</asp:Label>
								<asp:TextBox id="Textbox12" runat="server" Width="90px">7.9</asp:TextBox>&nbsp;
								<br><asp:Label id="Label13" runat="server">标题6</asp:Label>
								<asp:TextBox id="Textbox13" runat="server" Width="90px">六月</asp:TextBox>
								<asp:Label id="Label14" runat="server">数值6</asp:Label>
								<asp:TextBox id="Textbox14" runat="server" Width="90px">13.20</asp:TextBox>
							<br>
								<asp:Label id="Label15" runat="server">标题7</asp:Label>
								<asp:TextBox id="Textbox15" runat="server" Width="90px">七月</asp:TextBox>
								<asp:Label id="Label16" runat="server">数值7</asp:Label>
								<asp:TextBox id="Textbox16" runat="server" Width="90px">23</asp:TextBox>&nbsp;
								<br><asp:Label id="Label17" runat="server">标题8</asp:Label>
								<asp:TextBox id="Textbox17" runat="server" Width="90px">八月</asp:TextBox>
								<asp:Label id="Label18" runat="server">数值8</asp:Label>
								<asp:TextBox id="Textbox18" runat="server" Width="90px">15.60</asp:TextBox>
							<br>
								<asp:Label id="Label19" runat="server">标题9</asp:Label>
								<asp:TextBox id="Textbox19" runat="server" Width="90px">九月</asp:TextBox>
								<asp:Label id="Label20" runat="server">数值9</asp:Label>
								<asp:TextBox id="Textbox20" runat="server" Width="90px">10</asp:TextBox>&nbsp;
								<br><asp:Label id="Label21" runat="server">标题10</asp:Label>
								<asp:TextBox id="Textbox21" runat="server" Width="90px">十月</asp:TextBox>
								<asp:Label id="Label22" runat="server">数值10</asp:Label>
								<asp:TextBox id="Textbox22" runat="server" Width="90px">13.99</asp:TextBox>
							<br>
								<asp:Label id="Label23" runat="server">标题11</asp:Label>
								<asp:TextBox id="Textbox23" runat="server" Width="90px">十一月</asp:TextBox>
								<asp:Label id="Label24" runat="server">数值11</asp:Label>
								<asp:TextBox id="Textbox24" runat="server" Width="90px">25</asp:TextBox>&nbsp;
								<br><asp:Label id="Label25" runat="server">标题12</asp:Label>
								<asp:TextBox id="Textbox25" runat="server" Width="90px">十二月</asp:TextBox>
								<asp:Label id="Label26" runat="server">数值12</asp:Label>
								<asp:TextBox id="Textbox26" runat="server" Width="90px">11.90</asp:TextBox>
							<br>
								<asp:Label id="Label28" runat="server">标题13</asp:Label>
								<asp:TextBox id="Textbox27" runat="server" Width="90px"></asp:TextBox>
								<asp:Label id="Label30" runat="server">数值13</asp:Label>
								<asp:TextBox id="Textbox28" runat="server" Width="90px"></asp:TextBox>&nbsp;
								<br><asp:Label id="Label31" runat="server">标题14</asp:Label>
								<asp:TextBox id="Textbox29" runat="server" Width="90px"></asp:TextBox>
								<asp:Label id="Label32" runat="server">数值14</asp:Label>
								<asp:TextBox id="Textbox30" runat="server" Width="90px"></asp:TextBox>
								<br><asp:Label id="Label35" runat="server">标题15</asp:Label>
								<asp:TextBox id="Textbox31" runat="server" Width="90px"></asp:TextBox>
								<asp:Label id="Label36" runat="server">数值15</asp:Label>
								<asp:TextBox id="Textbox32" runat="server" Width="90px"></asp:TextBox>&nbsp;
								<br><asp:Label id="Label37" runat="server">标题16</asp:Label>
								<asp:TextBox id="Textbox33" runat="server" Width="90px"></asp:TextBox>
								<asp:Label id="Label38" runat="server">数值16</asp:Label>
								<asp:TextBox id="Textbox34" runat="server" Width="90px"></asp:TextBox>	
										
								<br>
								<asp:Label ID="lblConfig" runat="server">图表配置: </asp:Label>
								<asp:Label id="Label34" runat="server">样式：</asp:Label>
                                                                <asp:DropDownList ID="ddlchartType" runat="server">
                                	<asp:ListItem Value="Pie">饼状图Pie</asp:ListItem>
                                	<asp:ListItem Value="Column">列状图Column</asp:ListItem>
                                	<asp:ListItem Value="Point">点图Point</asp:ListItem>
                                	<asp:ListItem Value="Line">线图Line</asp:ListItem>
                                	<asp:ListItem Value="Doughnut">筒图Doughnut</asp:ListItem>
                                	<asp:ListItem Value="StackedArea">区域图Area</asp:ListItem>
                                	<asp:ListItem Value="Bar">横条图Bar</asp:ListItem>
                                	<asp:ListItem Value="Bubble">球状图Bubble</asp:ListItem>
                                	<asp:ListItem Value="StackedColumn">列状图StackedColumn</asp:ListItem>
                                	<asp:ListItem Value="StackedBar">横条图StackedBar</asp:ListItem>
<%--                                	<asp:ListItem Value="StackedBar100">3D横条图StackedBar100%</asp:ListItem>
                                	<asp:ListItem Value="StackedColumn100">3D列状图StackedColumn100%</asp:ListItem>
                                	<asp:ListItem Value="StackedArea100">3D区域图StackedArea100%</asp:ListItem>
--%>                                </asp:DropDownList>

                                    
                                        
                                        <asp:Label ID="lblHeight" runat="server">图高</asp:Label>
                                        <asp:TextBox ID="tbxheight" runat="server" MaxLength="3" Width="40px" Text="480"></asp:TextBox>
                                        <asp:Label ID="lblWidth" runat="server">图宽</asp:Label>
                                        <asp:TextBox ID="tbxwidth" runat="server" MaxLength="3" Width="40px" Text="640"></asp:TextBox>
                                <asp:Button class="buttons" id="Button1" runat="server" Text="   生成图表>>>   " 
                                    onclick="Button1_Click"></asp:Button>
                                <asp:Button class="buttons" id="Button2" runat="server" Text="   查看历史图表   " 
                                                                    onclick="Button2_Click"></asp:Button>

							    <asp:Button class="buttons" ID="Button3" runat="server" onclick="Button3_Click" Text="清空" />
                                &nbsp;


                        </asp:panel></td>
				</tr>
			</table>
    </div>
    </form>
</body>
</html>
