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


<%@ 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>

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

    <script type="text/javascript" src="/admin/style/jquery/jquery.js"></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");
                  }
              }
            );
        });
    </script>

    <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("chkSelect","TextBox2");
                
                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");
                }
                
             });
             $(":text").change(function() { 
                var txt=$(this).attr("id");
                var id1=txt.substring(txt.length-1,txt.length);
                //alert(id1);
                if(id1=="2")
                {
                    txt=txt.substring(0,txt.length-1);
                    //alert(txt);
                    var svalue,svalue1;
                    svalue1=$("#"+txt+"2").val();
                    if(isNaN(svalue1))
                    {
                        svalue1="0";
                        $("#"+txt+"2").val("0")
                    }
                    if(svalue1=="")
                    {
                        svalue1="0";
                    }
                    svalue = (parseFloat($("#" + txt + "1").val()) * 0.6 + parseFloat(svalue1) * 0.4).toFixed(2);
                    $("#"+txt+"3").val(svalue);
                }
             });
        }
        
    </script>
    <script language="javascript" src="/admin/js/SystemScoreInput.js" type="text/jscript"></script>
</head>
<body onload="win_onLoad();">
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    </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 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" />成绩<span
                            class="tableTBig">管理</span></div>
                </li>

            </ul>
        </div>
        <div id="mypanel">
            <div class="divInfo" id="ddiv1">
                <div class="divInfoTop">
                    <div class="listLeft">
                        <ul>
                            <li>
                                <div>
                                    <img src="../style/green/images/basic.gif" /></div>
                            </li>
                            <li><span class="tableTBig">英语成绩录入表</span></li>
                            </ul>
                    </div>
                <div class="divInfoContext">
                    <div class="divSave">
                        <asp:Button ID="btnSave" runat="server" Text="成绩保存" CssClass="SkyButtonFocus" 
                            OnClick="btnSubmit_Click" />
                    </div>
                    <div style="font: 2px; line-height: 2px;">
                        &nbsp;</div>
                    <asp:GridView ID="gvInfo" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                        CellPadding="1" 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="UserID" />
                            <asp:BoundField HeaderText="学生名称" DataField="UserName" />
                            
                            <asp:TemplateField HeaderText="开启专升本">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkSelect" runat="server" Text="开启" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            
                            
                            <asp:TemplateField HeaderText="总平均分">
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"   Text='<%# UsToolsMath_SigleN2(Eval("S1")) %>' MaxLength="5" ReadOnly="true"
                                        Width="50px"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="英语成绩" >
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox2" runat="server"  Text='<%# Bind("S3") %>' MaxLength="5"
                                        Width="50px"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="加权成绩">
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("S3") %>' MaxLength="5" 
                                        Width="50px"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="补考门数">
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("S2") %>' MaxLength="5" ReadOnly="true"
                                        Width="50px"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="加分成绩">
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("S5") %>' MaxLength="5" ReadOnly="true"
                                        Width="50px"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="综合成绩">
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("S6") %>' MaxLength="5" Width="50px" ReadOnly="true"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                   
                    <div class="divInfoRight" style="display:none;">
                        <webdiyer:AspNetPager ID="Pager" runat="server" OnPageChanged="Pager_PageChanged"
                            ShowNavigationToolTip="True" AlwaysShow="True">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <asp:Literal ID="LiteralScript" runat="server" EnableViewState="False"></asp:Literal>
    </form>
</body>
</html>
