<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="scorereinput.aspx.cs" Inherits="School_Web.admin.score.scorereinput" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ 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 id="Head1" runat="server">
    <title>补考成绩查询</title>

    <script language="javascript" src="/admin/js/SystemPage.js" type="text/jscript"></script>

    <script type="text/javascript" src="/admin/style/jquery/jquery.js"></script>

    <link href="../style/green/skin.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
           chkState();
        });
        function chkState()
        {
            $(":checkbox").click( function () { 
                
                var chkid=$(this).attr("id");
                if(chkid=="checkSelect")
                {
                    return ;
                }
                if(chkid=="chkSelect")
                {
                    
                }
                chkid=chkid.replace("chkIsMakeup","txtResultsMakeup");
                
                var b=$(this).attr("checked");
                if(b)
                {
                    $("#"+chkid).attr("readonly","");
                    $("#"+chkid).removeClass("skyInputNormal").addClass("skyInputRed");
                }
                else
                {
                     $("#"+chkid).attr("readonly","readonly");
                     $("#"+chkid).val("0");
                     $("#"+chkid).removeClass("skyInputRed").addClass("skyInputNormal");
                }
                
             });
        }
        
    </script>
    <script language="javascript" src="/admin/js/SystemScoreInput.js" type="text/jscript"></script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
            <asp:PostBackTrigger ControlID="LnkBExcel" />
        </Triggers>
        <ContentTemplate>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <div id="divLoading">
                <img src="/admin/images/loading.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <div class="divTbg">
        <div class="divTbgL">
        </div>
        <div class="divTbgInfo">
            <div class="divTbgTitle">
                补考成绩查询</div>
        </div>
    </div>
    <div class="divTbgF">
    </div>
    <div class="divInfo">
        <div class="divInfoTop">
            <div class="listLeft">
                <ul>
                    <li>
                        <div>
                            <img src="../style/green/images/search.gif" /></div>
                    </li>
                    <li>条件选择</li>
                </ul>
            </div>
        </div>
        <div class="divInfoContext">
            <table width="100%" border="0" cellpadding="0" cellspacing="1" class="SkyTableLine">
                <tr>
                    <td width="100" align="center" class="SkyTDTitle">
                        课程选择
                    </td>
                    <td class="SkyTDInfo">
                        <div id="searchBox" class="clearsearch">
                                    <p>
                                        <label for="drpSkyTID">
                                            开课学期：</label>
                                        <asp:DropDownList ID="drpSkyTID" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpSkyTID_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </p>
                                    <p>
                                        <label for="drpSkyDID">
                                            开课院系：</label><asp:DropDownList ID="drpSkyDID" runat="server" AutoPostBack="True"
                                                OnSelectedIndexChanged="drpSkyDID_SelectedIndexChanged">
                                            </asp:DropDownList>
                                    </p>
                                    <p>
                                        <label for="drpSkyPID">
                                            开课专业：</label><asp:DropDownList ID="drpSkyPID" runat="server" AutoPostBack="True"
                                                OnSelectedIndexChanged="drpSkyPID_SelectedIndexChanged">
                                            </asp:DropDownList>
                                    </p>
                                    <p>
                                        <label for="drpSkyCID">
                                            开课班级：</label>
                                        <asp:DropDownList ID="drpSkyCID" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpSkyCID_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </p>
                                    <p>
                                        <label for="drpSkyCourseID">
                                            课程名称：</label><asp:DropDownList ID="drpSkyCourseID" runat="server" AutoPostBack="True"
                                                OnSelectedIndexChanged="drpSkyCourseID_SelectedIndexChanged">
                                            </asp:DropDownList>
                                    </p>
                                </div>
                    </td>
                </tr>
                <tr>
                    <td align="center" class="SkyTDTitle">
                        条件选择
                    </td>
                    <td class="SkyTDInfo">
                        <div id="searchBox" class="clearsearch">
                                    <p>
                                        <label for="drpSelect">
                                            成绩选择：</label>
                                            <asp:DropDownList ID="drpSelect" runat="server">
                                                <asp:ListItem Value="ResultsPS">平时成绩</asp:ListItem>
                                                <asp:ListItem Value="ResultsZY">作业成绩</asp:ListItem>
                                                <asp:ListItem Value="ResultsQZ">期中成绩</asp:ListItem>
                                                <asp:ListItem Value="ResultsQM">期末成绩</asp:ListItem>
                                                <asp:ListItem Value="ResultsZH" Selected>综合成绩</asp:ListItem>
                                                <asp:ListItem Value="ResultsMakeup" >补考成绩</asp:ListItem>
                                            </asp:DropDownList>
                                    </p>
                                    <p>
                                        <label for="drpJudge">
                                            条件选择：</label><asp:DropDownList ID="drpJudge" runat="server">
                                                <asp:ListItem>&gt;</asp:ListItem>
                                                <asp:ListItem>&gt;=</asp:ListItem>
                                                <asp:ListItem>=</asp:ListItem>
                                                <asp:ListItem>&lt;=</asp:ListItem>
                                                <asp:ListItem Selected>&lt;</asp:ListItem>
                                            </asp:DropDownList>
                                    </p>
                                    <p>
                                        <label for="txtValue">
                                            分数输入：</label><asp:TextBox ID="txtValue" runat="server" MaxLength="3">60</asp:TextBox></p>
                                    <p  id="searchSubmit">
                                        <asp:Button ID="btnSearch" runat="server" CssClass="SkyButtonFocus" OnClick="btnSearch_Click"
                                            Text="确认搜索" /></p>
                                </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="divInfo">
        <div class="divInfoTopList">
            <div class="listLeft">
                <ul>
                    <li>
                        <div>
                            <img src="../style/green/images/index.gif" /></div>
                    </li>
                    <li>成绩列表</li>
                </ul>
            </div>
            <div class="listRight">
                <ul>
                    <li>
                        <div>
                            <asp:Literal ID="LSelectAll" runat="server" Text="全择"></asp:Literal>
                        </div>
                    </li>
                    <li class="listRightwidth">
                        <label for="checkSelect">
                            全选</label>
                    </li>
                    <li>
                        <div>
                            <img src="../style/default/tab/22.gif" width="14" height="14"></div>
                    </li>
                    <li class="listRightwidth">
                        <asp:LinkButton ID="LnkBAdd" runat="server" OnClick="SkyLnkBAMD_Click" Enabled="False">新增</asp:LinkButton>
                    </li>
                    <li>
                        <div>
                            <img src="../style/default/tab/33.gif" width="14" height="14"></div>
                    </li>
                    <li class="listRightwidth">
                        <asp:LinkButton ID="LnkBModify" runat="server" Enabled="False" OnClick="SkyLnkBAMD_Click">修改</asp:LinkButton>
                    </li>
                    <li>
                        <div>
                            <img src="../style/default/tab/11.gif" width="14" height="14">
                        </div>
                    </li>
                    <li class="listRightwidth">
                        <asp:LinkButton ID="LnkBDelete" runat="server" OnClick="SkyLnkBAMD_Click" Enabled="False">删除</asp:LinkButton>
                    </li>
                    <li>
                        <div>
                            <img src="../style/default/tab/44.gif" width="14" height="14"></div>
                    </li>
                    <li class="listRightwidth">
                        <asp:LinkButton ID="LnkBExcel" runat="server" OnClick="SkyLnkBAMD_Click">导出</asp:LinkButton>
                    </li>
                </ul>
            </div>
        </div>
  <div class="divInfoContext">
            <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="Ntable"
                HorizontalAlign="Center" OnRowDataBound="gvInfo_RowDataBound">
                <RowStyle CssClass="SkyTDLine" HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" CssClass="SkyTDTopLine"></HeaderStyle>
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号" />
                    <asp:BoundField HeaderText="课程名称" DataField="CourseName" />
                    <asp:BoundField HeaderText="学生学号" DataField="UserID" />
                    <asp:BoundField HeaderText="学生名称" DataField="UserName" />
                    <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:TemplateField HeaderText="补考成绩">
                        <ItemTemplate>
                            <asp:TextBox ID="txtResultsMakeup" runat="server" Text='<%# Bind("ResultsMakeup") %>'
                                MaxLength="3" Width="40px" Height="15px" CssClass='<%# Eval("ResultsIsMakeup").ToString()=="1"?"skyInputRed":"skyInputNormal" %>'
                                ></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="等级" DataField="ResultsZH" />
                </Columns>
            </asp:GridView>
            <div class="divInfoRight">
                <webdiyer:AspNetPager ID="Pager" runat="server" OnPageChanged="Pager_PageChanged"
                    ShowNavigationToolTip="True" AlwaysShow="True">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    <div class="divSave">当成绩文本框获得焦点时，可以使用上下左右键（↑↓←→）进行行列内的快速移动
      <asp:Button ID="btnSave" runat="server" Text="保存(S)" class="SkyButtonFocus" 
            onclick="btnSave_Click"/>
    </div>
    <asp:Literal ID="LiteralScript" runat="server" EnableViewState="False"></asp:Literal>
    </form>
</body>
</html>
