<%@ Page Language="C#" ValidateRequest="false" EnableEventValidation = "false" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_SJDepartMentTotal" Title="按部门统计试卷" Codebehind="KS.SJDepartMentTotal.aspx.cs" %>
<%@ Import Namespace="Kesion.Publics" %>
<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 class="menu_top_fixed_height"></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" width="100px">部门名称</th>
               <th scope="col" width="50px">导出</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">
              	<a href="?action=list&sjid=<%=sjId %>&departid=<%# Eval("部门ID") %>">  导出</a>
             </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>
         <br />
         <div style="display:none">
          	<KS:Page ID="Page1" runat="server" />
         </div>
     	<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>