<%@ page language="C#" autoeventwireup="true" inherits="ims.msg, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="msg">
<head runat="server">
    <title>发送消息</title><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1">
</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="mainArea" class="sm">
        <fieldset runat="server" id="mutiUser"><legend><span class="vmiddle">收件人： </span><input runat="server" id="rbAssigned" type="radio" name="range" checked /><label for="rbAssigned">以下用户</label><input runat="server" id="rbAll" name="range" type="radio" /><label for="rbAll">所有用户中排除以下用户</label></legend>
            <div id="exers">
                <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 />
                <div id="divRole"><input type="checkbox" runat="server" id="cbRole" /><label for="cbRole">角色：</label><asp:TextBox runat="server" id="tbRoles" acfid="RoleName" chars=";；、,，" ToolTip="输入或选择角色。添加逗号或分号可连选" /></div>
                <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"><span class="hide"><input type="checkbox" /><label>机构：</label></span><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" /><label for="cbRel">我的：</label><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>
                    <span runat="server" id="spanLevels"><span class="hide"><input type="checkbox" /><label>我的：</label></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></span><i title="相关说明" onclick="What('Colleague')" class="what hide1"></i></span>
                </div>
            </div>
        </fieldset>
        <div id="exclude" class="hide2" runat="server"><span id="spanExclude">排除：</span><input runat="server" type="checkbox" id="cbStarter" value="2" /><label for="cbStarter">本人</label><input runat="server" type="checkbox" id="cbFixed" value="4" /><label for="cbFixed">指定用户：</label><asp:TextBox runat="server" id="tbNoUsers" acfid="UserName" ToolTip="双击弹出用户选择窗口。多项之间以逗号、分号或顿号分隔" chars=";；、,，" ondblclick="showUserTree(this.id);" /></div>
		<table id="headTab" class="comm">
            <tr id="trSignle"><td class="tdTitle">收件人：</td><td class="right"><table class="fixedLayout"><tr><td><asp:TextBox runat="server" ID="tbUser" acfid="UserName" chars=";；、,，" ondblclick="showUserTree(this.id);" ToolTip="输入或选择用户。添加逗号或分号可连选，双击弹出树形选框" /></td><td runat="server" id="tdMore" title="指定更多人" onclick="showMore();">…</td></tr></table></td></tr>
            <tr><td class="tdTitle">主　题：</td><td class="right"><asp:TextBox runat="server" ID="tbSubject" ondblclick="autoSubject();" ToolTip="输入消息主题。双击自动生成"></asp:TextBox></td></tr>
            <tr><td class="tdTitle">附　件：</td><td class="right valArea"><div id="uploader" runat="server" class="filer file small"><div class="files" runat="server"></div><div class="icon"><input id="_f" name="_f" class="f" contenteditable="false" multiple="multiple" title="上传(可多选)" onchange="return toUpload(this);" type="file" /></div></div></td></tr>
        </table>
        <asp:TextBox runat="server" ID="ckContent" TextMode="MultiLine"></asp:TextBox>

        <asp:UpdatePanel ID="up" runat="server" RenderMode="Block">
        <ContentTemplate>
			<asp:Button runat="server" ID="btnSend" Text="发送" OnClick="SendMsg" OnClientClick="return preSubmit();" CssClass="btn big" />
        </ContentTemplate>
        </asp:UpdatePanel>
        </div>
        <div id="resultArea">
            <div id="resultMsg" class="msgarea bigspace mtop_n mbottom_x">发送成功！</div>
            <input type="button" class="btn big" id="btnContinue" value="继续" onclick="toContinue();" />
            <input type="button" class="btn big" id="btnClose" value="关闭" onclick="back();" />
        </div>
        <script src="js/comm.js"></script><script src="js/msg.js"></script>
		</form>
	</body>
</html>
