<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserInput.aspx.cs" Inherits="ComResProSystem.UserInput" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!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 runat="server">
    <title></title>
    <style type="text/css">
        body
        {
            margin: 0px;
            padding: 0px;
            font-size: 12px;
        }
       .table{border-collapse:collapse; height:24px; line-height:24px;  text-align:center;}
       .table tr {border-right:solid 1px #FFF; border-left:solid 1px #000000;}
       .table tr td{border:solid 1px #000000;}
    </style>
    <script type="text/javascript">
    function myKeyDown()
    {
        var   k=window.event.keyCode;   

        if ((k==46)||(k==8)||(k==189)||(k==109)||(k==190)||(k==110)|| (k>=48 && k<=57)||(k>=96 && k<=105)||(k>=37 && k<=40)) 
        {}
        else if(k==13){
            window.event.keyCode = 9;}
        else{
            window.event.returnValue = false;}
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="true"
        EnableScriptLocalization="true">
    </asp:ToolkitScriptManager>
    <div>
        <div style="background-image: url(Image/tab/tab_05.gif); height: 25px; background-repeat: repeat-x">
            <img src="Image/tab/311.gif" alt="" /><span style="font-size: 12px; color: #1F4A65;
                font-weight: bold;">员工入职登记</span>
        </div>
        <div>
           
            <table align="center" class="table">
                <tr>
                    <td colspan="4" align="center">
                        <h4 style=" margin:0px; padding:0px">
                            员工入职登记表</h4>
                    </td>
                </tr>
                <tr>
                    <td>
                        用户名：
                    </td>
                    <td>
                        <asp:TextBox ID="Tb_UserName" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator1" ControlToValidate="Tb_UserName" runat="server" ErrorMessage="用户姓名必填"
                            ForeColor="#FF3300"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        用户年龄：
                    </td>
                    <td>
                        <asp:TextBox ID="Tb_UserAge" runat="server" Style="ime-mode: disabled" onkeydown="myKeyDown()"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="Tb_UserAge"
                            runat="server" ErrorMessage="用户年龄必填" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        出生年月:
                    </td>
                    <td>
                        <asp:TextBox ID="Tb_UserBrith" runat="server"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender1" Format="yyyy-MM-dd" TargetControlID="Tb_UserBrith"
                            runat="server">
                        </asp:CalendarExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="Tb_UserBrith"
                            runat="server" ErrorMessage="出生年月必填" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        职位:
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="Dd_UserPos" runat="server">
                            <asp:ListItem>-请选择-</asp:ListItem>
                            <asp:ListItem>普通员工</asp:ListItem>
                            <asp:ListItem>部门主管</asp:ListItem>
                        </asp:DropDownList>
                        <asp:CompareValidator ID="CompareValidator1" ControlToValidate="Dd_UserPos" ForeColor="#FF3300" ValueToCompare="-请选择-" Operator="NotEqual" runat="server" ErrorMessage="职位必选"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        所属部门：
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="Dd_Part" runat="server">
                            <asp:ListItem>-请选择-</asp:ListItem>
                            <asp:ListItem>财务部</asp:ListItem>
                            <asp:ListItem>工程部</asp:ListItem>
                            <asp:ListItem>开发部</asp:ListItem>
                        </asp:DropDownList>
                         <asp:CompareValidator ID="CompareValidator2" ControlToValidate="Dd_Part" ForeColor="#FF3300" ValueToCompare="-请选择-" Operator="NotEqual" runat="server" ErrorMessage="部门必选"></asp:CompareValidator>
                   
                    </td>
                    <td>
                        联系电话：
                    </td>
                    <td>
                        <asp:TextBox ID="Tb_UserTel" runat="server" Style="ime-mode: disabled" onkeydown="myKeyDown()"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="Tb_UserTel"
                            runat="server" ErrorMessage="联系电话必填" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        性别：
                    </td>
                    <td align="left">
                        <asp:RadioButton ID="Rb_Man" runat="server" GroupName="sex" Checked="true" />男
                        <asp:RadioButton ID="Rb_Women" runat="server" GroupName="sex" />女
                    </td>
                    <td>
                        家庭住址：
                    </td>
                    <td align="left">
                        <asp:TextBox ID="Tb_Address" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" align="center">
                        <asp:ImageButton ID="Ibt_Submit" runat="server" 
                            ImageUrl="~/Image/Bt_Submit.gif" onclick="Ibt_Submit_Click"/>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
