<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_SJZGScore" Title="考生成绩管理" Codebehind="KS.SJZGScore.aspx.cs" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
    <asp:Panel ID="ListPanel" runat="server" Width="100%">
	<KS:TopNav ID="Top1" runat="server" Text="考试成绩管理" />
	<div class="content-area">
        <div class="myTitle">
           考试成绩管理
        	 <div class="quickSearch">            
                快速搜索：
                <asp:DropDownList ID="DrpGroupId" runat="server">
                    <asp:ListItem Value="0">-用户组不限制-</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="DrpDepartId" runat="server">
                    <asp:ListItem Value="0">-部门不限制-</asp:ListItem>
                </asp:DropDownList>
                        
                <asp:DropDownList ID="DrpType" runat="server">
                <asp:ListItem Value="0">试卷名称</asp:ListItem>
                <asp:ListItem Value="1">考试者</asp:ListItem>
                </asp:DropDownList> 关键字：<asp:TextBox CssClass="textbox" ID="TxtKeyWord" runat="server"></asp:TextBox>&nbsp;<asp:Button ID="Button1"
                        runat="server" Text=" 搜索 "  CssClass="button" onclick="Button1_Click"/>
        </div>
    </div>    
       
 <div class="tabs_header">
    <ul class="tabs">
    <li<%=KSCMS.S("showType")==""?" class='active'":string.Empty %>>
        <a href='KS.SJScore.Aspx?iszg=<%=Utils.StrToInt(KSCMS.S("iszg")) %>'><span>所有记录</span></a></li>
    <li<%=KSCMS.S("showType")=="0"?" class='active'":string.Empty %>>
        <a 
            href='KS.SJScore.Aspx?showType=0&amp;iszg=<%=Utils.StrToInt(KSCMS.S("iszg")) %>'><span>已做完的记录</span></a></li>
    <li<%=KSCMS.S("showType")=="1"?" class='active'":string.Empty %>>
        <a 
            href='KS.SJScore.Aspx?showType=1&amp;iszg=<%=Utils.StrToInt(KSCMS.S("iszg")) %>'><span>未做完的记录</span></a></li>
    </ul>
</div>

    <KS:ksgv id="List" cssclass="CTable" runat="server" AutoGenerateColumns="False" EmptyDataText="没有考试成绩记录!" PagerType="CustomNumeric" Width="99%"  GridLines="None" OnRowDataBound="List_RowDataBound" OnRowCommand="List_RowCommand" OnRowCreated="List_RowCreated">
        <Columns>
         <asp:TemplateField HeaderText="选择">
                <itemstyle horizontalalign="Center" width="30px" />
                <itemtemplate>
                <input type="checkbox"  name="ids" id="ids" value="<%#Eval("scoreid") %>" />
                </itemtemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="ID" DataField="ScoreID" Visible="false" >
                <itemstyle width="40px" horizontalalign="Center" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="试卷名称">
                <itemtemplate><a href="../../<%=MyCache.GetSJCacheConfig(1) %>/view.aspx?id=<%# Eval("id") %>" target="_blank"><span class="doc_1"></span></a>
                <%# Utils.CutStr(Convert.ToString(Eval("title")),40) %>
                 <%# Convert.ToString(Eval("istj"))=="1"?"<span style='color:red'><i>未完成</i></span><br/><div style='color:#888;padding-left:20px;'>总时间："+Eval("totaltime")+" 分钟 已用时间："+ Convert.ToString(Eval("hasusetime")).Replace(":","分钟")+"秒</div>":""%>
                </itemtemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="测试者" DataField="UserName" >
                <itemstyle horizontalalign="Center" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="得分">
                <itemstyle  horizontalalign="Center" />
                <itemtemplate>
                <font color=red><%# Convert.ToString(Eval("score"))%></font> 分
                </itemtemplate>
            </asp:TemplateField>
           <asp:BoundField HeaderText="考试时间" DataField="AddDate" >
                <itemstyle  horizontalalign="Center" />
            </asp:BoundField>

            
            <asp:TemplateField HeaderText="↓管理操作">
                <itemstyle Width="150px" horizontalalign="Center" />
             <itemtemplate>
             
             <a <%# Convert.ToString(Eval("istj"))=="1"?" disabled":""%> href='../../<%=MyCache.GetSJCacheConfig(1) %>/explained.aspx?scoreid=<%# Eval("ScoreID") %>' target="_blank" Class='link-color'>查看</a>
             <asp:LinkButton runat="server" id="delete" commandargument=<%#Eval("scoreid") %> commandname="del" CssClass="link-color">删除</asp:LinkButton>
            
</itemtemplate>
           
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="CTitle" />
        <EmptyDataRowStyle CssClass="emptycss" />
    </KS:ksgv>
    
    <asp:Panel ID="Panel2" runat="server" Height="30px">
          <div style="margin-top:8px"></div>
            &nbsp;&nbsp;<input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);"/><label for="chkall">全部选中</label>
            
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="删除记录" onmouseover="this.className='button_on';" onmouseout="this.className='button';" class="button" onclick="if (GetIDS('del')){this.form.action='?action=del';this.form.submit()}" />
             &nbsp;<asp:Button ID="BtnSubmit" Text="导出Excel" runat="server" CssClass="button" onclick="BtnSubmit_Click" />
           <input type="button" class="button" value="打印" onclick="window.print()" />
      </asp:Panel>
    
     <KS:Page ID="Page1" runat="server" />
                <asp:Panel ID="Panel1" runat="server" Height="30px" Width="100%">
                <br />
        <script type="text/javascript">
		showtips(' <span class="state"><strong>操作说明：</strong><br /></span>所有试卷的考试记录管理，如果限制了考生考试次数，这里的记录不能删除，否则限制次数无效。');
		</script>

            </asp:Panel>
</asp:Panel>

</div>
</asp:Content>
