<%@ page language="C#" autoeventwireup="true" inherits="admin_Department_Department_Add, ALL" enableEventValidation="false" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>会议室预约系统</title>
    <link href="/control/plugin/bootstrap3/css/bootstrap.min.css" rel="stylesheet" />
    <script src="/control/js/jquery.js"></script>
    <script src="/control/plugin/bootstrap3/js/bootstrap.min.js"></script>
</head>
<body>
    <form id="from1" runat="server">
        <!-- Add.aspx -->
        <div class="form-group">
            <label class=" control-label">上级机构：

            <asp:RegularExpressionValidator ID="revtxtParent" ForeColor="Red" runat="server" ErrorMessage="必须为数字" ControlToValidate="txtParent" ValidationExpression="^[0-9]\d*$"></asp:RegularExpressionValidator>
            </label>
            <asp:TextBox ID="txtParent"  runat="server" MaxLength="50" CssClass="form-control"></asp:TextBox>
            <p class="help-block">请填写上级机构编号(例如：1001，如果为空则表示根机构)</p>
        </div>

        <div class="form-group">
            <label class=" control-label">机构名称<span class='rd'>*</span>： <asp:RequiredFieldValidator ID="rfvd_name" runat="server" ForeColor="Red" ErrorMessage="请填写机构名称" ControlToValidate="txtd_name"></asp:RequiredFieldValidator></label>
            <asp:TextBox ID="txtd_name" runat="server" MaxLength="50" CssClass="form-control"></asp:TextBox>
        </div>
        <div class="form-group">
            <label class="control-label">备注<span class='rd'>*</span>：</label>
            <asp:TextBox ID="txtd_note" runat="server" MaxLength="255"  Rows="3" TextMode="MultiLine" CssClass="form-control"></asp:TextBox>
        </div>
        <div class="form-group">
                <asp:Button ID="btnSubmit" runat="server" Text="添加机构" CssClass="btn btn-block btn-primary" OnClick="btnSubmit_Click" />
        </div>
    </form>

    <script type="text/javascript">
        $(function () { window.parent.ShowDialog(); });
    </script>

</body>
</html>
