<%@ Page Language="C#" ValidateRequest="false" EnableEventValidation = "false" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_SJUserGroupTotal" Title="按用户组统计试卷" Codebehind="KS.SJUserGroupTotal.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
         
         <asp:Repeater ID="list" runat="server" OnItemCommand="Repeater1_ItemCommand"  OnItemDataBound="Repeater1_ItemDataBound">
          <HeaderTemplate>

             <div id="manage_top">
         试卷名称：<%=dr["title"].ToString() %>试卷总分：<%=dr["score"].ToString() %>考试人数：<%=Kesion.NET.WebSite.Admin.Exam.Admin_SJTotal.GetEnterExamRS(sjId)%>人 考试次数：<%=Kesion.NET.WebSite.Admin.Exam.Admin_SJTotal.GetEnterExamNum(sjId)%></div>
		   <div style="height:60px;"></div>
           <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="CTable">
           <tr class="CTitle">
				<th scope="col" style="width:50px;">序号</th><th scope="col">部门名称</th>
				<th scope="col">
                <asp:LinkButton ID="用户组人数" ToolTip="点击按用户组人数排序" runat="server" Text="用户组人数" CommandName="用户组人数"></asp:LinkButton>  
                </th>
                <th scope="col">
                <asp:LinkButton ID="实考人数" ToolTip="点击实考人数排序" runat="server" Text="实考人数" CommandName="实考人数"></asp:LinkButton>  
                </th>
                <th scope="col">
                <asp:LinkButton ID="实考比率" ToolTip="点击实考比率排序" runat="server" Text="实考比率" CommandName="实考比率"></asp:LinkButton>  
                </th>
                <th scope="col">
                <asp:LinkButton ID="参考次数" ToolTip="点击按参考次数排序" runat="server" Text="参考次数" CommandName="参考次数"></asp:LinkButton>  
                </th>
                <th scope="col">
                <asp:LinkButton ID="平均得分人数" ToolTip="点击按平均得分人数排序" runat="server" Text="平均得分人数" CommandName="平均得分人数"></asp:LinkButton>  
                </th>
                <th scope="col">
                <asp:LinkButton ID="平均得分次数" ToolTip="点击按平均得分次数排序" runat="server" Text="平均得分次数" CommandName="平均得分次数"></asp:LinkButton>  
                </th>

                <th scope="col" >成绩段分布情况(次数)</th>
			</tr>
            
          </HeaderTemplate>
          <ItemTemplate>
            <tr onmouseover="this.className='CtrMouseOver'" onmouseout="this.className='CtrMouseOut'" onclick="chk(this)">
             <td class="Ctd" align="center"><%# Container.ItemIndex + 1 + (CurrPage - 1) * PageSize%></td>
             <td class="Ctd">
                 <%# Eval("用户组名称")%>
              </td>
             <td class="Ctd" align="center"><%# Eval("用户组人数")%> 位</td>
             <td class="Ctd" align="center"><font class='greenFont'><%# Eval("实考人数")%></font>人</td>
             <td class="Ctd" align="center"><font class='greenFont'><%# Eval("实考比率")%></font>%</td>
             <td class="Ctd" align="center"><font class='greenFont'><%# Eval("参考次数")%></font>次</td>
             <td class="Ctd" align="center">
                  <font class='redFont'><%# Eval("平均得分人数")%></font> 分
             </td>
             <td class="Ctd" align="center">
                  <font class='redFont'><%# Eval("平均得分次数")%></font>分
             </td>
              <td class="Ctd" align="center">
             <%# Eval("成绩段分布情况次数")%>
             </td>
            </tr>

          </ItemTemplate>
          <FooterTemplate>
               <tr style="display:<%# bool.Parse((list.Items.Count==0).ToString())?"":"none"%>">
                <td class="Ctd" style="text-align:center" colspan="6">
                 还没有添加任何部门,无法统计！
                </td>
               </tr> 
          </table>
          </FooterTemplate>
         </asp:Repeater>

         <div style="display:none">
          <KS:Page ID="Page1" runat="server" />
         </div>
         <br />
       
    	<input type="button" class="button" value="打印" onclick="window.print()" /> <asp:Button ID="BtnSubmit" Text="导出Excel" runat="server" CssClass="button" onclick="BtnSubmit_Click" /> <input type="button" class="button" value="关闭" onclick="top.box.close()" />
        <script type="text/javascript">
            showtips('<span class="state"><strong>操作说明：</strong><br /></span>点击表头名称可以实现排序查看。<br/>');
		</script>

   </asp:Content>