<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmployeeForm.aspx.cs" Inherits="Medical.MBase.SysEmployee.EmployeeForm" %>

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
</head>
<body>
    <form name="fEdit" style="padding:20px" runat="server">
        <table class="pt-edit">
            <tr>
                <th>员工编号</th>
                <td><input type="text" id="eCode" runat="server"/></td>
                <th>姓名</th>
                <td><input type="text" id="eName" runat="server"/></td>
            </tr>
            <tr>
                <th>性别</th>
                <td>
                    <input type="radio" name="eSex" id="rSex0" value="0" checked="true" runat="server"/>男
                    <input type="radio" name="eSex" id="rSex1" value="1" runat="server"/>女
                </td>
                <th>身份证号</th>
                <td><input type="text" id="eIdCard" runat="server"/></td>
            </tr>
            <tr>
                <th>联系电话</th>
                <td><input type="text" id="ePhone"  runat="server"/></td>
                <th>紧急联系人</th>
                <td><input type="text" id="eLinkman" runat="server"/></td>
            </tr>
            <tr>
                <th>紧急联系电话</th>
                <td><input type="text" id="eLinkmanPhone" runat="server"/></td>
                <th>科室</th>
                <td><select id="eDepartment" runat="server"></select></td>
            </tr>
            <tr>
                <th>岗位</th>
                <td><input type="text"  id="ePost" runat="server"/></td>
                <th>职称</th>
                <td><input type="text" id="eTitle" runat="server"/></td>
            </tr>
            <tr>
                <th>证书编号</th>
                <td><input type="text" id="eCertificete" runat="server"/></td>
            </tr>
        </table>
        <div class="pt-padding" style="text-align:center">
            <asp:Button ID="btnSave" class="pt-button active" runat="server" Text="保存" OnClientClick="return Employee.validate()" onclick="btnSave_Click" />
            <input type="button" class="pt-button active" onclick="top.OpenClose('Employee_Form')" value="关闭" />
        </div>
    </form>
    <script>
        var Employee = (function() {
            function validate() {
                if (!$("#eName").val()) {
                    top.showTipsMsg('姓名不能为空!', 1, 3000);
                    return false;
                }
                return true;
            }
            return { validate: validate };
        })();
    </script>
</body>
</html>

