<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/sel.html" /]
|
<title>选择执行人</title>
|
</head>
|
<body class="personnel_allocation_body">
|
<table id="selExecutors" class="pab_con">
|
[#if resList??&&resList?size>0]
|
[#list resList as item]
|
[#assign userList=item.dataList]
|
[#if userList??&&userList?size>0]<tr><th>${item.name}</th><td>[/#if]
|
[#if userList??&&userList?size>0]
|
[#list userList as user]
|
<div class="pabitem">
|
<input [#if pattern??&&pattern=="single"]name="checkbox"[/#if] value="${user.USER_ID}" class="pos" type="checkbox" /><span>${user.USER_NAME}</span>
|
</div>
|
[/#list]
|
[/#if]
|
</td></tr>
|
[/#list]
|
[/#if]
|
</table>
|
</body>
|
|
<script type="text/javascript">
|
|
//点击事件
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
var generalId = '${generalId}';
|
var trIndex = '${trIndex}';
|
var executorIds='';
|
var executorNames='';
|
$('input:checkbox:checked').each(function(){
|
if(executorIds==''){
|
executorIds+=$(this).val();
|
executorNames=$(this).parent().next("span").text();
|
}else{
|
executorIds = executorIds + ',' + $(this).val();
|
executorNames=executorNames + ',' + $(this).parent().next("span").text();
|
}
|
});
|
$.post("${base}/business/pages/ciadd/saveCollectionPerson.html",{generalId:generalId,executorIds:executorIds},function(data){});
|
window.parent.addExecutor(trIndex,executorIds,executorNames);
|
window.top.hideDialog(dialogID);
|
}
|
}
|
</script>
|
</html>
|