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


<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="Us.FrameWork.UsTools" Namespace="Us.FrameWork" TagPrefix="cc1" %>
<!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>
        <asp:Literal ID="LiteralTitle" runat="server"></asp:Literal>
    </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 type="text/javascript" src="/admin/js/jquery.freezeheader.js"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#gvInfo").freezeHeader();
        });
    </script>

    <script src="../js/SystemDragTable.js" type="text/javascript"></script>
    <script src="../js/SystemSortTable.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#topURLul").children().click(function () {
                $(this).siblings().removeClass().end().addClass("divURLed");
                $("#mypanel").children().css("display", "none");
                $("#d" + this.id).css("display", "");

                //alert(this.id);
            });
            $("#topURLul").children().hover(
              function () {
                  $(this).addClass("divURLon");
                  //akon(this);
              },
              function () {
                  if ($(this).attr("class") != "divURLed") {
                      $(this).removeClass("divURLon");
                  }
              }
            );





            $(".ResultsType").change(function () {
                var v = $(this).val();
                if (v != "0") {
                    $(this).parent().parent().parent().css('background-color', '#D4E7F0');
                }
                else {
                    $(this).parent().parent().parent().css('background-color', '#ffffff');
                }
            });

            $(".ResultsType").each(function () {
                $(this).change();
            });

            $(".fontblue").each(function () {
                var v = $(this).html();
                if (v != "在读") {
                    $(this).parent().css('background-color', '#EEEEEE');
                }
                else {
                    //$(this).parent().css('background-color', '#ffffff');
                }
            });
        });
    </script>

</head>
<body onload="win_onLoad();">
    <form id="Form1" method="post" runat="server">

        <div id="tbMain">
            <div class="divTbg">
                <div class="divTbgL">
                </div>
                <div class="divTbgInfo">
                    <div class="divTbgTitle">
                        <span class="WtableTBig">成绩排序</span>
                    </div>
                </div>
            </div>
            <div class="divTbgF">
            </div>
            <div class="divTNavBG" id="topURL">
                <ul id="topURLul">
                    <li class="divURLed" id="div1">
                        <div>
                            <img src="../style/green/images/mini_icons_046.gif" width="10" height="10" />
                            基本信息
                        </div>
                    </li>
                    <li id="div2">
                        <div>
                            <img src="../style/green/images/mini_icons_046.gif" width="10" height="10" />
                            成绩汇总表
                        </div>
                    </li>
                </ul>
            </div>
            <div id="mypanel">
                <div id="ddiv1">
                    <div class="divInfo">
                        <div class="divInfoblack">
                            <div class="divInfoTopList">
                                <div class="listLeft">
                                    <div class="navtitle">
                                        1.课程基本信息
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="divInfo">
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist">
                            <tr>
                                <td align="center" class="tablisttitle">开课编号
                                </td>
                                <td align="center" class="tablisttitle">课程名称
                                </td>
                                <td align="center" class="tablisttitle">开课院系
                                </td>
                                <td align="center" class="tablisttitle">开课班级
                                </td>
                                <td align="center" class="tablisttitle">开课学期
                                </td>
                                <td align="center" class="tablisttitle">开课教师
                                </td>
                                <td align="center" class="tablisttitle">课程学时
                                </td>
                                <td align="center" class="tablisttitle">课程学分
                                </td>
                            </tr>
                            <tr>
                                <td align="center" class="tabmanagertr">
                                    <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                                </td>
                                <td align="center" class="tabmanagertr">
                                    <asp:Literal ID="Literal2" runat="server"></asp:Literal>
                                </td>
                                <td align="center" class="tabmanagertr">
                                    <asp:Literal ID="Literal3" runat="server"></asp:Literal>
                                </td>
                                <td align="center" class="tabmanagertr">
                                    <asp:Literal ID="Literal4" runat="server"></asp:Literal>
                                </td>
                                <td align="center" class="tabmanagertr">
                                    <asp:Literal ID="Literal5" runat="server"></asp:Literal>
                                </td>
                                <td align="center" class="tabmanagertr">
                                    <asp:Literal ID="Literal6" runat="server"></asp:Literal>
                                </td>
                                <td align="center" class="tabmanagertr">
                                    <asp:Literal ID="Literal7" runat="server"></asp:Literal>
                                </td>
                                <td align="center" class="tabmanagertr">
                                    <asp:Literal ID="Literal8" runat="server"></asp:Literal>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div id="ddiv2">
                    <div class="divInfo">
                        <div class="divInfoblack">
                            <div class="divInfoTopList">
                                <div class="listLeft">
                                    <div class="navtitle">2.成绩显示信息</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="navstylelist">
                                            <asp:LinkButton ID="LnkBList" runat="server" OnClick="SkyLnkBAMD_Click">列表</asp:LinkButton>
                                        </li>
                                        <li class="navstylereport">
                                            <asp:LinkButton ID="LnkBReport" runat="server" OnClick="SkyLnkBAMD_Click">图表</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 style="font: 2px; line-height: 2px;">
                            &nbsp;
                        </div>
                        <asp:GridView ID="gvInfo" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                            CellPadding="0" CellSpacing="1" GridLines="None" Width="100%" CssClass="tablist"
                            HorizontalAlign="Center" OnRowDataBound="gvInfo_RowDataBound">
                            <RowStyle CssClass="tablisttr" HorizontalAlign="Center" />
                            <HeaderStyle HorizontalAlign="Center" CssClass="tablisttitle"></HeaderStyle>
                            <Columns>
                                <asp:BoundField DataField="id" HeaderText="序号" />
                                
                                <asp:BoundField HeaderText="学生学号" DataField="UserID" />
                                <asp:BoundField HeaderText="学生名称" DataField="UserName" />
                                <asp:BoundField HeaderText="状态" DataField="SStateName"  ItemStyle-CssClass="fontblue" />
                                <asp:BoundField HeaderText="平时成绩" DataField="ResultsPS" />
                                <asp:BoundField HeaderText="作业成绩" DataField="ResultsZY" />
                                <asp:BoundField HeaderText="期中成绩" DataField="ResultsQZ" />
                                <asp:BoundField HeaderText="期末成绩" DataField="ResultsQM" />
                                <asp:BoundField HeaderText="综合成绩" DataField="ResultsZH" />
                                <asp:TemplateField HeaderText="是否补考">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkIsMakeup" runat="server" Text="补考" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="补考成绩" DataField="ResultsMakeup" />
                                <asp:BoundField HeaderText="等级" DataField="ResultsZH" />
                                


                                 <asp:TemplateField HeaderText="成绩状态">
                                    <ItemTemplate>
                                       <div class="nodisplay">
                                        <asp:TextBox runat="server" ID="hidResultsType" Text='<%# Bind("ResultsType")%>' CssClass="ResultsType"/></div>
                                       <asp:Literal runat="server" ID="litResultsType"   Text='<%# Bind("ResultsTypeName")%>'></asp:Literal>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                  <asp:TemplateField AccessibleHeaderText="毕业成绩">
                                     <HeaderTemplate><%=sBKMCName%></HeaderTemplate>
                                    <ItemTemplate>
                                       <asp:Literal runat="server" Text='<%#Eval("ResultsGraduation") %>' Visible='<%#Eval("ResultsType").ToString()=="4"?true:false %>'></asp:Literal>
                                    </ItemTemplate>
                                    </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="序" InsertVisible="False">
                                    <ItemStyle HorizontalAlign="Center" />
                                    <HeaderStyle HorizontalAlign="Center" Width="3%" />
                                    <ItemTemplate>
                                        <%#Container.DataItemIndex+1%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                         <div class="divInfoContext">
                <cc1:UsChart ID="UsChart1" runat="server" Visible="false" ChartHeight="400px" />
            </div>
                    </div>
                    <div class="divInfoColor nodisplay">
                        
                                    <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>
            </div>
        </div>
        <asp:Literal ID="LiteralScript" runat="server" EnableViewState="False"></asp:Literal>

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