<%@ page language="C#" autoeventwireup="true" inherits="Admin_EmplyeeNew, App_Web_qxuvifui" %>

<!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>
    <link href="../CSS/All.css" rel="stylesheet" type="text/css" />
    <script src="../JS/Calendar.js" type="text/javascript" ></script>
    <style>
        .division th {
        background:none repeat scroll 0 0 #E2E8EB;
        border-right:1px solid #CCCCCC;
        font-size:10pt;
        text-align:right;
        font-weight:500;
        width:140px;

        }
        .division {
            background:none repeat scroll 0 0 #FFFFFF;
            border-color:#CCCCCC #BEC6CE #BEC6CE #CCCCCC;
            border-style:solid;
            border-width:1px 2px 2px 1px;
            line-height:150%;
            padding:5px;
            white-space:normal;
            margin:5px;
       }
       .division td, .division th{
            border-color:#FFFFFF #DBE2E7 #DDDDDD #FFFFFF;
            border-left:1px solid #FFFFFF;
            border-right:1px solid #DBE2E7;
            border-style:solid;
            border-width:1px;
            padding:2px;
             margin:1px;
       }
       h5{
        margin:0;
        padding:5px;
        background-color:#E2E8EB;
        font-size:11pt;
       }
       .division .font1{
        font-weight: bold;
        color: #696969
       }
     
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h5>
                <asp:Label ID="labOperType" runat="server" Text="新增"></asp:Label>人员信息</h5>
        <div class="division">
            <table id="selectCust" border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <th>
                        姓名(*)：</th>
                    <td>
                        <asp:TextBox ID="txtName" runat="server" MaxLength="50" Width="159px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName"
                ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator></td>
                </tr>
                <tr style="color: #000000">
                    <th>
                        性别(*)：</th>
                    <td>
            <asp:DropDownList ID="ddlSex" runat="server" Width="62px">
                <asp:ListItem>男</asp:ListItem>
                <asp:ListItem>女</asp:ListItem>
            </asp:DropDownList></td>
                </tr>
                <tr>
                    <th>
                状态：</th>
                    <td>
            <asp:DropDownList ID="ddlState" runat="server" Width="165px">
                <asp:ListItem Value="0">无</asp:ListItem>
                <asp:ListItem Value="1">业务人员</asp:ListItem>
                <asp:ListItem Value="2">项目开发人员</asp:ListItem>
            </asp:DropDownList></td>
                </tr>
                <tr>
                    <th>
                        部门(*)：</th>
                    <td>
            <asp:DropDownList ID="ddlDeprtement" runat="server" Width="165px">
            </asp:DropDownList>
                        <asp:CompareValidator ID="Validator_PClass" runat="server" ControlToValidate="ddlDeprtement"
                ErrorMessage="请选择" Operator="NotEqual" ValidationGroup="insert" ValueToCompare="0"></asp:CompareValidator></td>
                </tr>
                <tr>
                    <th>
                        权限：</th>
                    <td>
                        <span class="notice_inline ">
            <asp:DropDownList ID="ddlRole" runat="server" Width="165px">
                <asp:ListItem Value="0">无</asp:ListItem>
            </asp:DropDownList></span></td>
                </tr>
                <tr>
                    <th>
                职务：</th>
                    <td>
            <asp:DropDownList ID="ddlJob" runat="server" Width="165px">
            </asp:DropDownList></td>
                </tr>
                <tr>
                    <th>
                        学历：</th>
                    <td>
            <asp:DropDownList ID="ddlEdu" runat="server" Width="165px">
            </asp:DropDownList></td>
                </tr>
                <tr>
                    <th>
                        出生：</th>
                    <td>
                        <asp:TextBox ID="txtBDate" runat="server" MaxLength="10" onclick="showDateSelect(this)" Width="159px"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>
                        身份证号码：</th>
                    <td>
                        <asp:TextBox ID="txtIDNumber" runat="server" MaxLength="30" Width="159px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtIDNumber"
                ErrorMessage="只能A-Za-z0-9" Font-Size="10pt" ValidationExpression="[a-zA-Z0-9]*"
                ValidationGroup="update"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <th>
                        住宅电话：</th>
                    <td>
                        <asp:TextBox ID="txtHomePhone" runat="server" MaxLength="50" Width="159px"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>
                        手机号：</th>
                    <td>
                        <asp:TextBox ID="txtMPhones" runat="server" MaxLength="50" Width="159px"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>
                        地址：</th>
                    <td>
                        <asp:TextBox ID="txtAddress" runat="server" MaxLength="255" Width="427px"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>
                        备注：</th>
                    <td>
                        <asp:TextBox ID="txtBeizhu" runat="server" MaxLength="255" Width="427px" Height="64px" TextMode="MultiLine"></asp:TextBox></td>
                </tr>
            </table>
        </div>
        <div style="width: 100%; background-color: lightgrey">
            &nbsp;
            <asp:Button ID="btnSubmit" runat="server" Text="保存"
                ValidationGroup="insert" Width="112px" CssClass="btn"  style=" margin-left:150px" OnClick="btnSubmit_Click"/><asp:Button
                ID="btnback" runat="server" Text="返回"  style=" margin-left:50px" CssClass="btn" Visible="false" OnClick="btnback_Click" Width="77px"/></div>
    </div>
    </form>
    
    <script type="text/javascript">
    function showDateSelect(txt){
            new Calendar('1930', '<%=DateTime.Now.Year.ToString()%>', 0,'yyyy-MM-dd').show(txt);
    }


    </script>
</body>
</html>




