<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Exam_QueListSort.aspx.cs" Inherits="RM.Web.Training.TrainingTest.Exam_QueListSort" %>

<!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 runat="server">
    <title><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Exam_bjsjtmsort")%></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.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 src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <style type="text/css">
    table tr,td{ padding:5px;}
    </style>
    <script type="text/javascript">
    //判断输入的顺序
        /*function yanzheng() {
            var num = 0;
            var errStr = "";
            $("tbody tr").each(function () {
                num++;
                if ($(this).find("td").eq(5).find("input").val() != undefined) {
                    var sortCode = $.trim($(this).find("td").eq(5).find("input").val());
                    if (sortCode.length == 0 || sortCode == null || sortCode == undefined) {
                        var a = "第" + mum + "题格式错误";
                        errStr += a;
                    } else {
                        reg = /^[-+]?\d+$/;
                        if (!reg.test(sortCode)) {
                            
                        } else {
                            var a = "第" + mum + "题格式错误";
                            errStr += a;
                        }
                    }
                }
            });            
            alert(errStr);
            return false;           
        }*/
    </script>
</head>
<body style="overflow:scroll;" >
 <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Exam_bjsjtmsort")%>
        </div>
    </div>
    
    <form id="form1" runat="server">    
    <div class="btnbarcontetn">    
    <div style="text-align: right; float: right;"><asp:Button ID="btn_Save" runat="server" Text="" onclick="btn_Save_Click" CssClass="button green"  /></div>
    <%--OnClientClick="return yanzheng();" --%>
    </div>

    <div>
        <asp:GridView ID="gv_ExamDetail" runat="server" CellPadding="3" AutoGenerateColumns="False"
    DataKeyNames="ExamDetail_Id" >
    <HeaderStyle BackColor="#EDEDED" />
    <Columns>
    <asp:TemplateField HeaderText="序号" InsertVisible="False">
              <ItemStyle HorizontalAlign="Center" />
              <HeaderStyle HorizontalAlign="Center" Width="5%" />
             <ItemTemplate>
                 <asp:Label ID="lbl_xuhao" runat="server" Text='<%# this.gv_ExamDetail.PageIndex * this.gv_ExamDetail.PageSize + this.gv_ExamDetail.Rows.Count + 1%>'/>
            </ItemTemplate>
            <HeaderStyle Width="60px" />
            </asp:TemplateField>
                  
       <asp:TemplateField HeaderText="题目编号">
       <ItemTemplate>
       <asp:TextBox ID="ExamDetail_Id" runat="server" Text='<%#Eval("ExamDetail_Id") %>' Enabled="False" Width="260"></asp:TextBox>
       </ItemTemplate>
       
       </asp:TemplateField>
      
      <asp:TemplateField HeaderText="题目">
        <ItemTemplate>          
            <asp:Label ID="Questions_Title" runat="server" 
                Text='<%# Eval("Questions_Title") %>'></asp:Label>
        </ItemTemplate>
      </asp:TemplateField>
      <asp:TemplateField HeaderText="题目分类">
        <ItemTemplate>          
            <asp:Label ID="QuestionTypes_Name" runat="server" 
                Text='<%# Eval("QuestionTypes_Name") %>'></asp:Label>
        </ItemTemplate>
          <HeaderStyle Width="80px" />
      </asp:TemplateField>
      <asp:TemplateField HeaderText="题目类型">
        <ItemTemplate>          
            <asp:Label ID="CoursewareType_CtName" runat="server" 
                Text='<%# Eval("CoursewareType_CtName") %>'></asp:Label>
        </ItemTemplate>
        <HeaderStyle Width="80px" />
      </asp:TemplateField>
         <asp:TemplateField HeaderText="题目顺序">
        <ItemTemplate>
          <asp:TextBox ID="ExamDetail_SortCode" runat="server" Width="70" Text='<%#Eval("ExamDetail_SortCode") %>'></asp:TextBox>
        </ItemTemplate>
      </asp:TemplateField>
    </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
