apps/com.actionsoft.apps.workbench/template/page/com.actionsoft.apps.workbench.delegation.htm
shangxiaoran@qq.com 2608324b68 初始化应用
2022-06-28 01:22:45 +08:00

386 lines
15 KiB
HTML
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>
<I18N#我的工作台>-<I18N#委托设置>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- JQuery -->
<script type="text/javascript"
src="../commons/js/jquery/scripts/jquery.js"></script>
<!-- AWS UI -->
<link rel="stylesheet" type="text/css" href="../commons/css/awsui.css">
<link rel="stylesheet" type="text/css" href="../apps/com.actionsoft.apps.workbench/css/com.actionsoft.apps.workbench.workbench.css">
<script type="text/javascript" src="../commons/js/public.js"></script>
<script type="text/javascript" src="../commons/js/awsui.js"></script>
<script src="../commons/js/jquery/scripts/ui/awsui.pagination.js"></script>
<script src="../apps/com.actionsoft.apps.workbench/js/com.actionsoft.apps.workbench.delegation.js"></script>
<script>
var 你选中了清空委托记录 = "<I18N#你选中了清空委托记录>";
var 委托说明不允许为空 = "<I18N#委托说明不允许为空>";
var 失效时间不能小于生效时间 = "<I18N#失效时间不能小于生效时间>";
var 你选中了删除一条委托记录 = "<I18N#你选中了删除一条委托记录>";
var 提示 = "<I18N#提示>";
var 你选中了已办任务收回 = "<I18N#你选中了已办任务收回>";
var 你选中了增加一条委托记录 = "<I18N#你选中了增加一条委托记录>";
var 委托说明 = "<I18N#委托说明>";
var 收回原因不允许为空 = "<I18N#收回原因不允许为空>";
var 流程不允许为空 = "<I18N#流程不允许为空>";
var 代理人不允许为空 = "<I18N#代理人不允许为空>";
var 发起部门不允许为空 = "<I18N#发起部门不允许为空>";
var 如果离开本页面所做的更改将会丢失 = "<I18N#如果离开本页面所做的更改将会丢失>";
var 撤销原因不允许为空 = "<I18N#撤销原因不允许为空>";
var 请检查工作台全局属性打开方式参数设置 = "<I18N#请检查工作台全局属性打开方式参数设置>";
var 撤销 = "<I18N#撤销>";
var 收回 = "<I18N#收回>";
var 确认要催办当前的办理者吗 = "<I18N#确认要催办当前的办理者吗>";
var 添加委托设置 = "<I18N#添加委托设置>";
var 失效时间不允许为空 = "<I18N#失效时间不允许为空>";
var 修改委托设置 = "<I18N#修改委托设置>";
var 生效时间不允许为空 = "<I18N#生效时间不允许为空>";
var 全选 = '<I18N#全选>';
var 反选 = '<I18N#反选>';
var 快速搜索 = '<I18N#快速搜索>';
</script>
<script src="../apps/com.actionsoft.apps.workbench/js/com.actionsoft.apps.workbench.event.js"></script>
<script>
var 我的工作台 = '<I18N#我的工作台>';
var delegationList = <#delegationList>;
var isHighSecurity = <#isHighSecurity>;
// var rangeDataList =<#rangeDataList>;
var rangeDataList =null;
var complete = "<I18N#完成>";
var cancel = "<I18N#取消>";
var deletestate = "<I18N#删除>";
var year = "<I18N#年>";
var month = "<I18N#月>";
var day = "<I18N#日>";
var hour = "<I18N#时>";
var minute = "<I18N#分>";
var second = "<I18N#秒>";
var 正在加载数据请稍候 = "<I18N#正在加载数据请稍候>";
var titleRevocation = "<I18N#撤销>";
var deleteWarning = '<I18N#请选择要删除的记录>';
var deleteTips = '<I18N#删除选中的任务后,该任务将被移出>';
var deleteSure = '<I18N#确定要删除吗>';
var tips = '<I18N#提示>';
var deleteSure = '<I18N#确定要删除吗>';
var 失效 = '<I18N#失效>';
var 有效 = '<I18N#有效>';
var 暂无委托事项="<I18N#暂无委托事项>";
var 代理来自该部门的申请人的待办任务="<I18N#代理来自该部门的申请人的待办任务>";
// 流程范围
var defaultRangeVal = [];
// 流程节点范围
var defaultTaskRangeVal = [];
var isDelegationPage =true;
var delegationIfShowProcessNode = <#delegationIfShowProcessNode>;
</script>
<style>
.clearfix:after{
clear: both;
content:".";
display: block;
height: 0;
visibility: hidden;
}
 .clearfix{
 zoom:1;
}
.processDiv {
/*float: left;*/
width: 350px;
margin: 0 5px 5px 0;
height: 26px;
line-height: 22px;
white-space: nowrap;
text-overflow: ellipsis;
/*overflow: hidden;*/
}
.taskDiv {
float: left;
width: 350px;
margin: 0 5px 5px 0;
height: 26px;
line-height: 22px;
white-space: nowrap;
text-overflow: ellipsis;
/*overflow: hidden;*/
}
.processAppName{
padding-bottom:4px;
}
.processAppName img{
margin-right: 5px;
width:32px;
height:32px;
}
table.awsui-ux legend{
margin:0px;
}
.checkTool{
float: right;
font-size: 13px;
margin-top: 16px;
color: #2196F3;
cursor: pointer;
}
.checkTool:hover{
color:#1565c0;
}
.checkTool.checkA{
margin-right: 7px;
}
.checkTool.rcheck{
margin-right: 4px;
}
.awsui-checkbox-label {
vertical-align: middle;
white-space: nowrap;
overflow: hidden;
max-width: 300px;
margin-left: 4px;
margin-right: 4px;
line-height: 30px;
text-overflow: ellipsis;
display: inline-block;
}
</style>
</head>
<body>
<div id="delegationList">
<form id="fMain" name="fMain">
<div id="contentDiv">
<div id="table-top">
<table id="titleTb" class="table table-thin table-condensed"
style="table-layout: fixed;">
<colgroup>
<col style="width: 40px; min-width: 40px; max-width: 40px">
<col style="width: 40px; min-width: 40px; max-width: 40px">
<col style="width: 200px; min-width: 100px; max-width: 200px">
<col style="width: auto; min-width: 100px; max-width: auto">
<col style="width: 130px; min-width: 130px; max-width: 130px">
<col style="width: 130px; min-width: 130px; max-width: 130px">
<col style="width: 50px; min-width: 50px; max-width: 50px">
</colgroup>
<tbody>
<tr id="thTitle">
<th><i18n#序号></th>
<th>
<input class="awsui-checkbox check-group" id="all1" type="checkbox">
</th>
<th><i18n#代理人></th>
<th><i18n#委托说明></th>
<th><i18n#生效时间></th>
<th><i18n#失效时间></th>
<th class="th-last"><i18n#状态></th>
</tr>
</tbody>
</table>
</div>
<div id="listDiv">
<div>
<table id="tableData" class="table table-thin table-striped table-hover table-condensed" style="table-layout: fixed;">
<colgroup>
<col style="width: 40px; min-width: 40px; max-width: 40px">
<col style="width: 40px; min-width: 40px; max-width: 40px">
<col style="width: 200px; min-width: 100px; max-width: 200px">
<col style="width: auto; min-width: 100px; max-width: auto">
<col style="width: 130px; min-width: 130px; max-width: 130px">
<col style="width: 130px; min-width: 130px; max-width: 130px">
<col style="width: 40px; min-width: 40px; max-width: 40px">
</colgroup>
</table>
</div>
</div>
<div id="table-bottom">
<div id="Pagination"></div>
</div>
</div>
<input type="hidden" id="sid" name="sid" value="<#sid>" />
<input type="hidden" id="boxName" name="boxName" value="<#boxName>" />
<input type="hidden" id="cmd" name="cmd" />
<input type="hidden" id="processInstId" name="processInstId" />
<input type="hidden" id="taskInstId" name="taskInstId" />
<input type="hidden" id="openState" name="openState" />
</form>
</div>
<div id="delegationModifyPage" style='min-height:290px;overflow:auto'>
<form id="frmMain" name="frmMain">
<div id="addContentDiv">
<div class="awsui-toolbar fixed" id="delegationTool">
<span type="button" id="saveDelegation" onclick="WorkbenchDelegationEvent.saveDelegation();" class="button blue"><i18n#保存></span>
</div>
<table class="awsui-ux" style="table-layout: fixed;">
<tbody>
<tr>
<td>
<fieldset>
<legend>
<i18n#详细信息>
</legend>
<table class="awsui-ux delegation">
<tbody>
<tr>
<td class="awsui-ux-title"><i18n#申请人></td>
<td>
<input id="applicantuser" class="awsui-textbox" type="text" disabled="disabled" value="<#userId>">
</td>
<td class="awsui-ux-title"><i18n#申请人姓名></td>
<td>
<input class="awsui-textbox" type="text" disabled="disabled" value="<#userName>">
</td>
</tr>
<tr>
<td class="awsui-ux-title"><i18n#申请人身份></td>
<td id="applicantTr"><select id="applicantuserIdentity"></select></td>
</tr>
<!--<tr>-->
<!--<td class="awsui-ux-title"><i18n#申请人单位></td>-->
<!--<td>-->
<!--<input class="awsui-textbox" type="text" disabled="disabled" value="<#userCompany>">-->
<!--</td>-->
<!--<td class="awsui-ux-title"><i18n#申请人部门></td>-->
<!--<td>-->
<!--<input class="awsui-textbox" type="text" disabled="disabled" value="<#userDept>">-->
<!--</td>-->
<!--</tr>-->
</tbody>
</table>
</fieldset></td>
</tr>
<tr>
<td>
<fieldset>
<legend>
<i18n#委托信息>
</legend>
<table class="awsui-ux" style="table-layout: fixed;white-space:normal;">
<tbody>
<tr>
<td class="awsui-ux-title"><i18n#代理人></td>
<td>
<span id="delegateuser_required" class="required">
<input id="delegateuser" class="txt" type="text" value="" name="delegateuser">
</span>
</td>
<td class="awsui-ux-title"><i18n#代理人身份></td>
<td>
<span>
<input id="delegateuserIdentity" class="txt" type="hidden" value="" name="delegateuserIdentity">
<input id="delegateuserIdentity_Readonly" readonly style="background-color: #fafafa;border-color:#f4f4f4;cursor: not-allowed !important" class="txt" type="txt" >
</span>
</td>
</tr>
<tr>
<td class="awsui-ux-title"><i18n#范围></td>
<td colspan="3">
<input class="awsui-radio" checked="checked" name="radio" id="rdo2" value="all" type="radio">
<label class="awsui-radio-label" for="rdo2"><i18n#全部流程></label>
<input class="awsui-radio" name="radio" id="rdo1" value="purview" type="radio">
<label class="awsui-radio-label" for="rdo1"><i18n#部分流程></label>
<input class="awsui-radio" name="radio" id="rdo3" value="deptview" type="radio">
<label class="awsui-radio-label" for="rdo3"><i18n#发起部门></label>
<span id="radio4">
<input class="awsui-radio" name="radio" id="rdo4" value="taskview" type="radio">
<label class="awsui-radio-label" for="rdo4"><i18n#流程节点></label>
</span>
<!--<input class="awsui-radio" name="radio" id="rdo5" value="roleview" type="radio">-->
<!--<label class="awsui-radio-label" for="rdo5"><i18n#角色></label>-->
</tr>
<tr id="deptRangeTr" style="display: none">
<td class="awsui-ux-title"><i18n#发起部门></td>
<td colspan="3">
<span class="required">
<input id="delegatedept" class="txt" type="text" placeholder="<i18n#代理来自该部门的申请人的待办任务>" value="" name="delegatedept">
</span>
</td>
</tr>
<tr id="processRangeTr" style="display: none">
<td class="awsui-ux-title"><i18n#流程></td>
<td colspan="3">
<span class="required" style="position: static;">
<div id="usersuper" class="awsui-superinput" style="width:100%; max-height: 280px; overflow: hidden; padding-right:0px; position: relative; overflow-y:auto">
<div></div>
<button id="addButton" type="button" class="button" style="position: absolute;right: 0px;margin:-4px -1px auto 3px; width:28px; height:30px; padding-left:5px; padding-right:5px; padding-top:1px;">
<img src="../apps/_bpm.platform/ui/process/relatedprocesstask/img/but_add.gif" border="0">
</button>
</div>
</span>
</td>
</tr>
<!--<tr id="roleRangeTr" style="display: none">-->
<!--<td class="awsui-ux-title"><i18n#角色></td>-->
<!--<td colspan="3">-->
<!--<span class="required">-->
<!--<input id="delegaterole" readonly="readonly" style="width:100%;" class="awsui-input" type="text" value="" name="delegaterole">-->
<!--</span>-->
<!--<input id="delegateroleId" class="txt" type="hidden" value="" name="delegaterole">-->
<!--</td>-->
<!--</tr>-->
<tr>
<td class="awsui-ux-title"><i18n#生效时间></td>
<td>
<span class="required">
<input id="beginTime" class="awsui-datepicker awsui-input" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endTime\')}'})" />
</span>
</td>
<td class="awsui-ux-title"><i18n#失效时间></td>
<td>
<span class="required">
<input id="endTime" class="awsui-datepicker awsui-input" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'beginTime\')}'})" />
</span>
</td>
</tr>
<tr>
<td class="awsui-ux-title"><i18n#委托说明></td>
<td colspan="3">
<span class="required">
<textarea id="reason" class="txt awsui-textarea"></textarea>
</span>
</td>
</tr>
</tbody>
</table>
</fieldset></td>
</tr>
</tbody>
</table>
</div>
<div id="delegationRangeDlg" title="<I18N#流程范围>" style="display:none;width:90%;height:70%;">
<div id="content" class="dlg-content awsui-ux">
<div class="awsui-toolbar">
<div style="width:250px; float:right;">
<input type="text" style="width:200px;" id="buttoneditLiveSearch" class="txt" placeholder="<I18N#快速搜索>">
</div>
</div>
<div id="delegationDataList" style="overflow: auto;">
<table class="awsui-ux" id="processRange">
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<input type="hidden" id="sid" name="sid" value="<#sid>" />
<input type="hidden" id="cmd" name="cmd" />
<input type="hidden" id="type" name="type" />
<input type="hidden" id="delegationId" name="delegationId" />
<input type="hidden" id="processInstId" name="processInstId" />
<input type="hidden" id="taskInstId" name="taskInstId" />
<input type="hidden" id="openState" name="openState" />
<input type="hidden" id="appId" name="appId" value="com.actionsoft.apps.workbench" />
</form>
</div>
<div id = "delegationProcessPage" style="display: none">
<iframe id="delegationProcessFrame" name="delegationProcessFrame" frameborder="0" src="../commons/wait.htm"></iframe>
</div>
</body>
</html>