<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeBehind="ShowCountData4.aspx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.Survey.ShowCountData4" Title="查看统计结果" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="server">
    <pe:ExtendedSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
    <table style="width: 100%; margin: 0 auto;" cellpadding="0" cellspacing="0">
        <tr>
            <td id="AdminTabs">
                <ul>
                    <!-- CSS Tabs -->
                    <li><a href='<%="ShowCountData.aspx?SurveyID="+m_SurveyId.ToString()+"&SurveyName="+m_SurveyName %>'>
                        <span>调查结果分析</span></a> </li>
                    <li><a href='<%="ShowCountData.aspx?ShowType=Chart&SurveyID="+m_SurveyId.ToString()+"&SurveyName="+m_SurveyName %>'>
                        <span>图表显示</span></a> </li>
                    <li><a href='<%="ShowCountData3.aspx?SurveyID="+m_SurveyId.ToString()+"&SurveyName="+m_SurveyName %>'><span>列表式查看</span></a></li>
                    <li><a href='<%="ShowCountData2.aspx?SurveyID="+m_SurveyId.ToString()+"&SurveyName="+m_SurveyName %>''><span>卡片式查看</span></a></li>
                    <li id="current"><a href='javascript:;'><span>表格式查看</span></a></li>
                    <li><a href='<%="QuestionDetail.aspx?SurveyID="+m_SurveyId.ToString()+"&SurveyName="+m_SurveyName %>'>
                        <span>查看问题的回答详情</span></a></li>
                </ul>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="server">
    <div style="overflow:auto">
    <pe:ExtendedGridView ID="EgvSurvey" runat="server" AllowPaging="True" 
        CheckBoxFieldHeaderWidth="3%" DataSourceID="OdsSurveryRecord" 
        IsHoldState="True" SerialText="" AutoGenerateColumns="False" 
        onrowdatabound="EgvSurvey_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="用户名">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" 
                        NavigateUrl='<%# "ShowCountData2.aspx?SurveyID="+ Eval("SurveyID").ToString() +"&SurveyName=" + m_SurveyName %>' 
                        Text='<%# Eval("UserName") %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="IP地址">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink2" runat="server" 
                        NavigateUrl='<%# "ShowCountData2.aspx?SurveyID="+ Eval("SurveyID").ToString() +"&SurveyName=" + m_SurveyName %>'
                        Text='<%# Eval("IP") %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="UserName" HeaderText="用户名称" NullDisplayText="匿名用户">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
        </Columns>
    </pe:ExtendedGridView>
    <br />
    </div>
    <asp:ObjectDataSource ID="OdsSurveryRecord" runat="server" EnablePaging="True" 
        MaximumRowsParameterName="maxNumberRows" SelectCountMethod="GetTotal" 
        SelectMethod="GetList" StartRowIndexParameterName="startRowIndexId" 
        TypeName="PowerEasy.Module.General.BusinessLogic.Survey.SurveyRecord">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="surveyId" 
                QueryStringField="SurveyID" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:Button ID="btnExport" runat="server" Text="导出Excel" OnClick="btnExport_Click" />
</asp:Content>
