<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="classscorecourselist.aspx.cs" Inherits="Us.Web.admin.elective.classscorecourselist" %>



<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>学生选修课程成绩管理</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
<%=ImportScriptStr %>
    

    <script language="javascript" src="/admin/js/System.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function Zelective(id) {
            var sInfo = "您确实要将选择的课程转化为正选课程吗？请注意转化后，课程不可以在进行修改，人员也不可以进行变动！";
            return confirm(sInfo);
        }
        function Qelective(id) {
            var sInfo = "您确实要将选择的课程取消吗？请注意取消后，选择该课程的全部记录都将清除，需要学生重新选择！您也需要手动删除该选课记录！";
            return confirm(sInfo);
        }
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="divTbg">
        <div class="divTbgL">
        </div>
        <div class="divTbgInfo">
            <div class="divTbgTitle">
                学生选修课程成绩管理</div>
        </div>
    </div>
    <div class="divTbgF">
    </div>
    <div class="divSearchBoth">
        <div class="divInfo">
            <div class="divInfoblack">
                <div class="divInfoTopList">
                    <div class="listLeft">
                        <div class="navsearchtitle">
                            学生选课搜索</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="divInfo">
            <div class="divSearch">
                <div id="searchBox" class="clearsearch">
                   
                     <p>
                        <label for="drpSkyTID">
                            选课学期：</label>
                        <asp:DropDownList runat="server" ID="drpSkyTID" Enabled="false" >
                            
                        </asp:DropDownList>
                    </p>
                    <p>
                    <label for="txtCourseName">
                            课程名称：</label>
                        <asp:TextBox runat="server" ID="txtCourseName"></asp:TextBox>
                    </p>
                    <p>
                    <label for="txtDepartMent">
                            院系名称：</label>
                        <asp:TextBox runat="server" ID="txtDepartMent"></asp:TextBox>
                    </p>
                     <p class=" nodisplay">
                    <label for="txtUserName">
                            教师名称：</label>
                        <asp:TextBox runat="server" ID="txtUserName"></asp:TextBox>
                    </p>
                   
                    
                     
                    
                    <p id="searchSubmit">
                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="确认搜索" CssClass="SkyButtonFocus" />
                    </p>
                </div>
            </div>
        </div>
    </div>
    <div class="divInfo">
        <div class="divInfoblack">
            <div class="divInfoTopList">
                <div class="listLeft">
                    <div class="navtitle">
                        选修课程列表</div>
                </div>
                <div class="listRight">
                    <ul>
                        <li class="navstyle1">
                            <input type="checkbox" name="chkselect" id="chkselect" onclick="skySelectCheckList();" />
                            <label for="chkselect">
                                全选</label>
                        </li>
                        <li class="navstyle2">
                            <asp:LinkButton ID="LnkBAdd" runat="server" OnClick="SkyLnkBAMD_Click" Enabled="false">添加</asp:LinkButton>
                        </li>
                        <li class="navstyle3">
                            <asp:LinkButton ID="LnkBEdit" runat="server" OnClick="SkyLnkBAMD_Click" Enabled="false">编辑</asp:LinkButton>
                        </li>
                        <li class="navstyle4">
                            <asp:LinkButton ID="LnkBDelete" runat="server" OnClick="SkyLnkBAMD_Click" Enabled="false">删除</asp:LinkButton>
                        </li>
                        <li class="navstyle5">
                            <asp:LinkButton ID="LnkBExcel" runat="server" OnClick="SkyLnkBAMD_Click">导出</asp:LinkButton>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="divInfo">
        <div class="divInfoContext">
            <div id="printInfo">
                <asp:Repeater ID="rptInfo" runat="server" onitemcommand="rptInfo_ItemCommand">
                    <HeaderTemplate>
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist">
                            <tr class="tablisttitle">
                                <td>
                                    序号
                                </td>
                                <td>
                                    <%=cHTMLFx%>
                                    
                                </td>
                               
                                <td align="center">
                                    学期名称
                                </td>
                                <td align="center">
                                    课程编号
                                </td>
                                <td align="center">
                                    课程名称
                                </td>
                                
                                <td align="center">
                                    开课节数
                                </td>
                                <td align="center">
                                    教师所属院系
                                </td>
                                <td align="center">
                                    授课教师
                                </td>
                                <td align="center">
                                    开课校区
                                </td>
                                <td align="center">
                                    开课教室
                                </td>
                                
                                
                                
                                <td align="center">
                                    人数数量限制
                                </td>
                                <td align="center">
                                    已选人数
                                </td>
                                <td align="center">
                                    选课状态
                                </td>
                                <td align="center">
                                    查看
                                </td>
                               
                                <td align="center">
                                    操作
                                </td>
                              
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="tablisttr">
                            <td>
                                <%#Eval("ID") %>
                            </td>
                            <td>
                                <asp:CheckBox runat="server" ID="chkselect" ToolTip='<%#Eval("ID") %>'/>
                                <asp:HiddenField  runat="server" ID="hidCourseName" Value='<%#Eval("CourseName") %>'/>
                            </td>
                         
                            <td align="center">
                                <%#Eval("SkyTName")%>
                            </td>
                          
                            <td align="center">
                                <%#Eval("CourseID")%>


                            </td>
                            <td align="center">
                                <%#Eval("CourseName")%>
                            </td>
                            
                            <td align="center">
                                <%#Eval("Festival")%>
                            </td>
                            <td align="center">
                                <%#Eval("SkyDName")%>
                            </td>
                            <td align="center">
                                <%#Eval("UserName")%>
                            </td>
                            <td align="center">
                                <%#Eval("SkySAName")%>
                            </td>
                            
                            <td align="center">
                                <%#Eval("RoomName")%>
                            </td>
                            
                            <td align="center">
                                <%#Eval("CourseSmallNum")%>人  - <%#Eval("CourseBiglNum")%>人
                            </td>
                            
                            <td align="center">
                          <%--  <a  href="javascript:void(0);" onclick="window.location.href='electivestudentlistmanage.aspx?id=<%#Eval("SkyDepartCourseID")%>'" class="rptlink">
                                 <span class="fontblue">
                                <%#Eval("ACount")%>人</span></a>--%>


                                 <%#UsToolArtUrl("/admin/elective/electivestudentlistmanage.aspx" +"?id="+Eval("SkyDepartCourseID").ToString(), "["+Eval("ACount").ToString()+"人]",pDefault.sSize)%>
                            </td>
                            <td align="center"> <span class="fontblue">
                                <%#Eval("CStateName")%></span>
                            </td>
                            <td align="center">
                                <%#UsToolArtUrl("/admin/elective/electivetermmanageview.aspx" + "?id=" + Eval("SkyDepartCourseID").ToString(), "[查看]",pDefault.sSize)%>
                            </td>
                            
                           


                            <td align="center">
                                 

                                <asp:LinkButton ID="lnkDMC"  CssClass="rptlink" CommandName='3' runat="server" CommandArgument='<%#Eval("SkyDepartCourseID")%>'> 
                                [点名册]
                                </asp:LinkButton>
                               <div style='display:<%#Eval("IsEDIT").ToString()=="0"?"":"none"%>'>
                               <div style='display:<%#Eval("CStateName").ToString()=="正选"?"":"none"%>'>
                                 <%#UsToolArtUrl("/admin/elective/classscoreinput.aspx" +"?id="+Eval("id").ToString(), "[成绩管理]",pDefault.sSize)%>
                               </div></div>
                            </td>
                           
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
        </div>
    </div>
    <div class="divInfoColor">
                    <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" OnPageChanged="Pager_PageChanged"
                        ShowCustomInfoSection="Left" ShowPageIndexBox="Always" ShowPageIndex="False"
                        CustomInfoHTML="共 <B>%PageCount%</B> 页，当前为第 <B>%CurrentPageIndex%</B> 页，每页 <B>%PageSize%</B> 条"
                        SubmitButtonText="" FirstPageText="首页" LastPageText="尾页" LayoutType="Table" NextPageText="后一页"
                        PrevPageText="前一页" ShowMoreButtons="False" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到"
                        CustomInfoTextAlign="Left" HorizontalAlign="Right">
                    </webdiyer:AspNetPager>
    </div>
    
   <div class="divInfo">
        <span class="usHelpMessage"> * 注意事项： 您需要在系统允许的时间内录入成绩信息，也可以随时导出学生点名册！</span>  
                                
                                
    </div>

    
    <div class="divFootInfo">
    </div>
    </form>
</body>
</html>
