<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog/DialogMaster.Master" AutoEventWireup="true"
    CodeBehind="DepartmentSelectDialog.aspx.cs" Inherits="OAWeb.Dialog.DepartmentSelectDialog" EnableViewState="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        function PostBackPage() {
            var obj = window.event.srcElement;
            if (obj.tagName == "INPUT" && obj.type == "checkbox") {
                __doPostBack(" ", " ");
            }
        }
        function closeDialog(text, value) {
            // 返回数据给页面
            art.dialog.data('departText', text); // 存储Text数据
            art.dialog.data('departValue', value); // 存储Value数据
            art.dialog.close();
        }
    </script>
    <div class="form" style="width: 600px; padding: 10px;">
        <table cellpadding="0" cellspacing="0" border="0" class="table_form">
            <tr>
                <td class="right" valign="top">
                    <asp:RadioButtonList ID="rdoType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="rdoType_SelectedIndexChanged">
                        <asp:ListItem Value="1" Selected="True">全部部门</asp:ListItem>
                        <asp:ListItem Value="2">指定部门</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td valign="top">
                    <asp:TreeView ID="tvDepartment" runat="server" NodeIndent="15" ShowCheckBoxes="All"
                        OnTreeNodeCheckChanged="tvDepartment_TreeNodeCheckChanged" Visible="False">
                    </asp:TreeView>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnSave" runat="server" Text=" 保 存 " CssClass="btn_77px" OnClick="btnSave_Click" />
                    <input id="btnClose" type="button" value=" 返 回 " onclick="art.dialog.close();return false;"
                        class="btn_77px" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
