<%@ page language="C#" autoeventwireup="true" inherits="ims.userRelations, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="userRelations">
<head runat="server">
    <title>用户关系查询</title><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
</head>
	<body>
		<form id="form1" method="post" runat="server">
        <asp:ScriptManager ID="sm" runat="server" OnAsyncPostBackError="AsyncError">
            <CompositeScript Path="js/msajax.js" ScriptMode="Release">
                <Scripts>
                    <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" /><asp:ScriptReference Name="MicrosoftAjax.js" /><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
                </Scripts>
            </CompositeScript>
        </asp:ScriptManager>
        <div id="headtxt">指定用户范围</div>
        <div id="exerArea">
            <input type="checkbox" runat="server" id="cbUser" /><label for="cbUser">用户：</label><asp:TextBox runat="server" id="tbUsers" acfid="UserName" chars=";；、,，" ondblclick="showUserTree(this.id);" ToolTip="双击弹出用户选择窗口。多项之间以逗号、分号或顿号分隔" /><br />
            <input type="checkbox" runat="server" id="cbRole" /><label for="cbRole">角色：</label><asp:TextBox runat="server" id="tbRoles" acfid="RoleName" chars=";；、,，" ToolTip="多项之间以逗号、分号或顿号分隔" /><br />
            <input type="checkbox" runat="server" id="cbUnit" /><label for="cbUnit">机构：</label><asp:TextBox runat="server" id="tbUnits" acfid="UnitNameWithID" chars=";；、,，" ondblclick="showUserTree(this.id,true);" ToolTip="双击弹出机构选择窗口。多项之间以逗号、分号或顿号分隔" />
            <span id="spanUnits"><input type="checkbox" class="hide" /><input runat="server" type="checkbox" id="cbRector" value="1" checked="checked" /><label for="cbRector">负责人</label><input runat="server" type="checkbox" id="cbDirectly" value="2" /><label for="cbDirectly">直属成员</label><input runat="server" type="checkbox" id="cbIndirect" value="4" /><label for="cbIndirect">非直属成员</label></span>
            <div id="related">
                <input type="checkbox" runat="server" id="cbRel" /><asp:TextBox runat="server" ID="tbBase" Width="70" ToolTip="输入用户名" acfid="UserName" placeholder="用户" ondblclick="showUserTree(this.id);"></asp:TextBox> 的：<span id="spanRel"><span><input class="hide" type="checkbox" /></span><input runat="server" type="checkbox" id="cbLateral" value="2" /><label for="cbLateral">平级</label><input runat="server" type="checkbox" id="cbSuperior" value="4" /><label for="cbSuperior">上级</label><input runat="server" type="checkbox" id="cbDirectUnderling" value="8" /><label for="cbDirectUnderling">直接下级</label><input runat="server" type="checkbox" id="cbUnderling" value="16" /><label for="cbUnderling">所有下级</label><i title="相关说明" onclick="What('Colleague')" class="what hide1"></i></span>
                <div runat="server" id="spanLevels"><span class="hidden"><input type="checkbox" /><input type="text" style="width:70px" /> 的：</span><input runat="server" type="checkbox" id="cbLevel" value="32" /><asp:DropDownList runat="server" ID="ddlLevels"></asp:DropDownList><span class="subItems">的： <input runat="server" type="checkbox" id="cbLevelRector" value="1" checked="checked" class="levelMember" /><label for="cbLevelRector">负责人</label><input runat="server" type="checkbox" class="levelMember" id="cbLevelDirectly" value="2" /><label for="cbLevelDirectly">直属成员</label><input runat="server" type="checkbox" class="levelMember" id="cbLevelIndirect" value="4" /><label for="cbLevelIndirect">非直属成员</label></span></div>
            </div>
        </div>
        <div class="center mtop_l"><asp:Button runat="server" ID="btnQuery" Text="列出以上用户" OnClick="Query" CssClass="btn" /></div>
        <asp:UpdatePanel ID="up" runat="server" RenderMode="Block" UpdateMode="conditional">
        <ContentTemplate>
            <div runat="server" id="divResult" class="box" visible="false">
            </div>
        </ContentTemplate>
        <Triggers><asp:AsyncPostBackTrigger ControlID="btnQuery" EventName="Click" /></Triggers>
        </asp:UpdatePanel>
        <script src="js/comm.js"></script><script src="js/userRelations.js"></script>
		</form>
	</body>
</html>
