<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddUser.aspx.cs" Inherits="Admin_System_AddUser" %>

<!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="../../StyleSheet.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type='text/javascript'>
        <!--
        function showTxtPwd()
        {
           var txtPwd=null;
           txtPwd=document.getElementById("txtPwd");
           
           if(txtPwd.style.display=="none")
                txtPwd.style.display="";
           else
                txtPwd.style.display="none";
           
        }
        
        -->
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="listAddLink">
            <a href="javascript:history.back();">返 回</a></div>
        <table cellpadding="0" cellspacing="0" class="form" width="800">
            <tr>
                <td align="left" class="formName" colspan="2">
                    <span style="margin-left: 10px">添加人员</span>
                </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px; height: 22px;">
                    账 号：
                </td>
                <td class="inputArea" style="width: 598px; height: 22px;">
                    <asp:TextBox ID="txtUserID" runat="server" CssClass="txt" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserID"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px">
                    &nbsp;&nbsp;</td>
                <td class="inputArea" style="width: 598px">
                    <div class="tip"><span class="content">提示：登录考试系统的账号，建议使用姓名的拼音，不区分大小写。</span></div>
                </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px; height: 16px">
                    密 码：</td>
                <td class="inputArea" style="width: 598px; height: 16px">
                    <input type="password" id="txtPwd" runat="server" style="width:150px; display:none;" class="txt" visible="true" value="123456"/>
                    <asp:CheckBox ID="cbDefaultPwd" runat="server" CssClass="txt" Text="使用默认密码（123456）" BorderStyle="None" Checked="True" onclick="showTxtPwd()" ToolTip="不使用将显示输入框"/></td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px">
                    姓 名：
                </td>
                <td class="inputArea" style="width: 598px">
                    <asp:TextBox ID="txtName" runat="server" CssClass="txt" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtName"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px; height: 23px;">
                    所属部门：</td>
                <td class="inputArea" style="width: 598px; height: 23px;">
                    <asp:DropDownList ID="drlDeptList" runat="server" CssClass="txt" Width="150px" DataSourceID="objdsDeptList" DataTextField="DeptName" DataValueField="DeptID">
                        <asp:ListItem Value="-1">请选择部门</asp:ListItem>
                        <asp:ListItem>工程处</asp:ListItem>
                        <asp:ListItem>工艺处</asp:ListItem>
                        <asp:ListItem>结构处</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px; height: 23px">
                    权 限：</td>
                <td class="inputArea" style="width: 598px; height: 23px">
                    <asp:CheckBoxList ID="cblRight" runat="server" BorderStyle="None" CssClass="txt"
                        RepeatDirection="Horizontal" RepeatLayout="Flow" Width="150px">
                        <asp:ListItem Selected="True" Value="1">考试人员</asp:ListItem>
                        <asp:ListItem Value="2">管理员</asp:ListItem>
                    </asp:CheckBoxList>
                </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px; height: 23px">
                    是否锁定：</td>
                <td class="inputArea" style="width: 598px; height: 23px">
                    <asp:RadioButtonList ID="rblLocked" runat="server" BorderStyle="None" CssClass="txt"
                        RepeatDirection="Horizontal" RepeatLayout="Flow" Width="150px">
                        <asp:ListItem Value="true">是</asp:ListItem>
                        <asp:ListItem Selected="True" Value="false">否</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td class="submitArea" colspan="2">
                    <span style="margin-right: 10px">
                        <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                        <asp:Button ID="btnAdd" runat="server" CssClass="btn" Text="提 交" Width="80px" OnClick="btnAdd_Click" /></span></td>
            </tr>
        </table>
    
    </div>
        <asp:ObjectDataSource ID="objdsDeptList" runat="server" SelectMethod="GetDeptListForDropList"
            TypeName="BLL.BLLDepartment"></asp:ObjectDataSource>
    </form>
</body>
</html>
