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



<%@ 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>
<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" 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">
    
    
    
    <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  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="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: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>
                   
                    <div class="divInfoColor" style="display:none;">
                        <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>
    </div>
    <asp:Literal ID="LiteralScript" runat="server" EnableViewState="False"></asp:Literal>
    </form>
</body>
</html>
