<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Exame_fensu_import.aspx.cs" Inherits="RPWEB.Manage.Exame_fensu_import"  EnableEventValidation="false"%>
<%@ Register Assembly="Com.EEShou.Www.TreeControl" Namespace="Com.EEShou.Www.TreeControl"
    TagPrefix="tree" %>
<!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>
    <link href="../Web_CSS/WebCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JS/Jquery.js"></script>
    <script type="text/javascript" src="../JS/ManageWeb.js"></script>
    <script language="javascript" type="text/javascript">
// <!CDATA[

function check() {
var k=/\S+\.[xls]/;
if(!k.test(document.getElementById("fileId").value))
{
    alert("只能使用xls格式的文件");
    return false;
}
return true;
}

// ]]>
</script>


</head>
<body>
    <form id="form1" runat="server">
       <div class="div_All">
        <div class="Body_Title">
            <a href=exame_manage.aspx>考试管理</a> >><%=getExameName(htm_exame_id)%>成绩导入导出</div>
            


                <table cellpadding="3" cellspacing="1" class="Admin_Table">
                    <thead>
                        <tr class="Admin_Table_Title">
                            <th style="width: 20%;">
                               成绩Excel导入
                            </th>
                        </tr>
                    </thead>

                <tr>

                <td>
               
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    <br />
                    
                    <asp:FileUpload ID="fileId" runat="server" />
                    
                    <asp:Button ID="BtnAllAction2" runat="server" OnClientClick="return check()" onclick="Button2_Click" Text="导入" />
                    <asp:Label ID="Exameidtemp" runat="server" Text="Label" Visible="False"></asp:Label>
                    
                    <br />
                注意：导入前请注意Excel文件格式,标题不能带有空格。
                            <br />  
                            
                    本次考试的科目名称：
        <asp:Repeater ID="Repeater1" runat="server" 
           >
            <HeaderTemplate>

            </HeaderTemplate>
            <ItemTemplate>
            <%#Eval("SubjectName")%>
            </ItemTemplate>
        </asp:Repeater>
                            
                            
                            
                            
                            
                              <br />  
Excel表格格式一(以学号导入)：            

<table border="1" cellpadding="0" cellspacing="0">
  <tr>

    <td >学号</td>
    <td >姓名</td>
    <td >科目一</td>
    <td >科目二</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
  </tr>
    <tr>

    <td >2010001</td>
    <td >XXX</td>
    <td >88</td>
    <td >98</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
  </tr>
      <tr>

    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
  </tr>
</table> 

Excel表格格式二(以考号导入，请确保你已安排考生的考号)：            

<table border="1" cellpadding="0" cellspacing="0">
  <tr>

    <td >考号</td>
    <td >姓名</td>
    <td >科目一</td>
    <td >科目二</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
  </tr>
    <tr>

    <td >1</td>
    <td >XXX</td>
    <td >88</td>
    <td >98</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
  </tr>
      <tr>

    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
  </tr>
</table> 
            
                
                    </td>                </tr>

                </table>
    
                <tree:BackGround ID="backGround1" runat="server" />
            <tree:DialogBox ID="dBox" runat="server" OnOnSelect="dBox_OnSelect" />
            
            
                <table cellpadding="3" cellspacing="1" class="Admin_Table">
                    <thead>
                        <tr class="Admin_Table_Title">
                            <th style="width: 20%;">
                               成绩导出Excel
                            </th>
                        </tr>
                    </thead>
                            <tr>

                <td>

                    
             导出条件：
                <asp:CheckBox ID="CheckBox1" runat="server" Text="班级" Checked="True" />
                <asp:CheckBox ID="CheckBox2" runat="server" Text="学号" Checked="True" />
                    <asp:CheckBox ID="CheckBox3" runat="server" Text="考号" Checked="True" />
                     
<%--                    <asp:RadioButton ID="RadioButton1" runat="server" Text="按学号" GroupName="RadId" Checked=true
 />
                    <asp:RadioButton ID="RadioButton2" runat="server" Text="按考号" GroupName="RadId"
 />--%>
                    <br />
                    选择科目：
        <asp:Repeater ID="RpPowerUser" runat="server" 
           >
            <HeaderTemplate>

            </HeaderTemplate>
            <ItemTemplate>
            <input type="checkbox" value='<%#Eval("ID")%>' name="CheckMes" checked=checked /><%#Eval("SubjectName")%>





            </ItemTemplate>
        </asp:Repeater>
                    
                     <input id="BtnAllSelect" type="button" value="全选" /><asp:HiddenField ID="HSelectID" runat="server" Value="" />
            <asp:Button ID="BtnAllAction1" runat="server" onclick="Button1_Click" Text="学生成绩导出" /><br />
                                </td>                </tr>

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