<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="jbResult2.aspx.cs" Inherits="RM.Web.jiabi.jbResult2" %>
<%@ Register Src="~/UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>假币考试成绩</title>
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>    
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <link href="../Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/CreateContextJs.js" type="text/javascript"></script>
    <link href="/Themes/Scripts/artDialog/skins/opera.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.js" type="text/javascript"></script>
   

    <script type="text/javascript">

        var Mywindows = 'jb_Result';

        function ksjl() {
            var arrt = new Array();
            arrt = CheckboxValue().split(',');
            if (arrt.length == 1) {
                var key = arrt[0];
                if (IsEditdata(CheckboxValue())) {
                    var url = "/jiabi/ResultExam2.aspx?rid=" + key;
                    window.location = url;
                }
            } else {
                alert("请选择一条记录");
            }
        }

        //删除成绩
        function delksjl() {
            var arrt = CheckboxValue();
            if (arrt.split(',').length >= 1) {

                if (IsEditdata(CheckboxValue())) {
                    if (confirm("确定要删除选择项？")) {
                        $.get("/jiabi/jbResult2.aspx", { action: "del", key: arrt }, function (data) {
                            if (data > 0) {
                                location.reload();
                            } else {
                                alert(data + "删除失败！");
                            }
                        });
                    }
                }
            } else {
                alert("请选择一条记录");
            }
        }


    </script>

</head>
<body  style="overflow:scroll;" >
    <form id="form1" runat="server">

    <div class="btnbartitle">
        <div>
            假币考试成绩
        </div>
    </div>

    <div>

    <table>
    <tr>
        <td>　学员姓名 <input type="text" runat="server" id="txtuName" />　</td>
        <td>　
            <asp:Button ID="btn_query" runat="server" Text="查询" onclick="btn_query_Click"  CssClass="button"/> 
            <input type="button" class="button" value="导出Excel" onclick="javascript:TableExport('table1')" />　
            <input type="button" value="考试记录" onclick="ksjl()" class="button" />
            <input type="button" value="删除记录" onclick="delksjl()" class="button" />
        </td>
    </tr>
    </table>

    
     <table style="width:100%;" class="grid" id="table1">
      <thead >
    <tr><td style="width: 20px; text-align: left;">
                        <label id="checkAllOff" onclick="CheckAllLine()" title="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Quanxuan")%>">
                            &nbsp;</label>
                    </td>
                    <th style="text-align:center; ">序号</th>
                    <th style="text-align:center; ">学员成绩</th>
                    <th style="text-align:center; ">学员姓名</th>
                    <th style="text-align:center; ">学员帐号</th>
                    <th style="text-align:center; ">单位名称</th>
                    <th style="text-align:center; ">考试时间</th></tr>
    </thead>
  <tbody>
                <asp:Repeater ID="rp_Item" runat="server" OnItemDataBound="rp_ItemDataBound">
                    <ItemTemplate>
                        <tr>                        
                            <td style="width: 20px; text-align: left;">
                                <input type="checkbox" value="<%#Eval("Result_Id")%>" name="checkbox" />
                            </td>
                            <td style="width: 50px; text-align: center;">
                                <%# Container.ItemIndex+1 %>
                            </td>
                            <td  style="text-align:center;">
                                <%#Eval("Result_SumScore")%>
                            </td>
                            <td style="text-align:center;">
                                <%#Eval("Result_ToUserName")%>
                            </td>
                            <td style="text-align:center;">
                                <%#Eval("User_Account")%>
                            </td>
                            <td style="text-align:center;">
                                <%#Eval("name")%>
                            </td>
                            <td style="text-align:center;">
                                <%#Eval("Result_CreateDate")%>
                            </td>                           
                            
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <% if (rp_Item != null)
                           {
                               if (rp_Item.Items.Count == 0)
                               {
                                   Response.Write("<tr><td colspan='5' style='color:red;text-align:center'>" + RM.Common.DotNetConfig.LanguageHelper.GetKey("Null") + "</td></tr>");
                               }
                           } %>
                    </FooterTemplate>
                </asp:Repeater>
            </tbody>
            <tfoot>
    
            </tfoot>
    </table>
    <uc1:PageControl ID="PageControl1" runat="server" />
    

    </div>
    </form>
</body>
</html>
