<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin.Exam.Admin_ZGSJTotal" Title= "成绩统计排名管理" Codebehind="KS.ZGSJTotal.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
   <!-- <KS:TopNav ID="TopNav1" runat="server" Text="成绩排名及分析统计" />-->
        
<style>
.categorynav{line-height:25px;width:97%;margin:0 auto;margin-bottom:10px;border:1px solid #DEEFFA;background-color:#F7FBFE;padding:5px 0px 5px 10px; height:100%; overflow:hidden;}
ul,li{padding:0px;margin:0px}
.categorynav li{width:160px;float:left;}
</style>
<div class="content-area mt20">
    <div class="myTitle">
         成绩统计排名 
    <!--当前位置：<asp:Label ID="LabNav" runat="server"></asp:Label>-->
    </div>
    <div class="quickSearch clearfix">
        <div class="quickSelect">
            <asp:DropDownList ID="DrpClassID" runat="server" onchange="location.href='?classid='+this.value;" style="width:130px;margin-right:8px;">
                <asp:ListItem Value="0">--按分类查看--</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox runat="server" ID="TxtKeyWord" CssClass="textbox" /> 
            <asp:Button ID="BtnSearch" runat="server" CssClass="button" Text="开始搜索" onclick="BtnSearch_Click"  />
        </div>
        <div class="property">
            <div class="name button">筛选</div>
            <div class="propertyBox">
                <ul class="tabs">
                    <span class="screen fl">统计类型：</span>
                    <li><a href="KS.SJTotal.aspx">模拟试卷统计</a></li>
                    <li class="active"><a href="KS.ZGSJTotal.aspx">正规试卷统计</a></li>
                </ul>
            </div>
        </div>
    </div>      
    <KS:ksgv id="list" cssclass="CTable" runat="server" AutoGenerateColumns="False" 
                EmptyDataText="没有可批改的试卷!" PagerType="CustomNumeric" Width="99%" 
                HorizontalAlign="Center" GridLines="None" OnRowCommand="List_RowCommand" 
                OnRowCreated="List_RowCreated" onrowdatabound="list_RowDataBound">
        <Columns>

            <asp:BoundField HeaderText="试卷ID" DataField="ID" >
                <itemstyle horizontalalign="Center" />
            </asp:BoundField>
            
            <asp:TemplateField HeaderText="试卷名称">
                <itemtemplate><a href="<%# Kesion.HtmlTags.BasicField.GetRewriteUrl("examview",Convert.ToInt32(Eval("id").ToString())) %>" target="_blank"><span class="doc_1"></span></a>
                <%# Utils.CutStr(Convert.ToString(Eval("title")),40) %>
               <div class="tips" style="padding-left:6px">试卷分类：<%# MyCache.GetCacheSJCategory(Convert.ToInt32(Eval("classid")),1) %> 试卷总分：<%# Eval("score") %>分 考试时间：<%# Eval("KSSJ") %>分钟</div>
                </itemtemplate>
            </asp:TemplateField>
           
            
            <asp:TemplateField HeaderText="参加人数">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
               <span style='color:green'><%# GetEnterExamNum(Convert.ToInt16(Eval("id"))) %></span> 人
                </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="已批改试卷">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
                <span style='color:Red'><%# GetExamPGNum(Convert.ToInt16(Eval("id"))) %></span> 份
                </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="平均得分">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
                <span style=" font-size:14px;"><font style='color:brown'><%# GetAgvScore(Convert.ToInt16(Eval("id")))%></font> 分</span>
                </itemtemplate>
            </asp:TemplateField>


             <asp:TemplateField HeaderText="按部门排名统计">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
                  <a href="#" onclick="parent.openWin('按部门查看试卷[<%# Eval("Title") %>]考试排名统计','Exam/KS.SJDepartMentTotal.aspx?isgz=1&sjID=<%# Eval("id") %>&rnd='+Math.random() ,false,860,460);return false;">查看</a>
                </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="按用户组排名统计">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
                 <a href="#" onclick="parent.openWin('按用户组查看试卷[<%# Eval("Title") %>]考试排名统计','Exam/KS.SJUserGroupTotal.aspx??isgz=1&sjID=<%# Eval("id") %>&rnd='+Math.random() ,false,860,460);return false;">查看</a>
                </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="按用户排名统计">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
             <a href="KS.ZGSJTotalItem.Aspx?sjid=<%#Eval("id") %>">查看</a>
                </itemtemplate>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="按知识点分析">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
                <%# Eval("Dtfs").ToString() == "2" ? "<span class='tips'>---</span>" : @"<a href='KS.SJKnowledgeAnalysis.aspx?sjID=" + Eval("id") + @"'>查看</a>"%>
                </itemtemplate>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="卷面分析">
                <itemstyle horizontalalign="Center" />
             <itemtemplate>
            
              <%# Eval("Dtfs").ToString() == "2" ? "<span class='tips'>---</span>" : "<a href='KS.SJPaperAnalysis.Aspx?sjid=" + Eval("id") + "'>查看</a>"%>
           </itemtemplate>

           
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="CTitle" />
        <EmptyDataRowStyle CssClass="emptycss" />
    </KS:ksgv>
    
       <KS:Page ID="Page1" runat="server" />
       		<div class="listedit">
                <input type="button" class="button" value="打印" onclick="window.print()" />
                <asp:Button ID="BtnSubmit" Text="导出Excel" runat="server" CssClass="button" onclick="BtnSubmit_Click" />
            </div>
            <script type="text/javascript">
                showtips('<span class="state"><strong>操作说明：</strong><br /></span>1、前台随机组卷的试卷不支持知识点分析及卷面分析。<br/>2、平均得分=取每个用户分数的总和/总参加人数');
		</script>
	</div>        
</asp:Content>
