<%@ Page Language="C#" AutoEventWireup="true" Inherits="PowerEasy.Module.General.WebSite.Admin.Survey.SurveyReport"
    CodeBehind="SurveyReport.aspx.cs" %>

<!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 language="javascript" type="text/javascript">
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellpadding="2" cellspacing="1">
            <tr>
                <td align="center">
                    <br />
                    <%--<asp:Literal ID="LtrTitle" runat="server"></asp:Literal>--%>
                    <asp:Label ID="LblTitle" runat="server" Font-Size="Larger"></asp:Label>
                </td>
            </tr>
        </table>
        <br />
        <table width="100%" border="0" class="border" cellpadding="2" cellspacing="1">
            <tr class="tdbgleft">
                <td style="width: 10%">
                    问卷名：
                </td>
                <td style="width: 90%">
                    <asp:Label ID="LblSurveyName" runat="server" Text="Lbl" Font-Size="Larger"></asp:Label>
                </td>
            </tr>
            <tr class="tdbgleft">
                <td style="width: 10%">
                    问卷说明：
                </td>
                <td style="width: 90%">
                    <asp:Label ID="LblDescription" runat="server" Text="Lbl" Font-Size="Larger"></asp:Label>
                </td>
            </tr>
            <tr class="tdbgleft">
                <td style="width: 10%">
                    创建日期/结束日期：
                </td>
                <td style="width: 90%">
                    <asp:Label ID="LblDate" runat="server" Text="Lbl" Font-Size="Larger"></asp:Label>
                </td>
            </tr>
            <tr class="tdbgleft">
                <td style="width: 10%">
                    问卷记录数：
                </td>
                <td style="width: 90%">
                    <asp:Label ID="LblSurveyNumber" runat="server" Text="Lbl" Font-Size="Larger"></asp:Label>
                </td>
            </tr>
            <tr class="tdbgleft">
                <td style="width: 10%">
                    问卷题目：
                </td>
                <td style="width: 90%">
                    <asp:Repeater ID="RptSurveyQuestion" runat="server" OnItemDataBound="RptSurveyQuestion_ItemDataBound"
                        DataSourceID="OdsSurveyQuestion" >
                        <ItemTemplate>
                            <br />
                            <asp:Label ID="LblQuestion" runat="server" Text="Label"></asp:Label><br />
                            <asp:Label ID="LblOptions" runat="server" Text="Label"></asp:Label>
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:ObjectDataSource ID="OdsSurveyQuestion" runat="server" SelectMethod="GetFieldList"
                        TypeName="PowerEasy.Module.General.BusinessLogic.Survey.SurveyField">
                        <SelectParameters>
                            <asp:QueryStringParameter DefaultValue="0" Name="surveyId" QueryStringField="SurveyID"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </td>
            </tr>
            <tr class="tdbgleft">
                <td style="width: 10%">
                    数据统计：
                </td>
                <td style="width: 90%">
                    <table width="100%" class="border" id="TabStyle" runat='server'>
                        <tr class="tdbgleft">
                            <td>
                                图表背景颜色：
                            </td>
                            <td>
                                <asp:DropDownList ID="dlstBackColor" runat="server" AutoPostBack="true" Width="100">
                                    <asp:ListItem Text="默认" Value="" />
                                    <asp:ListItem Text="淡蓝" Value="#6699FF" />
                                    <asp:ListItem Text="土黄" Value="#F3DFC1" />
                                    <asp:ListItem Text="紫色" Value="#9966FF " />
                                    <asp:ListItem Text="橘红" Value="#FF6633" />
                                    <asp:ListItem Text="淡绿" Value="#CCFF99 " />
                                    <asp:ListItem Text="棕色" Value="#996F00" />
                                    <asp:ListItem Text="白色" Value="#FFFFFF" />
                                    <asp:ListItem Text="灰色" Value="#C0C0C0" />
                                </asp:DropDownList>
                            </td>
                            <td>
                                XY轴显示类型：
                            </td>
                            <td>
                                <asp:DropDownList ID="dlstXYType" runat="server" AutoPostBack="true" Width="100">
                                    <asp:ListItem Text="无" Value="None" />
                                    <asp:ListItem Text="线形" Value="Lines"></asp:ListItem>
                                    <asp:ListItem Text="箭头" Value="SharpTriangle" />
                                    <asp:ListItem Text="三角" Value="Triangle" />
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="tdbgleft">
                            <td>
                                图表内容背景色：
                            </td>
                            <td>
                                <asp:DropDownList ID="dlstSeriesColor" runat="server" AutoPostBack="true" Width="100">
                                    <asp:ListItem Text="默认" Value="#33aaFF" />
                                    <asp:ListItem Text="蓝色" Value="#0044FF" />
                                    <asp:ListItem Text="橙色" Value="#FF6600" />
                                    <asp:ListItem Text="褐色" Value="#CC6633" />
                                    <asp:ListItem Text="菊黄" Value="#FFCC00" />
                                    <asp:ListItem Text="粉红" Value="#FF99CC" />
                                    <asp:ListItem Text="绿色" Value="#99FF33" />
                                    <asp:ListItem Text="紫色" Value="#CC33FF" />
                                </asp:DropDownList>
                            </td>
                            <td>
                                坐标轴颜色：
                            </td>
                            <td>
                                <asp:DropDownList ID="dlstAxisColor" runat="server" AutoPostBack="true" Width="100">
                                    <asp:ListItem Text="默认" Value="#000000" />
                                    <asp:ListItem Text="蓝色" Value="#0044FF" />
                                    <asp:ListItem Text="橙色" Value="#FF6600" />
                                    <asp:ListItem Text="褐色" Value="#CC6633" />
                                    <asp:ListItem Text="菊黄" Value="#FFCC00" />
                                    <asp:ListItem Text="粉红" Value="#FF99CC" />
                                    <asp:ListItem Text="绿色" Value="#99FF33" />
                                    <asp:ListItem Text="紫色" Value="#CC33FF" />
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="tdbgleft">
                            <td>
                                背景渐变类型：
                            </td>
                            <td>
                                <asp:DropDownList ID="dlstBackGradientStyle" runat="server" AutoPostBack="true" Width="100">
                                    <asp:ListItem Text="从上至下" Value="TopBottom" />
                                    <asp:ListItem Text="无" Value="None" />
                                    <asp:ListItem Text="从左至右" Value="LeftRight" />
                                    <asp:ListItem Text="从左上至右下" Value="DiagonalLeft" />
                                    <asp:ListItem Text="从右上至左下" Value="DiagonalRight" />
                                    <asp:ListItem Text="从左右至中间" Value="VerticalCenter" />
                                    <asp:ListItem Text="从上下至中间" Value="HorizontalCenter" />
                                    <asp:ListItem Text="从中间至边缘" Value="Center" />
                                </asp:DropDownList>
                            </td>
                            <td>
                                三维显示：
                            </td>
                            <td>
                                <asp:CheckBox runat="server" Checked="false" AutoPostBack="true" ID="Chk3D" />
                            </td>
                        </tr>
                        <tr class="tdbgleft">
                            <td>
                                图表类型：
                            </td>
                            <td>
                                <asp:DropDownList runat="server" ID="LisChartType" AutoPostBack="True" Width="100">
                                    <asp:ListItem Value="Column" Text="柱状图" />
                                    <asp:ListItem Value="Line" Text="折线图" />
                                    <asp:ListItem Value="Spline" Text="曲线图" />
                                    <asp:ListItem Value="Point" Text="点状图" />
                                    <asp:ListItem Value="Bar" Text="条形图" />
                                    <asp:ListItem Value="Area" Text="区域图" />
                                    <asp:ListItem Value="Pie" Text="饼图" />
                                    <asp:ListItem Value="Pyramid" Text="金字塔图" />
                                </asp:DropDownList>
                            </td>
                            <td>
                                图表大小：
                            </td>
                            <td>
                                宽<asp:TextBox ID="txtWidth" Width="30" MaxLength="4" runat="server"></asp:TextBox>&nbsp;高<asp:TextBox  MaxLength="4" ID="txtHight" Width="30"
                                    runat="server"></asp:TextBox><asp:Button ID="btnSetSize" runat="server" Text="设置大小" />
                            </td>
                        </tr>
                    </table>
                    <asp:Repeater ID="RptSurveyVote" runat="server" DataSourceID="OdsQuestionContent"
                        OnItemDataBound="RptSurveyVote_ItemDataBound">
                        <ItemTemplate>
                            <asp:Label ID="LblQuestionContent" runat="server" Text="LblQuestionContent" />
                            <asp:HyperLink ID="LnkListAnswer" runat="server"></asp:HyperLink><br />
                            <asp:PlaceHolder ID="PlhQuestion" runat="server" />
                            <br />
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:ObjectDataSource ID="OdsQuestionContent" runat="server" SelectMethod="GetFieldList"
                        TypeName="PowerEasy.Module.General.BusinessLogic.Survey.SurveyField">
                        <SelectParameters>
                            <asp:QueryStringParameter Type="Int32" DefaultValue="0" Name="surveyId" QueryStringField="SurveyID">
                            </asp:QueryStringParameter>
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </td>
            </tr>
        </table>
        <br />
        <table width="100%" border="0" cellpadding="2" cellspacing="1">
            <tr class="tdbgleft">
                <td align="center" style="height: 24px">
                    <pe:ExtendedButton IsChecked="true" OperateCode="SurveyResultPreview" ID="BtnReport"
                        runat="server" Text="打 印… " UseSubmitBehavior="False"  />&nbsp;
                </td>
            </tr>
        </table>
    </div>
    </form>
<asp:chart runat="server" ID="Chart1" Visible="false"></asp:chart>
</body>
</html>
