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



<!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" />
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>

    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
    <%=ImportScriptStr %>
    <script src="../js/jquery/jquery.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $('#drpSkyCID').change(function () {
                var SkyCID = $(this).children('option:selected').val();//这就是selected的值 
                if (SkyCID != "")
                {
                    CheckStutdentUserID(SkyCID);
                }
            })

        });


        function CheckStutdentUserID(SkyCID) {
            var data = "p=" + SkyCID;
            $.ajax({
                type: "POST",
                url: "/admin/extreg/extstudentregistrationajax.aspx?key=getUserID",
                data: data,
                success: function (msg) {
                    //alert(msg);
                    $("#txtUserID").val(msg);
                }
            });
        }

        function CheckStutdentUserIDIsExist(UserID) {
            var data = "p=" + UserID;
            $.ajax({
                type: "POST",
                url: "/admin/extreg/extstudentregistrationajax.aspx?key=CheckUserID",
                data: data,
                success: function (msg) {
                    //alert(msg);
                    if (msg == "0") {

                        var info="您确实要给用户分配班级吗？";
                        art.dialog.confirm(info, function () {
                            art.dialog.data("retdata", 1);
                            document.getElementById("btnSubmit").click();
                        });

                        return false;

                        //art.dialog.data("retdata", 1);
                        //document.getElementById("btnSubmit").click();
                    }
                    else
                    {
                        CareffArtAlert('该学号已经存在，请更新学号后在重新提交!', 2);
                    }
                }
            });
        }


        function jscheckAll() {

            var drpSkyDID, drpSkyPID, drpSkyCID;
            drpSkyDID = $("#drpSkyDID").val();
            drpSkyPID = $("#drpSkyPID").val();
            drpSkyCID = $("#drpSkyCID").val();
            //parent.art.dialog.close();
            //CareffArtAlert('1', 1);
            //CareffArtAlert('2', 2);
            //CareffArtAlert('3', 3);
            if (drpSkyDID == "" || drpSkyPID == "" || drpSkyCID == "")
            {
                CareffArtAlert('院系专业班级必须都选择后才可以分配班级！', 2);
                return false;
            }

            var info = "您确实要提交单位审批状态吗？";
            //alert(art.dialog.data("retdata"));
            if (art.dialog.data("retdata") == 1) {
                art.dialog.data("retdata", 0);//重置
                return true;
            }
            var UserID = $("#txtUserID").val();
            CheckStutdentUserIDIsExist(UserID);
            return false;
        }
    </script>















</head>
<body>
    <form id="Form1" method="post" runat="server">






        <div class="divInfo">
            <div class="divInfoblack">
                <div class="divInfoTopList">
                    <div class="listLeft">
                        <div class="navtitle">基本信息 </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="divInfo">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tablist">
                <tr class="tablisttr">
                    <td width="100" align="center" class="tablisttitle">隶属院系                                    </td>
                    <td class="tabmanagertr">
                        <asp:DropDownList ID="drpSkyDID" runat="server" Width="200px" AutoPostBack="True" CssClass="1"
                            OnSelectedIndexChanged="drpSkyDID_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr class="tablisttr">
                    <td align="center" class="tablisttitle">隶属专业</td>
                    <td class="tabmanagertr">
                        <asp:DropDownList ID="drpSkyPID" runat="server" Width="200px" CssClass="1">
                            <asp:ListItem Value="">-请选择-</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr class="tablisttr">
                    <td align="center" class="tablisttitle" width="100">隶属班级</td>
                    <td class="tabmanagertr">
                        <asp:DropDownList ID="drpSkyCID" runat="server" CssClass="1"
                            Width="200px">
                            <asp:ListItem Value="">-请选择-</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr class="tablisttr">
                    <td align="center" class="tablisttitle">学生编号                                    </td>
                    <td class="tabmanagertr">
                        <asp:TextBox ID="txtUserID" runat="server" ToolTip="学生编号" Width="200px"  CssClass="1"></asp:TextBox>
                    </td>
                </tr>

            </table>
        </div>


        <div class="divSave">
            <asp:Button ID="btnSubmit" runat="server" Text="保存(S)" CssClass="SkyButtonFocus"
                OnClick="btnSubmit_Click" AccessKey="S" CommandName="save"></asp:Button>

         <%--   <input type="button"  value="close1" onclick="CareffArtAlert1('哈尔滨', 6);"/>
            <input type="button"  value="close" onclick="CareffArtAlert('哈尔滨', 6);"/>--%>
        </div>

        <div class="divInfo">
        <span class="usHelpMessage"> * 注意事项： 1、分班功能只能使用一次，一旦生成新的学号后，就无法再次修改;<br />
            2、分班后的学生即正式录入学生库，可以进行分配宿舍等操作；<br />
            3、分班后，再次进入本页面，各种信息将锁定；<br />
            4、分班后，录入的交费信息将直接复制一份给新的学号；<br />
            5、分班后，学生学号的登录密码为身份证的后6位，如果没有录入身份证号码则密码为123456；需要提醒学生自己登录后修改；<br />
            6、分班后，直接关闭窗口即可，不需要在点击页面底部的提交按钮，也不要点击；
        </span>  
    </div>
    </form>
</body>
</html>
