<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/SiteMenu.Master" AutoEventWireup="true" CodeBehind="Student.aspx.cs" Inherits="Project25175.Student" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../assets/css/jquery-ui-1.10.3.full.min.css" />

    <script type="text/javascript">
        function DoubleAddClick() {
            document.getElementById('<%=BT_Add.ClientID %>').click();
        }
        function DoubleEditClick() {
            document.getElementById('<%=BT_Edit.ClientID %>').click();
        }
        function DoubleDelClick() {
            document.getElementById('<%=BtMenuDel.ClientID %>').click();
        }
        //后台调用,区分提示信息底色
        //Danger,Info
        function ChangeMsgClass(MsgType) {
            if (MsgType == "Danger") 
            {
                DivMsg.className = 'alert alert-danger';
            }
            else 
            {
                DivMsg.className = 'alert alert-info';
            }
        }

        function openwin(UrlString) {
            window.open("../Public/PrintStudent.aspx?ID=" + UrlString + "", "")
        }   
    </script>
    <link rel="stylesheet" href="../assets/css/datepicker.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
		</script>
		<ul class="breadcrumb">
			<li>
				<i class="<%=PageIcon %>"></i>
                学生维护
			</li>
		</ul>
	</div>

    <div class="page-content">
        <div class="row col-xs-12">
            <div id="DivMsg" class="alert alert-info">
                <i class="icon-hand-right"></i>
                <asp:Label ID="LabMsg" runat="server" Text=" "></asp:Label>
			    <button class="close" data-dismiss="alert">
                <i class="icon-remove"></i>
                </button>
            </div>
        </div>

        <div class="page-header">
            <div class="col-xs-12 widget-box">
                <asp:Button ID="BtMenuList" runat="server" OnClick="BtMenuList_Click" Text="数据列表" CssClass="btn btn-info btn-sm" />
                <asp:Button ID="BtMenuAdd" runat="server" OnClick="BtMenuAdd_Click" Text="添加" CssClass="btn btn-primary btn-sm" />
                <asp:Button ID="BtMenuEdit" runat="server" OnClick="BtMenuEdit_Click" Text="修改" CssClass="btn btn-purple btn-sm" />
                <asp:Button ID="BtMenuDel" runat="server" OnClick="BtMenuDel_Click" Text="删除" CssClass="btn btn-info btn-sm hidden" />
                <asp:Button ID="BtDel" runat="server" Text="删除" CssClass="btn btn-danger btn-sm"/>
                <asp:Button ID="BtMenuPrint" runat="server" OnClick="BtMenuPrint_Click" Text="打印预览" CssClass="btn btn-Grey btn-sm" />
                <asp:DropDownList ID="DDLGrade" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="DDLGrade_SelectedIndexChanged">                       
                </asp:DropDownList>
                <asp:DropDownList ID="DDLClass" runat="server">                       
                </asp:DropDownList>
                <asp:TextBox runat="server" ID="TxtSearchUser" placeholder="姓名..." CssClass="input-mini"></asp:TextBox>
                <asp:Button ID="BtSearch" runat="server"  CssClass="btn btn-success btn-sm hidden" 
                    Text="查找" onclick="BtSearch_Click" />
				<span >
					<a href="#" data-action="reload"><i class="icon-search nav-search-icon green bigger-140" id="idsearch" title="查找"></i></a>
				</span>
                
            </div>
        </div>

        <asp:Panel runat="server" Visible="false" ID="PanelEdit">
            <div id="dialog-edit" class="row">
                    <div id="Div1" class="col-xs-12">
                    <div class="col-xs-6">
                        <div class="row">
				            <div class="profile-info-row">
					            <div class="profile-info-name">学号</div>
					            <div class="profile-info-value row">
                                    <asp:TextBox ID="TxtStuNumber_Edit" runat="server"></asp:TextBox>
                                    <asp:TextBox ID="TxtID_Edit" runat="server" CssClass="hidden"></asp:TextBox>
                                </div>
				            </div>
				            <div class="profile-info-row">
					            <div class="profile-info-name">姓名</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtStuName_Edit" runat="server"></asp:TextBox>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">密码</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtPassword_Edit" runat="server" TextMode="Password"></asp:TextBox>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">身份证</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtIDCard_Edit" runat="server"></asp:TextBox>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">民族</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtStuNation_Edit" runat="server"></asp:TextBox>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">出生日期</div>
					            <div class="profile-info-value">
                                    <div class="input-group">                                    
                                        <asp:TextBox runat="server" id="TxtStuAge_Edit"  CssClass=" date-picker"  data-date-format="yyyy-mm-dd"/>
                                        <span>
						                    <i class="icon-calendar bigger-110"></i>
					                    </span>
                                    </div>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">性别</div>
					            <div class="profile-info-value row">
						            <asp:DropDownList ID="DDLSex_Edit" runat="server" CssClass="col-xs-6">
                                        <asp:ListItem Value="1">男</asp:ListItem>
                                        <asp:ListItem Value="0">女</asp:ListItem>
                                        <asp:ListItem Value="2">保密</asp:ListItem>
                                    </asp:DropDownList>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">烈士军属</div>
					            <div class="profile-info-value row">
						            <asp:DropDownList ID="DDLArmyManFamily_Edit" runat="server" CssClass="col-xs-6">
                                        <asp:ListItem Value="0">否</asp:ListItem>
                                        <asp:ListItem Value="1">是</asp:ListItem>                                    
                                    </asp:DropDownList>
					            </div>
				            </div>
                        </div>
                    </div>

                    <div class="col-xs-6">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">入学年份</div>
					            <div class="profile-info-value">
                                    <asp:DropDownList ID="DDLGradeID_Edit" runat="server"
                                        AutoPostBack="True" 
                                        onselectedindexchanged="DDLGradeID_Edit_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </div>
				            </div>
				            <div class="profile-info-row">
					            <div class="profile-info-name">班级</div>
					            <div class="profile-info-value">
						            <asp:DropDownList ID="DDLClassID_Edit" runat="server">
                                    </asp:DropDownList>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">入学日期</div>
					            <div class="profile-info-value">
						            <div class="input-group">                                    
                                        <asp:TextBox runat="server" id="TxtStuInSchoolDate_Edit"  CssClass=" date-picker"  data-date-format="yyyy-mm-dd"/>
                                        <span>
						                    <i class="icon-calendar bigger-110"></i>
					                    </span>
                                    </div>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">入团日期</div>
					            <div class="profile-info-value">
						            <div class="input-group">                                    
                                        <asp:TextBox runat="server" id="TxtStuMenberDate_Edit"  CssClass=" date-picker"  data-date-format="yyyy-mm-dd"/>
                                        <span>
						                    <i class="icon-calendar bigger-110"></i>
					                    </span>
                                    </div>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">入党日期</div>
					            <div class="profile-info-value">
						            <div class="input-group">                                    
                                        <asp:TextBox runat="server" id="TxtStuPartyDate_Edit"  CssClass=" date-picker"  data-date-format="yyyy-mm-dd"/>
                                        <span>
						                    <i class="icon-calendar bigger-110"></i>
					                    </span>
                                    </div>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">原毕业学校</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtStuFinishSchool_Edit" runat="server"></asp:TextBox>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">原校毕业日期</div>
					            <div class="profile-info-value">
						            <div class="input-group">                                    
                                        <asp:TextBox runat="server" id="TxtStuFinishDate_Edit"  CssClass=" date-picker"  data-date-format="yyyy-mm-dd"/>
                                        <span>
						                    <i class="icon-calendar bigger-110"></i>
					                    </span>
                                    </div>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">籍贯</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtNativePlace_Edit" runat="server"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>

                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">家庭详细地址</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtHouseAddress_Edit" runat="server" CssClass="col-xs-12"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>

                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">主要社会关系</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtHumanRelation_Edit" runat="server" CssClass="col-xs-12"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>

                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">家庭成员</div>
					            <div class="profile-info-value">
						            <asp:GridView ID="GridView3" runat="server" 
                                        CssClass="table table-striped table-bordered table-hover" 
                                        OnRowDataBound="GridView3_RowDataBound"
                                        DataKeyNames="ID" AutoGenerateColumns="False" >
                                        <Columns>                             
                                            <asp:BoundField DataField="IsData">
                                            <HeaderStyle CssClass="hidden" />
                                            <ItemStyle CssClass="hidden" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="姓名">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="TxtMember_Name_Edit" runat="server" CssClass="col-xs-12"
                                                        Text='<%# Bind("Member_Name") %>'></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="称谓">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="TxtMember_Nick_Edit" runat="server" CssClass="col-xs-12"
                                                        Text='<%# Bind("Member_Nick") %>'></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="政治面貌">
                                                <ItemTemplate>
                                                    <asp:DropDownList ID="DDLMember_Polity_Edit" runat="server" CssClass="col-xs-12" >
                                                    </asp:DropDownList>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="单位">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="TxtMember_Unit_Edit" runat="server" CssClass="col-xs-12"
                                                        Text='<%# Bind("Member_Unit") %>'></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
					            </div>
				            </div>				        
			            </div>
                    </div>

                    <div class="col-xs-6">
                        <div class="row">
				            <div class="profile-info-row">
					            <div class="profile-info-name">入学照片</div>
					            <div class="profile-info-value">
                                    <div class="col-xs-6">
                                        <asp:Literal ID="InImg_Edit" runat="server"></asp:Literal>
                                    </div>
                                    <div class="col-xs-6">
                                        <input id="InPhoto_Edit" type="file" runat="server"/>
                                    </div>
                                </div>
				            </div>
                        </div>
                    </div>
                    <div class="col-xs-6">
                        <div class="row">
				            <div class="profile-info-row">
					            <div class="profile-info-name">毕业照片</div>
					            <div class="profile-info-value">
                                    <div class="col-xs-6">
                                        <asp:Literal ID="OutImg_Edit" runat="server"></asp:Literal>
                                    </div>
                                    <div class="col-xs-6">
                                        <input id="OutPhoto_Edit" type="file" runat="server"/>                                        
                                    </div>
					            </div>
				            </div>
                        </div>
                    </div>

                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">毕业证号码</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtStuExamNo_Edit" runat="server" CssClass="col-xs-12"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">就业派遣情况</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtStuDistribution_Edit" runat="server" CssClass="col-xs-12"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">备注</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtComment_Edit" runat="server" TextMode="MultiLine" CssClass="col-xs-12"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>
                    <div class="col-xs-6">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">状态</div>
					            <div class="profile-info-value">
						            <asp:DropDownList ID="DDLState_Edit" runat="server">
                                        <asp:ListItem Value="Y"></asp:ListItem>
                                        <asp:ListItem Value="N"></asp:ListItem>
                                    </asp:DropDownList>
					            </div>
				            </div>
			            </div>
                    </div>
                    <div class="col-xs-6">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">就学情况</div>
					            <div class="profile-info-value">
						            <asp:DropDownList ID="DDLStudyState_Edit" runat="server">
                                        <asp:ListItem Value="G">已毕业</asp:ListItem>
                                        <asp:ListItem Value="S">正常就读</asp:ListItem>
                                        <asp:ListItem Value="D">已退学</asp:ListItem>
                                    </asp:DropDownList>
					            </div>
				            </div>
			            </div>
                    </div>

                    <div class="space-6"></div>
				    <div class="form-group col-xs-12 center">
                        <asp:Button ID="BT_Edit" runat="server" Text="修改" onclick="BT_Edit_Click"
                                CssClass="btn btn-info icon-ok bigger-110 hidden " />
                        <button class="btn btn-info" type="button" onclick="DoubleEditClick()">
						    <i class="icon-ok bigger-110"></i>
						    修改
					    </button>
                        <Button id="Button2" type="reset" value="取消"  class="btn" ><i class="icon-undo bigger-110"></i>
					        Reset
                        </Button>
                        <Button id="Button3" type="reset" value="返回"  class="btn" onclick="javascript:history.go(-1)"><i class="icon-backward bigger-110"></i>
					        Back
                        </Button>
                    </div>
                </div>
		    </div><!-- #dialog-message -->
        </asp:Panel>
		
        <div id="dialog-del" class="hide">
			<div class="alert alert-warning bigger-110">
				当前勾选的数据将被删除。
			</div>
			<div class="space-6"></div>
			<p class="bigger-110 bolder center grey">
				<i class="icon-hand-right blue bigger-120"></i>
				确定删除吗?
			</p>
		</div><!-- #dialog-confirm -->



        <asp:Panel runat="server" Visible="false" ID="PanelAdd">
            <div class="row" id="DivAdd">
                <div class="col-xs-12">
                    <div class="col-xs-6">
                        <div class="row">
				            <div class="profile-info-row">
					            <div class="profile-info-name">学号</div>
					            <div class="profile-info-value row">
                                    <asp:TextBox ID="TxtStuNumber_Add" runat="server"></asp:TextBox>
                                </div>
				            </div>
				            <div class="profile-info-row">
					            <div class="profile-info-name">姓名</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtStuName_Add" runat="server"></asp:TextBox>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">密码</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtPassword_Add" runat="server" TextMode="Password"></asp:TextBox>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">身份证</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtIDCard_Add" runat="server"></asp:TextBox>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">民族</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtStuNation_Add" runat="server"></asp:TextBox>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">出生日期</div>
					            <div class="profile-info-value">
                                    <div class="input-group">                                    
                                        <asp:TextBox runat="server" id="TxtStuAge_Add"  CssClass=" date-picker"  data-date-format="yyyy-mm-dd"/>
                                        <span>
						                    <i class="icon-calendar bigger-110"></i>
					                    </span>
                                    </div>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">性别</div>
					            <div class="profile-info-value row">
						            <asp:DropDownList ID="DDLSex_Add" runat="server" CssClass="col-xs-6">
                                        <asp:ListItem Value="1">男</asp:ListItem>
                                        <asp:ListItem Value="0">女</asp:ListItem>
                                        <asp:ListItem Value="2">保密</asp:ListItem>
                                    </asp:DropDownList>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">烈士军属</div>
					            <div class="profile-info-value row">
						            <asp:DropDownList ID="DDLArmyManFamily_Add" runat="server" CssClass="col-xs-6">
                                        <asp:ListItem Value="0">否</asp:ListItem>
                                        <asp:ListItem Value="1">是</asp:ListItem>                                    
                                    </asp:DropDownList>
					            </div>
				            </div>
                        </div>
                    </div>

                    <div class="col-xs-6">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">入学年份</div>
					            <div class="profile-info-value">
                                    <asp:DropDownList ID="DDLGradeID_Add" runat="server"
                                        AutoPostBack="True" 
                                        onselectedindexchanged="DDLGradeID_Add_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </div>
				            </div>
				            <div class="profile-info-row">
					            <div class="profile-info-name">班级</div>
					            <div class="profile-info-value">
						            <asp:DropDownList ID="DDLClassID_Add" runat="server">
                                    </asp:DropDownList>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">入学日期</div>
					            <div class="profile-info-value">
						            <div class="input-group">                                    
                                        <asp:TextBox runat="server" id="TxtStuInSchoolDate_Add"  CssClass=" date-picker"  data-date-format="yyyy-mm-dd"/>
                                        <span>
						                    <i class="icon-calendar bigger-110"></i>
					                    </span>
                                    </div>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">入团日期</div>
					            <div class="profile-info-value">
						            <div class="input-group">                                    
                                        <asp:TextBox runat="server" id="TxtStuMenberDate_Add"  CssClass=" date-picker"  data-date-format="yyyy-mm-dd"/>
                                        <span>
						                    <i class="icon-calendar bigger-110"></i>
					                    </span>
                                    </div>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">入党日期</div>
					            <div class="profile-info-value">
						            <div class="input-group">                                    
                                        <asp:TextBox runat="server" id="TxtStuPartyDate_Add"  CssClass=" date-picker"  data-date-format="yyyy-mm-dd"/>
                                        <span>
						                    <i class="icon-calendar bigger-110"></i>
					                    </span>
                                    </div>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">原毕业学校</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtStuFinishSchool_Add" runat="server"></asp:TextBox>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">原校毕业日期</div>
					            <div class="profile-info-value">
						            <div class="input-group">                                    
                                        <asp:TextBox runat="server" id="TxtStuFinishDate_Add"  CssClass=" date-picker"  data-date-format="yyyy-mm-dd"/>
                                        <span>
						                    <i class="icon-calendar bigger-110"></i>
					                    </span>
                                    </div>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">籍贯</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtNativePlace_Add" runat="server"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>

                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">家庭详细地址</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtHouseAddress_Add" runat="server" CssClass="col-xs-12"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>

                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">主要社会关系</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="HumanRelation_Add" runat="server" CssClass="col-xs-12"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>

                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">家庭成员</div>
					            <div class="profile-info-value">
						            <asp:GridView ID="GridView2" runat="server" 
                                        CssClass="table table-striped table-bordered table-hover" 
                                        OnRowDataBound="GridView2_RowDataBound"
                                        DataKeyNames="ID" AutoGenerateColumns="False" >
                                        <Columns>                             
                                            <asp:BoundField DataField="ID"/>
                                            <asp:TemplateField HeaderText="姓名">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="TxtMember_Name_Add" runat="server" CssClass="col-xs-12"
                                                        Text=""></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="称谓">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="TxtMember_Nick_Add" runat="server" CssClass="col-xs-12"
                                                        Text=""></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="政治面貌">
                                                <ItemTemplate>
                                                    <asp:DropDownList ID="DDLMember_Polity_Add" runat="server" CssClass="col-xs-12" >
                                                    </asp:DropDownList>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="单位">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="TxtMember_Unit_Add" runat="server" CssClass="col-xs-12"
                                                        Text=""></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
					            </div>
				            </div>				        
			            </div>
                    </div>

                    <%--<div class="col-xs-6">
                        <div class="row">
				            <div class="profile-info-row">
					            <div class="profile-info-name">入学照片</div>
					            <div class="profile-info-value">
                                    <asp:Label runat="server" ID="Label4" Text="text"> </asp:Label>
                                </div>
				            </div>
                        </div>
                    </div>
                    <div class="col-xs-6">
                        <div class="row">
				            <div class="profile-info-row">
					            <div class="profile-info-name">毕业照片</div>
					            <div class="profile-info-value">
						            <asp:Label runat="server" ID="Label23" Text="text"> </asp:Label>
					            </div>
				            </div>
                        </div>
                    </div>--%>

                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">毕业证号码</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtStuExamNo_Add" runat="server" CssClass="col-xs-12"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">就业派遣情况</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtStuDistribution_Add" runat="server" CssClass="col-xs-12"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">备注</div>
					            <div class="profile-info-value">
						            <asp:TextBox ID="TxtComment_Add" runat="server" TextMode="MultiLine" CssClass="col-xs-12"></asp:TextBox>
					            </div>
				            </div>
			            </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">状态</div>
					            <div class="profile-info-value">
						            <asp:DropDownList ID="DDLState_Add" runat="server">
                                        <asp:ListItem Value="Y"></asp:ListItem>
                                        <asp:ListItem Value="N"></asp:ListItem>
                                    </asp:DropDownList>
					            </div>
				            </div>
			            </div>
                    </div>


                    <div class="space-6"></div>
				    <div class="form-group col-xs-12 center">
                        <asp:Button ID="BT_Add" runat="server" Text="新增" class="icon-ok"
                                CssClass="btn btn-info icon-ok btn-sm hidden" OnClick="BT_Add_Click" />
                        <button class="btn btn-info bigger-110" type="button" onclick="DoubleAddClick()">
						    <i class="icon-ok"></i>
						    新增
					    </button>
                        <Button id="Reset1" type="reset" value="取消"  class="btn bigger-110" >
                            <i class="icon-undo"></i>
					        Reset
                        </Button>
                    </div>
                </div>
            </div>
        </asp:Panel>

        <asp:Panel runat="server" Visible="false" ID="PanelData">
            <div class="row">
	            <div class="col-xs-12">
		            <div class="table-responsive">
                        <asp:GridView ID="GridView1" runat="server" 
                            CssClass="table table-striped table-bordered table-hover" 
                            AutoGenerateColumns="False" DataKeyNames="ID" 
                            OnRowDataBound="GridView1_RowDataBound"
                            OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" 
                            OnRowCancelingEdit="GridView1_RowCancelingEdit" AllowPaging="True" 
                            OnPageIndexChanging="GridView1_PageIndexChanging" >
                            <Columns>
                                <asp:TemplateField HeaderText="选取">
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="CheckBoxTitle" runat="server" CssClass="ace"/>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckSelect" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="StuNumber" HeaderText="学号" ReadOnly="True"/>                             
                                <asp:TemplateField HeaderText="姓名">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TxtStuName" runat="server" CssClass="col-xs-12" 
                                            Text='<%# Bind("StuName") %>' ></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="LabStuName" runat="server" Text='<%# Bind("StuName") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="col-xs-1"/>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="身份证">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TxtIDCard" runat="server" CssClass="col-xs-12"
                                            Text='<%# Bind("IDCard")%>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="LabIDCardd" runat="server" Text='<%# Bind("IDCard") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="col-xs-2"/>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="密码">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TxtPassword" runat="server" CssClass="col-xs-12" TextMode="Password"
                                            Text=""></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="LabPassword" runat="server" Text='<%# Bind("Password") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="col-xs-1"/>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="性别">
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="DDLStuSex" runat="server" 
                                        SelectedValue='<%# Bind("StuSex")%>'>
                                        <asp:ListItem Value="1">男</asp:ListItem>
                                        <asp:ListItem Value="0">女</asp:ListItem>
                                        <asp:ListItem Value="2">保密</asp:ListItem>
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="LabStuSex" runat="server" Text='<%# Bind("StuSexName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="班级">
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="DDLClassName" runat="server">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="LabClassName" runat="server" Text='<%# Bind("ClassName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="状态">
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="DDLStudyState" runat="server" 
                                           SelectedValue='<%# Bind("StudyState")%>'>
                                            <asp:ListItem Value="G">毕业</asp:ListItem>
                                            <asp:ListItem Value="S">在读</asp:ListItem>
                                            <asp:ListItem Value="D">退学</asp:ListItem>
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%#Bind("StudyStateName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField ShowEditButton="True" />
                            </Columns>
                            <HeaderStyle Wrap="True" />
                            <PagerSettings Mode="NumericFirstLast" />
                            <RowStyle Wrap="True" />
                        </asp:GridView>
		            </div><!-- /.table-responsive -->
	            </div><!-- /span -->
            </div>
        </asp:Panel>
    </div>
    
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Footer" runat="server">

    <script type="text/javascript" src="../assets/js/jquery-2.0.3.min.js"></script>

	<script type="text/javascript">
		window.jQuery || document.write("<script src='../assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
	</script>

	<script type="text/javascript">
		if ("ontouchend" in document) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
	</script>
	<script type="text/javascript" src="../assets/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../assets/js/typeahead-bs2.min.js"></script>

	<!-- page specific plugin scripts -->
    <!--插件bootstrap-datepicker.min.js必须在jquery-ui-1.10.3.full.min.js之后,否则日期格式、年的选中等会部分失效-->
    <script type="text/javascript" src="../assets/js/jquery-ui-1.10.3.full.min.js"></script>	
    <script type="text/javascript" src="../assets/js/date-time/bootstrap-datepicker.min.js"></script>
	<script type="text/javascript" src="../assets/js/jquery.ui.touch-punch.min.js"></script>
	<!-- ace scripts -->

	<script type="text/javascript" src="../assets/js/ace-elements.min.js"></script>
	<script type="text/javascript" src="../assets/js/ace.min.js"></script>
    <script type="text/javascript" src="../assets/js/bootbox.min_25175.js"></script>

    <script type="text/javascript">

        jQuery(function ($) {
            //全选确认框
            $('table th input:checkbox').on('click', function () {
                var that = this;
                $(this).closest('table').find('tr > td:first-child input:checkbox')
	            .each(function () {
	                this.checked = that.checked;
	                $(this).closest('tr').toggleClass('selected');
	            });
            });


            //对话框全局
            $.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, {
                _title: function (title) {
                    var $title = this.options.title || '&nbsp;'
                    if (("title_html" in this.options) && this.options.title_html == true)
                        title.html($title);
                    else title.text($title);
                }
            }));

            //删除
//            $("#id-btn-dialog-del").on('click', function (e) {
	        $(document.getElementById('<%=BtDel.ClientID %>')).on('click', function (e) {
                e.preventDefault();
                $("#dialog-del").removeClass('hide').dialog(
                {
                    resizable: false,
                    modal: true,
                    title: "<div class='widget-header'><h4 class='smaller'><i class='icon-warning-sign red'></i>删除</h4></div>",
                    title_html: true,
                    buttons: [
						{
						    html: "<i class='icon-trash bigger-110'></i>&nbsp; 确定",
						    "class": "btn btn-danger btn-xs",
						    click: function () {
						        //						        DoubleDelClick();
						        document.getElementById('<%=BtMenuDel.ClientID %>').click();
						    }
						}
						,
						{
						    html: "<i class='icon-remove bigger-110'></i>&nbsp; 取消",
						    "class": "btn btn-xs",
						    click: function () {
						        $(this).dialog("close");
						    }
						}]
                });
            });

            //日期
            $('.date-picker').datepicker({ autoclose: true }).next().on(ace.click_event, function () {
                $(this).prev().focus();
            });

            //查询
            $("#idsearch").on('click', function (e) {
                document.getElementById('<%=BtSearch.ClientID %>').click();
            });

            //上传图片
//            $('#ContentPlaceHolder1_InPhoto_Edit').ace_file_input({
//                no_file: 'No File ...',
//                btn_choose: 'Choose',
//                btn_change: 'Change',
//                droppable: false,
//                onchange: null,
//                thumbnail: false
//            });

            $('#ContentPlaceHolder1_InPhoto_Edit,#ContentPlaceHolder1_OutPhoto_Edit').ace_file_input({
                style: 'well',
                btn_choose: '选择照片',
                btn_change: null,
                no_icon: 'icon-cloud-upload',
                droppable: true,
                thumbnail: 'small',
                preview_error: function (filename, error_code) {
                }
            }).on('change', function () {
            });

        });
    </script>
    

</asp:Content>
