<%@ page language="C#" autoeventwireup="true" inherits="ims.detail, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="detail">
<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" runat="server" defaultbutton="">
        <asp:HiddenField runat="server" ID="curFieldId" Value="" />
        <asp:Button runat="server" ID="btnShow" OnClick="ShowTaskInfo" CssClass="hide" />
        <asp:ScriptManager ID="s1" runat="server" EnablePageMethods="true" 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 runat="server" id="taskTitle" visible="false"></div>
        <div id="body">
        <div id="pageTitle" runat="server" class="pageTitle"></div>
        <div runat="server" id="layoutTable" EnableViewState="false"></div>
        <div runat="server" id="main" EnableViewState="false"></div>
        </div>
        <table runat="server" id="PagerBar" class="PagerBar"><tr><td>
            <a id="btnFirst" runat="server" title="快捷键：Home" accesskey="F">首页</a>
            <a id="btnPrevious" runat="server" title="快捷键：←或PageUp" accesskey="P">上页</a>
            <asp:Label ID="lblCount" CssClass="count" runat="server"></asp:Label>
            <a id="btnNext" runat="server" title="快捷键：→或PageDown" accesskey="N">下页</a>
            <a id="btnLast" runat="server" title="快捷键：End" accesskey="L">末页</a>
        </td><td class="right vtop pconly">
            <select id="ddlPager" onchange="pagerChanged();" runat="server"></select>
        </td></tr></table>
        <table id="footer"><tr>
            <td runat="server" id="lLinks"></td>
            <td id="rLinks">
                <button type="button" id="toPrev" runat="server" title="上一待办事项" visible="false" class="btn sec small pconly">&lt;</button>
                <button type="button" runat="server" id="btnAttrs" onserverclick="ExeOpera" class="btn sec small f-ok">任务概况</button>
                <button type="button" runat="server" id="flowAttrs" onserverclick="ExeOpera" class="btn sec small f-wf">流程概况</button>
                <button type="button" runat="server" id="toCart" class="btn sec small f-cart f0" title="加入购物车" />
                <button type="button" runat="server" id="toFav" class="btn sec small f-fav f0" title="收藏" />
                <button type="button" id="toNext" runat="server" title="下一待办事项" visible="false" class="btn sec small pconly">&gt;</button>
            </td>
        </tr></table>
        <div id="taskForm" runat="server" class="highlight" visible="false">
            <div runat="server" id="remarks" visible="false"></div>
            <div runat="server" id="backPrompt" visible="false"></div>
            <div runat="server" id="divIden" visible="false">
                <i class="f-user orange fb1"></i>我的身份： <asp:RadioButtonList runat="server" ID="rblIdens" RepeatLayout="Flow" RepeatDirection="Horizontal"></asp:RadioButtonList>
            </div>
            <div runat="server" id="nextArea" visible="false">
                <i class="f-dbarrow skyblue fb1"></i>下一步： <asp:RadioButtonList runat="server" ID="rblNext" RepeatLayout="Flow" RepeatDirection="Horizontal"></asp:RadioButtonList><asp:CheckBoxList runat="server" ID="cblNext" RepeatLayout="Flow" RepeatDirection="Horizontal"></asp:CheckBoxList>
            </div>
        </div>
        <asp:UpdatePanel ID="btnArea" runat="server" ChildrenAsTriggers="false" UpdateMode="conditional" RenderMode="Block">
            <ContentTemplate>
                <asp:Button ID="btnPass" runat="server" Text="同意" OnClientClick="return toProcess(this);" CssClass="btn" Visible="false" />
                <asp:Button ID="btnReject" runat="server" Text="拒绝" OnClientClick="return toProcess(this);" CssClass="btn" Visible="false" />
                <asp:Button ID="btnComplete" runat="server" Text="完成" OnClientClick="return toProcess(this);" CssClass="btn" Visible="false" />
                <input type="button" runat="server" id="btnPercent" value="进度报告" onclick="return toProgress();" class="btn" />
                <asp:Button ID="withdraw" runat="server" Text="撤回" OnClick="ShowWithdraw" CssClass="btn" Visible="false" />
                <asp:Button ID="toEdit" runat="server" ToolTip="进入编辑状态" Text="编辑" OnClick="ToEdit" CssClass="btn" />
                <asp:Button ID="toDel" runat="server" ToolTip="删除" Text="删除" OnClick="ToDel" OnClientClick="return confirm('确定删除吗？');" CssClass="btn" />
                <input type="button" id="delFlow" runat="server" title="删除流程" value="删除" onclick="operaFlow('Delete');" class="btn" />
                <input type="button" id="backFlow" runat="server" title="退回流程" value="退回" onclick="operaFlow('Back');" class="btn" />
                <asp:PlaceHolder runat="server" ID="phOprs"></asp:PlaceHolder>
                <input type="button" id="btnLayout" runat="server" title="切换页面的显示样式" value="版式" onclick="showEleMenu('#btnLayout', '#layouts');" class="btn" />
                <input type="button" runat="server" id="btnExport" onclick="return toExportAs('#body');" value="导出" class="btn" />
                <input type="button" value="打印" runat="server" id="btnPrint" onclick="toPrint(event);" class="btn pconly" />
                <input type="button" onclick="MarkAndBack();" value="返回" id="btnBack" runat="server" class="btn hide2" />
                <input type="button" runat="server" class="hide" id="btnTrigger" onserverclick="ShowEditPop" />
                <asp:Button runat="server" ID="btnOpera" CssClass="hide" OnClick="DoOpera" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <div class="menu" id="layouts" runat="server"></div>
        <asp:UpdatePanel ID="upMent" runat="server" UpdateMode="conditional" Visible="false" RenderMode="Inline">
            <ContentTemplate>
                <div runat="server" id="comments" visible="false">
                    <table><tr><td class="listTitle">评论<asp:Label runat="server" ID="mCount"></asp:Label></td><td class="rtd">
                        <i runat="server" id="write" class="f-write green" title="发表评论" onclick="toWrite();"></i>
                        <i runat="server" id="delAll" class="f-bin red" title="清除所有评论" onclick="clearAll();"></i>
                    </td></tr></table>
                    <div runat="server" id="divMent"></div>
                    <div runat="server" id="pager" visible="false"></div>
                </div>
                <asp:HiddenField runat="server" ID="editId" Value="" />
                <asp:HiddenField runat="server" ID="curPageIndex" OnValueChanged="toCommentPage" Value="0" />
                <asp:Button runat="server" ID="btnDel" OnClick="DelComment" CssClass="hide" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <div runat="server" id="writeMent" visible="false">
            <div id="mentArea">
                <div class="cation">发表评论</div>
                <asp:TextBox runat="server" ID="ckMent" TextMode="MultiLine"></asp:TextBox>
            </div>
            <div class="center mtop_n">
                <asp:Button runat="server" ID="btnMent" OnClick="SubmitComment" CssClass="btn sec" OnClientClick="return PreSubmit();" Text="发表评论" />
                <input type="button" value="取消修改" id="btnCanel" class="hide btn sec" onclick="canelEdit();" />
            </div>
        </div>
        <ims:Pop runat="server" ID="p" Width="450" OnOkClientClick="return updateEditor();" OnOkClick="Save" HideOnOkClientClick="false">
        <ContentTemplate>
            <asp:TextBox ID="_tb" runat="server" Width="98.5%" Visible="false"></asp:TextBox>
            <span runat="server" id="ddlspan" visible="false"><asp:Literal runat="server" ID="ddltext"></asp:Literal><asp:DropDownList ID="_ddl" runat="server"></asp:DropDownList></span>
            <asp:CheckBox ID="_cb" runat="server" Visible="false" />
            <asp:CheckBoxList ID="_cbl" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="100%" Visible="false"></asp:CheckBoxList>
            <asp:RadioButtonList ID="_rbl" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="100%" Visible="false"></asp:RadioButtonList>
            <asp:TextBox runat="server" ID="_ck" CssClass="ck" TextMode="MultiLine" Visible="false"></asp:TextBox>
            <div id="_uploader" runat="server" visible="false"><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>
            <table ID="_hl" runat="server" style="table-layout:fixed;width:98%" visible="false">
                <tr><td style="width:4.5em">链接文字</td><td><asp:TextBox ID="_tbText" runat="server" Width="99%"></asp:TextBox></td></tr>
                <tr><td>链接地址</td><td><asp:TextBox ID="_tbUrl" runat="server" Width="99%"></asp:TextBox></td></tr>
            </table>
            <div runat="server" id="note" class="highlight"></div>
            <div runat="server" id="cmds" class="right mtop_m">
                <a runat="server" id="aAddRow" href="#" onclick="return toAdd(this);"></a>
                <a runat="server" id="aDelRow" href="#" title="删除当前编辑的这一行数据">删除该行</a>
            </div>
        </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="au" Title="指定处理者/处理时限" Visible="false" OnClientUpdated="assignShown();" OnClientCanel="$('#btnArea').removeClass('hidden');" Width="555" HideOnOkClientClick="false" OnOkClientClick="return preSave();" OnOkClick="toProcessTask">
            <ContentTemplate>
                <fieldset runat="server" id="exersArea"><legend><asp:DropDownList runat="server" ID="ddlNodes" onfocus="return SaveExecutor();" onchange="initExecutor();"></asp:DropDownList> 处理者：</legend>
                    <div id="modeFull" class="padbox sparse2">
                        <input type="checkbox" id="cbUser" /><label for="cbUser">用户：</label><asp:TextBox runat="server" id="tbUsers" acfid="UserName" chars=";；、,，" ondblclick="showUserTree(this.id);" ToolTip="双击弹出用户选择窗口。多项之间以逗号、分号或顿号分隔" /><br />
                        <input type="checkbox" id="cbRole" /><label for="cbRole">角色：</label><asp:TextBox runat="server" id="tbRoles" acfid="RoleName" chars=";；、,，" ToolTip="多项之间以逗号、分号或顿号分隔" /><br />
                        <input type="checkbox" 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 type="checkbox" id="cbRector" value="1" checked="checked" /><label for="cbRector">负责人</label> <input type="checkbox" id="cbDirectly" value="2" /><label for="cbDirectly">直属成员</label> <input type="checkbox" id="cbIndirect" value="4" /><label for="cbIndirect">非直属成员</label></span>
                        <div id="related">
                            <input type="checkbox" id="cbRel" /><select id="ddlRel"><option value="1">交办人的</option><option value="2">发起人的</option></select>： <span id="spanRel"><span><input class="hide" type="checkbox" /></span><input type="checkbox" id="cbSelf" value="1" /><label for="cbSelf">本人</label> <input type="checkbox" id="cbLateral" value="2" /><label for="cbLateral">平级</label> <input type="checkbox" id="cbSuperior" value="4" /><label for="cbSuperior">上级</label> <input type="checkbox" id="cbDirectUnderling" value="8" /><label for="cbDirectUnderling">直接下级</label> <input type="checkbox" id="cbUnderling" value="16" /><label for="cbUnderling">所有下级</label></span>
                            <div runat="server" id="spanLevels"><input type="checkbox" class="hidden" /><input type="checkbox" id="cbLevel" value="32" /><asp:DropDownList runat="server" ID="ddlLevels"></asp:DropDownList><span class="subItems">的： <input type="checkbox" id="cbLevelRector" value="1" checked="checked" class="levelMember" /><label for="cbLevelRector">负责人</label> <input type="checkbox" class="levelMember" id="cbLevelDirectly" value="2" /><label for="cbLevelDirectly">直属成员</label></span><i title="相关说明" onclick="What('Colleague')" class="what hide1"></i></div>
                        </div>
                        <div class="sepline"></div>
                        <div id="exclude" class="mtop_s hide2"><b>排除：</b><span class="inner"><input type="checkbox" id="cbHandover" value="1" /><label for="cbHandover">交办人</label><input type="checkbox" id="cbStarter" value="2" /><label for="cbStarter">发起人</label></span><input 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>
                    </div>
                    <div id="inUsers" class="hide">用户：<input type="text" id="tbInUsers" title="可输入多个用户，以逗号、分号或顿号分隔" /></div>
                </fieldset>
                <fieldset runat="server" id="timeArea" class="mtop_n"><legend>处理时限</legend>
                    <ul runat="server" id="ulTime" class="dot"></ul>
                </fieldset>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="flowInfo" ShowOkButton="false" OnClientUpdated="processOpn('#flowInfo_ulTasks');" CanelButtonText="关闭" Width="500">
            <ContentTemplate>
                <ul runat="server" id="ulFlow" class="dot ullist"></ul>
                <fieldset runat="server" id="flowTasks" class="mtop_n"><legend>处理情况</legend>
                    <ul runat="server" id="ulTasks" class="dot ullist"></ul>
                </fieldset>
                <ul runat="server" id="ulBacks" class="dot ullist mtop_s"></ul>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="step" Width="420" OkButtonText="提醒" OnClientUpdated="processOpn('#step_ulExers');" OnOkClientClick="return showRemind();" HideOnOkClientClick="false" CanelButtonText="关闭">
            <ContentTemplate>
                <ul runat="server" id="ulOv" class="dot ullist"></ul>
                <fieldset class="mtop_n notfocus"><legend>处理情况<span runat="server" id="findDiv">： <input type="text" onchange="findExer();" id="tbExerName" acfid="Exer" title="输入执行人查询其执行结果" /> &nbsp;<i id="find" class="f-sousuo fb3 blue"></i></span></legend>
                    <asp:UpdatePanel ID="upExers" runat="server" UpdateMode="conditional">
                    <ContentTemplate>               
                        <ul runat="server" id="ulExers"></ul>
                        <div runat="server" id="noExer">无</div>
                    </ContentTemplate>
                    </asp:UpdatePanel>
                </fieldset>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="rmd" Width="485" OnOkClientClick="return preRemind();" HideOnOkClientClick="false" OnOkClick="DoRemind" OkButtonText="发送提醒">
            <ContentTemplate>
                <fieldset class="mbottom_m"><legend>提醒：<asp:RadioButtonList runat="server" ID="rblRemind" RepeatLayout="Flow" RepeatDirection="Horizontal"><asp:ListItem Value="pending" Selected="True">待办人员</asp:ListItem><asp:ListItem Value="All">所有处理者</asp:ListItem></asp:RadioButtonList></legend>
                    <div class="padbox mtop_m">
                        <asp:CheckBox runat="server" ID="cbMsg" Checked="true" Text="消息" /><asp:CheckBox runat="server" ID="cbMail" Text="邮件" /><asp:CheckBox runat="server" ID="cbSms" Text="短信" /><asp:CheckBox runat="server" ID="cbWx" Text="微信" />
                    </div>
                </fieldset>
                <asp:TextBox runat="server" ID="tbRemind" TextMode="MultiLine"></asp:TextBox>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="prog" Title="已完成进度" OnOkClick="ReportPercent" OnOkClientClick="return preReport();">
            <ContentTemplate>
                <div class="padsbox mtop_n middle">
                    <div id="percentVal"></div><span id="valText"></span>
                </div>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="backto" OnOkClick="BackTo" Width="450" OnOkClientClick="return preBack();" HideOnOkClientClick="false">
            <ContentTemplate>
                <fieldset><legend>将流程退回：</legend>
                    <div class="padbox">
                        <asp:RadioButtonList runat="server" ID="rblBack" RepeatLayout="Table" RepeatColumns="1" RepeatDirection="Vertical"></asp:RadioButtonList>
                    </div>
                </fieldset>
                <fieldset class="mtop_n mbottom_l"><legend>回退模式</legend>
                    <div class="padbox">
                        <asp:RadioButton runat="server" GroupName="backMode" Checked="true" ID="rbFullBack" Text="时光倒流（完全还原到当时的表单和流程状态）" /><br />
                        <asp:RadioButton runat="server" GroupName="backMode" ID="rbMinAffect" Text="最小影响（不还原表单，不影响旁系分支步骤）" />
                    </div>
                </fieldset>
                <div id="backtxt">说明：</div>
                <asp:TextBox runat="server" ID="tbBackMent" TextMode="MultiLine" Rows="4" Width="98.5%"></asp:TextBox>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="opn" Width="445" OnClientUpdated="InitOpnPop();" OnOkClick="ProcessTask" HideOnOkClientClick="false" OnOkClientClick="return preSaveOpn();" OkButtonText="确认操作">
            <ContentTemplate>
                <div id="swDiv" class="footBtnArea"><a href="#" id="swOpn" class="larger u">填写意见/说明</a></div>
                <div id="divOpn"><asp:TextBox runat="server" TextMode="MultiLine" Rows="8" ID="tbOpn" Width="99%"></asp:TextBox></div>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="wd" Width="445" OnOkClick="ToWithdraw" HideOnOkClientClick="false" OkButtonText="撤回">
            <ContentTemplate>
                <div id="wda" class="footBtnArea"><a href="#" onclick="wdNotify();">通知将撤消事务的执行人</a></div>
                <div class="hide">
                    通知将撤消事务的执行人：
                    <div class="mtop_s"><asp:TextBox runat="server" ID="tbwd" placeholder="输入通知内容" TextMode="MultiLine" Rows="6" Width="99%"></asp:TextBox></div>
                    <asp:CheckBox runat="server" ID="wdMsg" Text="消息" /><asp:CheckBox runat="server" ID="wdMail" Text="邮件" /><asp:CheckBox runat="server" ID="wdSms" Text="短信" /><asp:CheckBox runat="server" ID="wdWx" Text="微信" />
                </div>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="tsm" Title="模板文件管理" OnOkClick="SaveDocTemplates" HelpSubject="templatedExport" OnOkClientClick="return preSaveDocs();" OnClientUpdated="bindDownload();" HideOnOkClientClick="false" CustomCss="withline">
            <ContentTemplate>
                <div id="tszone" runat="server" exts="\.(xlsx|docx)$" tip="点击文件项以下载，拖动调整顺序"><div class="files" runat="server"></div><div class="icon"><input id="_fts" name="_fts" class="f" contenteditable="false" multiple="multiple" title="上传(可多选)" onchange="return toUpload(this);" type="file" /></div></div>
            </ContentTemplate>
        </ims:Pop>
        <fieldset runat="server" id="todocs" class="hide"><legend class="cyan">模板化导出<span runat="server" id="docManage"><b>|</b><a onclick="return showDocTemplates();" href="#">模板文件管理</a></span></legend>
	        <asp:UpdatePanel ID="upts" runat="server" RenderMode="Block" UpdateMode="conditional">
                <ContentTemplate>
                    <div runat="server" id="divts"></div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </fieldset>
    <div id="editplace" title="修改"></div>
    <script src="js/comm.js"></script>
    <script src="js/echart.js"></script>
    <script src="Ckeditor/ckeditor.js"></script>
    <script src="Ckeditor/Ckfinder/ckfinder.js"></script>
    <script src="js/datepicker/WdatePicker.js"></script>
    <script src="js/signature.js"></script>
    <script src="js/detail.js"></script>
    </form>
</body>
</html>