You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.2 KiB
82 lines
2.2 KiB
1 month ago
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||
|
<%
|
||
|
String path = request.getContextPath();
|
||
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
|
||
|
BaseSessionUser su = (BaseSessionUser)session.getAttribute(WDKConstant.SESSION_USER);
|
||
|
String WDK_ROOT = WDKCore.inst.WDK_ROOT;
|
||
|
%>
|
||
|
<!DOCTYPE html>
|
||
|
<%@page import="org.wdk.WDKConstant"%>
|
||
|
<%@page import="org.wdk.WDKCore"%>
|
||
|
<%@page import="org.wdk.core.base.BaseSessionUser"%>
|
||
|
<html>
|
||
|
|
||
|
<head>
|
||
|
<base href="<%=basePath%>" target="_self">
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<title>交办人员选择</title>
|
||
|
<jsp:include page='<%=WDKCore.inst.WDK_COMMON %>'></jsp:include>
|
||
|
<script type="text/javascript" src="<%=WDK_ROOT%>/core/js/wdk.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
<% if(null==su){%>
|
||
|
$.timeout();
|
||
|
<%}%>
|
||
|
var actors = $.getURLParam('actors');
|
||
|
|
||
|
window.onload = function(){
|
||
|
|
||
|
var _queryParams = {
|
||
|
};
|
||
|
$.tree({
|
||
|
id:'usertree',
|
||
|
checkbox:true,
|
||
|
url:"wdk?action=wdk.wf&method=pub_actorlist",
|
||
|
queryParams:_queryParams,
|
||
|
onLoadSuccess:function(node,data){
|
||
|
var ids = [];
|
||
|
var arr = actors.split(';');
|
||
|
for(var i=0;i<arr.length;i++){
|
||
|
var arr2 = arr[i];
|
||
|
var actorid = arr2.split(',')[0];
|
||
|
ids.push(actorid);
|
||
|
}
|
||
|
|
||
|
$.tree_setChecked ({id:'usertree',ids:ids.join(',')});
|
||
|
$.wait_close();
|
||
|
}
|
||
|
});
|
||
|
};
|
||
|
|
||
|
function inputpop_getValue(){
|
||
|
var nodes = $.tree_getCheckedNode({id:'usertree'});
|
||
|
|
||
|
if(!nodes||nodes.length==0||!nodes[0]){
|
||
|
if(!confirm('人员为空,是否继续')){
|
||
|
return false;
|
||
|
}else{
|
||
|
return 'null';
|
||
|
}
|
||
|
}
|
||
|
var str = '';
|
||
|
for(var i=0;i<nodes.length;i++){
|
||
|
var node = nodes[i];
|
||
|
if(-1==node.id.indexOf('dept_')){
|
||
|
var actorid = node.id;
|
||
|
var actortype = node.attributes.actortype;
|
||
|
str += actorid+','+actortype+';';
|
||
|
}
|
||
|
}
|
||
|
if(str.length>0){
|
||
|
str = str.substring(0,str.length-1);
|
||
|
}
|
||
|
return str;
|
||
|
}
|
||
|
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
<body class="easyui-layout" style="padding:0px;margin:0px;background-color:#FFFFFF;">
|
||
|
<div id="usertree" style="width:100%;height:100%;overflow:auto;float:left;border:1px solid #add;"></div>
|
||
|
</body>
|
||
|
</html>
|