update
This commit is contained in:
37
ebpm-process-manage/webapp/commons/403.jsp
Normal file
37
ebpm-process-manage/webapp/commons/403.jsp
Normal file
@@ -0,0 +1,37 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
|
||||
<%@ page import="org.apache.commons.logging.LogFactory" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ include file="/commons/taglibs.jsp" %>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
a { color:#555}
|
||||
html { height: 100%; width: 100%; background: url(${ctx}/resource/css/images/bj.png) repeat; }
|
||||
body {margin: 0px auto;}
|
||||
.cw404 { width:755px; margin: 0px auto; }
|
||||
.cw404_nr { height: 284px; width: 750px; background: #e5e5e5; border: 1px solid #aaaaaa; margin: 0px auto; }
|
||||
.cw404_top { height: 200px; width: 750px; margin: 0px auto; }
|
||||
.top_left { float: left; height: 150px; width: 150px; }
|
||||
.top_right { font-size: 100px; line-height: 150px; text-align: center; float: left; height: 150px; width: 600px; color: #3f8bc7; font-family: "΢ÈíÑźÚ"; font-weight: bold; }
|
||||
.nr_top { font-size: 25px; line-height: 40px; height: 40px; margin-right: 5px; margin-left: 5px; border-bottom: 1px solid #aaaaaa; text-align: center; font-weight: bold; color: #555555; }
|
||||
.nr_min { height: 200px; border-top: 1px solid #FFFFFF; margin-right: 5px; margin-left: 5px; border-bottom: 1px solid #aaaaaa; }
|
||||
.nr_foot { font-size: 12px; line-height: 40px; background: #eaeaea; height: 40px; border-top: 1px solid #FFFFFF; color: #555; margin-right: 5px; margin-left: 5px; }
|
||||
.min_top { font-size: 14px; line-height: 30px; height: 30px; }
|
||||
.min_choose { height: 30px; width: 100px; border: 1px solid #aaa; font-size: 12px; line-height: 30px; text-align: center; background: #eaeaea; }
|
||||
.else { height: 30px; }
|
||||
.else li{ width:100px; float:left; margin-left:10px; font-size:12px; line-height:30px; display:inline}
|
||||
a:link { text-decoration: none; }
|
||||
a:visited { text-decoration: none; }
|
||||
a:hover { text-decoration: none; }
|
||||
a:active { text-decoration: none; }
|
||||
-->
|
||||
</style>
|
||||
<div class="cw404">
|
||||
<div class="cw404_top">
|
||||
<div class="top_left"><img src="${ctx}/resource/css/images/cw4.png"></div>
|
||||
<div class="top_right">404</div>
|
||||
</div>
|
||||
<div class="">
|
||||
<div class="nr_top">抱歉,您没有权限访问请求的页面</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
37
ebpm-process-manage/webapp/commons/404.jsp
Normal file
37
ebpm-process-manage/webapp/commons/404.jsp
Normal file
@@ -0,0 +1,37 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
|
||||
<%@ page import="org.apache.commons.logging.LogFactory" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ include file="/commons/taglibs.jsp" %>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
a { color:#555}
|
||||
html { height: 100%; width: 100%; background: url(${ctx}/resource/css/images/bj.png) repeat; }
|
||||
body {margin: 0px auto;}
|
||||
.cw404 { width:755px; margin: 0px auto; }
|
||||
.cw404_nr { height: 284px; width: 750px; background: #e5e5e5; border: 1px solid #aaaaaa; margin: 0px auto; }
|
||||
.cw404_top { height: 200px; width: 750px; margin: 0px auto; }
|
||||
.top_left { float: left; height: 150px; width: 150px; }
|
||||
.top_right { font-size: 100px; line-height: 150px; text-align: center; float: left; height: 150px; width: 600px; color: #3f8bc7; font-family: "΢ÈíÑźÚ"; font-weight: bold; }
|
||||
.nr_top { font-size: 25px; line-height: 40px; height: 40px; margin-right: 5px; margin-left: 5px; border-bottom: 1px solid #aaaaaa; text-align: center; font-weight: bold; color: #555555; }
|
||||
.nr_min { height: 200px; border-top: 1px solid #FFFFFF; margin-right: 5px; margin-left: 5px; border-bottom: 1px solid #aaaaaa; }
|
||||
.nr_foot { font-size: 12px; line-height: 40px; background: #eaeaea; height: 40px; border-top: 1px solid #FFFFFF; color: #555; margin-right: 5px; margin-left: 5px; }
|
||||
.min_top { font-size: 14px; line-height: 30px; height: 30px; }
|
||||
.min_choose { height: 30px; width: 100px; border: 1px solid #aaa; font-size: 12px; line-height: 30px; text-align: center; background: #eaeaea; }
|
||||
.else { height: 30px; }
|
||||
.else li{ width:100px; float:left; margin-left:10px; font-size:12px; line-height:30px; display:inline}
|
||||
a:link { text-decoration: none; }
|
||||
a:visited { text-decoration: none; }
|
||||
a:hover { text-decoration: none; }
|
||||
a:active { text-decoration: none; }
|
||||
-->
|
||||
</style>
|
||||
<div class="cw404">
|
||||
<div class="cw404_top">
|
||||
<div class="top_left"><img src="${ctx}/resource/css/images/cw4.png"></div>
|
||||
<div class="top_right">404</div>
|
||||
</div>
|
||||
<div class="">
|
||||
<div class="nr_top">抱歉,您访问的页面不存在</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
4947
ebpm-process-manage/webapp/commons/bpm_script_info.html
Normal file
4947
ebpm-process-manage/webapp/commons/bpm_script_info.html
Normal file
File diff suppressed because it is too large
Load Diff
46
ebpm-process-manage/webapp/commons/error.jsp
Normal file
46
ebpm-process-manage/webapp/commons/error.jsp
Normal file
@@ -0,0 +1,46 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
|
||||
<%@ page import="org.apache.commons.logging.LogFactory" %>
|
||||
<%@page import="java.io.PrintStream"%>
|
||||
<%@page import="java.io.ByteArrayOutputStream"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ include file="/commons/taglibs.jsp" %>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
a { color:#555}
|
||||
html { height: 100%; width: 100%; background: url(${ctx}/resource/css/images/bj.png) repeat; }
|
||||
body {margin: 0px auto;}
|
||||
.cw404 { width:755px; margin: 0px auto; }
|
||||
.cw404_nr { height: 284px; width: 750px; background: #e5e5e5; border: 1px solid #aaaaaa; margin: 0px auto; }
|
||||
.cw404_top { height: 200px; width: 750px; margin: 0px auto; }
|
||||
.top_left { float: left; height: 150px; width: 150px; }
|
||||
.top_right { font-size: 100px; line-height: 150px; text-align: center; float: left; height: 150px; width: 600px; color: #3f8bc7; font-family: "΢ÈíÑźÚ"; font-weight: bold; }
|
||||
.nr_top { font-size: 25px; line-height: 40px; height: 40px; margin-right: 5px; margin-left: 5px; border-bottom: 1px solid #aaaaaa; text-align: center; font-weight: bold; color: #555555; }
|
||||
.nr_min { height: 200px; border-top: 1px solid #FFFFFF; margin-right: 5px; margin-left: 5px; border-bottom: 1px solid #aaaaaa; }
|
||||
.nr_foot { font-size: 12px; line-height: 40px; background: #eaeaea; height: 40px; border-top: 1px solid #FFFFFF; color: #555; margin-right: 5px; margin-left: 5px; }
|
||||
.min_top { font-size: 14px; line-height: 30px; height: 30px; }
|
||||
.min_choose { height: 30px; width: 100px; border: 1px solid #aaa; font-size: 12px; line-height: 30px; text-align: center; background: #eaeaea; }
|
||||
.else { height: 30px; }
|
||||
.else li{ width:100px; float:left; margin-left:10px; font-size:12px; line-height:30px; display:inline}
|
||||
a:link { text-decoration: none; }
|
||||
a:visited { text-decoration: none; }
|
||||
a:hover { text-decoration: none; }
|
||||
a:active { text-decoration: none; }
|
||||
-->
|
||||
</style>
|
||||
<div class="cw404">
|
||||
<div class="cw404_top">
|
||||
<div class="top_left"><img src="${ctx}/resource/css/images/cw4.png"></div>
|
||||
<div class="top_right">500</div>
|
||||
</div>
|
||||
<div class="">
|
||||
<div class="nr_top">抱歉,系统内部发生错误,请您稍后再试或联系管理员!</div>
|
||||
<% //此处输出异常信息
|
||||
exception.printStackTrace();
|
||||
|
||||
ByteArrayOutputStream ostr = new ByteArrayOutputStream();
|
||||
exception.printStackTrace(new PrintStream(ostr));
|
||||
//out.print(ostr);
|
||||
%>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
6
ebpm-process-manage/webapp/commons/messages.jsp
Normal file
6
ebpm-process-manage/webapp/commons/messages.jsp
Normal file
@@ -0,0 +1,6 @@
|
||||
<%@ include file="/commons/taglibs.jsp" %>
|
||||
<c:if test="${ACTION_MESSAGE != null}">
|
||||
<script>
|
||||
alert('${ACTION_MESSAGE}');
|
||||
</script>
|
||||
</c:if>
|
||||
64
ebpm-process-manage/webapp/commons/meta.jsp
Normal file
64
ebpm-process-manage/webapp/commons/meta.jsp
Normal file
@@ -0,0 +1,64 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="description" content="overview & stats" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
|
||||
|
||||
<!-- bootstrap & fontawesome -->
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/font-awesome.min.css" />
|
||||
|
||||
<!-- text fonts -->
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace-fonts.css" />
|
||||
<!-- ace styles -->
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace.min.css" id="main-ace-style" />
|
||||
<!--[if lte IE 9]>
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace-part2.min.css" />
|
||||
<![endif]-->
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace-skins.min.css" />
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace-rtl.min.css" />
|
||||
<!--[if lte IE 9]>
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace-ie.min.css" />
|
||||
<![endif]-->
|
||||
<!-- inline styles related to this page -->
|
||||
<!-- ace settings handler -->
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/ace-extra.min.js"></script>
|
||||
<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
|
||||
<!--[if lte IE 8]>
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/html5shiv.min.js"></script>
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<!-- basic scripts -->
|
||||
<!--[if !IE]> -->
|
||||
<script type="text/javascript">
|
||||
window.jQuery || document.write("<script src='${ctx }/resource/js/plugins/ace/js/jquery.min.js'>"+"<"+"/script>");
|
||||
</script>
|
||||
<!-- <![endif]-->
|
||||
<!--[if IE]>
|
||||
<script type="text/javascript">
|
||||
window.jQuery || document.write("<script src='${ctx }/resource/js/plugins/ace/js/jquery1x.min.js'>"+"<"+"/script>");
|
||||
</script>
|
||||
<![endif]-->
|
||||
<script type="text/javascript">
|
||||
if('ontouchstart' in document.documentElement) document.write("<script src='${ctx }/resource/js/plugins/ace/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
|
||||
</script>
|
||||
<!-- page specific plugin styles -->
|
||||
<link rel="stylesheet" href="${ctx }/resource/css/global.css" />
|
||||
<script type="text/javascript" src="${ctx }/resource/js/jquery-1.8.3.min.js"></script>
|
||||
<script src="${ctx }/resource/js/common/application.js"></script>
|
||||
<script src="${ctx }/resource/js/plugins/My97DatePicker/WdatePicker.js"></script>
|
||||
<%-- <script src="<c:url value="/resource/js/common/application.js"/>" type="text/javascript"></script>
|
||||
<script src="<c:url value="/resource/js/plugins/My97DatePicker/WdatePicker.js"/>" type="text/javascript"></script> --%>
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/bootstrap.min.js"></script>
|
||||
<!-- page specific plugin scripts -->
|
||||
<!--[if lte IE 8]>
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/excanvas.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- ace scripts -->
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/ace-elements.min.js"></script>
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/ace.min.js"></script>
|
||||
<script src="${ctx }/resource/js/plugins/artDialog/jquery.artDialog.js?skin=blue"></script>
|
||||
<script src="${ctx }/resource/js/plugins/artDialog/iframeTools.source.js"></script>
|
||||
<!-- validation BEGIN-->
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/Validform_v5.3.2/Validform_v5.3.2/demo/css/style.css" />
|
||||
<script type="text/javascript" src="${ctx }/resource/js/plugins/Validform_v5.3.2/Validform_v5.3.2_min.js"></script>
|
||||
<!-- validation END-->
|
||||
11
ebpm-process-manage/webapp/commons/taglibs.jsp
Normal file
11
ebpm-process-manage/webapp/commons/taglibs.jsp
Normal file
@@ -0,0 +1,11 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
|
||||
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
|
||||
|
||||
|
||||
<c:set var="ctx" value="<%=com.blueland.bpm.manage.util.MyContants.getContextJunction(request)+request.getContextPath()%>"/>
|
||||
<c:set var="ctx_js_plugins" value="${ctx }/resource/js/plugins"/>
|
||||
<c:set var="ctx_image" value="${ctx }/resource/images"/>
|
||||
60
ebpm-process-manage/webapp/commons/trace-meta.jsp
Normal file
60
ebpm-process-manage/webapp/commons/trace-meta.jsp
Normal file
@@ -0,0 +1,60 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="description" content="overview & stats" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
|
||||
|
||||
<!-- bootstrap & fontawesome -->
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/font-awesome.min.css" />
|
||||
|
||||
<!-- text fonts -->
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace-fonts.css" />
|
||||
<!-- ace styles -->
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace.min.css" id="main-ace-style" />
|
||||
<!--[if lte IE 9]>
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace-part2.min.css" />
|
||||
<![endif]-->
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace-skins.min.css" />
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace-rtl.min.css" />
|
||||
<!--[if lte IE 9]>
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/ace/css/ace-ie.min.css" />
|
||||
<![endif]-->
|
||||
<!-- inline styles related to this page -->
|
||||
<!-- ace settings handler -->
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/ace-extra.min.js"></script>
|
||||
<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
|
||||
<!--[if lte IE 8]>
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/html5shiv.min.js"></script>
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<!-- basic scripts -->
|
||||
<!--[if !IE]> -->
|
||||
<script type="text/javascript">
|
||||
window.jQuery || document.write("<script src='${ctx }/resource/js/plugins/ace/js/jquery.min.js'>"+"<"+"/script>");
|
||||
</script>
|
||||
<!-- <![endif]-->
|
||||
<!--[if IE]>
|
||||
<script type="text/javascript">
|
||||
window.jQuery || document.write("<script src='${ctx }/resource/js/plugins/ace/js/jquery1x.min.js'>"+"<"+"/script>");
|
||||
</script>
|
||||
<![endif]-->
|
||||
<script type="text/javascript">
|
||||
if('ontouchstart' in document.documentElement) document.write("<script src='${ctx }/resource/js/plugins/ace/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
|
||||
</script>
|
||||
<!-- page specific plugin styles -->
|
||||
<link rel="stylesheet" href="${ctx }/resource/css/global.css" />
|
||||
<script type="text/javascript" src="${ctx }/resource/js/jquery-1.8.3.min.js"></script>
|
||||
<script src="<c:url value="/resource/js/common/application.js"/>" type="text/javascript"></script>
|
||||
<script src="<c:url value="/resource/js/plugins/My97DatePicker/WdatePicker.js"/>" type="text/javascript"></script>
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/bootstrap.min.js"></script>
|
||||
<!-- page specific plugin scripts -->
|
||||
<!--[if lte IE 8]>
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/excanvas.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- ace scripts -->
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/ace-elements.min.js"></script>
|
||||
<script src="${ctx }/resource/js/plugins/ace/js/ace.min.js"></script>
|
||||
<!-- validation BEGIN-->
|
||||
<link rel="stylesheet" href="${ctx }/resource/js/plugins/Validform_v5.3.2/Validform_v5.3.2/demo/css/style.css" />
|
||||
<script type="text/javascript" src="${ctx }/resource/js/plugins/Validform_v5.3.2/Validform_v5.3.2_min.js"></script>
|
||||
<!-- validation END-->
|
||||
174
ebpm-process-manage/webapp/commons/userOrgTree.jsp
Normal file
174
ebpm-process-manage/webapp/commons/userOrgTree.jsp
Normal file
@@ -0,0 +1,174 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||
<%@ include file="/commons/taglibs.jsp" %>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://"
|
||||
+ request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<hred>
|
||||
<link rel="stylesheet"
|
||||
href="${ctx}/resource/js/plugins/zTree/css/demo.css"
|
||||
type="text/css">
|
||||
<link rel="stylesheet"
|
||||
href="${ctx}/resource/js/plugins/zTree/css/zTreeStyle/zTreeStyle.css"
|
||||
type="text/css">
|
||||
<script type="text/javascript"
|
||||
src="${ctx}/resource/js/plugins/zTree/js/jquery-1.4.4.min.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="${ctx}/resource/js/plugins/zTree/js/jquery.ztree.core-3.4.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="${ctx}/resource/js/plugins/zTree/js/jquery.ztree.excheck-3.4.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="${ctx}/resource/js/plugins/zTree/js/jquery.ztree.exedit-3.4.js"></script>
|
||||
<link rel="stylesheet"
|
||||
href="${ctx}/resource/js/plugins/userSelect/css/usStyle/button.css" type="text/css">
|
||||
<script type="text/javascript">
|
||||
//必须jquery多版本冲突的方法
|
||||
var jQuery_1_4_4= $.noConflict(true);
|
||||
</script> <SCRIPT type="text/javascript">
|
||||
var inputObj;
|
||||
var initParams1="";
|
||||
var initParams2="";
|
||||
var initParams3="";
|
||||
var initParams4=false;
|
||||
function createOrgSetting(){
|
||||
var setting = {
|
||||
view: {
|
||||
dblClickExpand: false,
|
||||
expandSpeed: "slow",
|
||||
selectedMulti: false
|
||||
},
|
||||
data: {
|
||||
simpleData: {
|
||||
enable : true,
|
||||
idKey : "id",
|
||||
pIdKey : "pId" ,
|
||||
DIY:"isAccessTopMenu"
|
||||
}
|
||||
},async: {
|
||||
enable: true,
|
||||
url:"${ctx}/pages/user/getUserOrgTree.do",
|
||||
autoParam:["id", "name=n","level=lv"],
|
||||
otherParam:{"id":0,"assignTreeId":initParams1,"treeLevel":initParams2,"showTreeType":initParams3}
|
||||
},
|
||||
callback: {
|
||||
//onDbClick: onUserOrgDbClick,
|
||||
onClick:onUserOrgDbClick
|
||||
}
|
||||
};
|
||||
return setting;
|
||||
}
|
||||
|
||||
function beforeUserOrgClick(treeId, treeNode) {
|
||||
var zTree = jQuery_1_4_4.fn.zTree.getZTreeObj("treeObj");
|
||||
zTree.checkNode(treeNode, !treeNode.checked, null, true);
|
||||
return false;
|
||||
}
|
||||
|
||||
function onUserOrgCheck(e, treeId, treeNode) {
|
||||
var zTree = jQuery_1_4_4.fn.zTree.getZTreeObj("treeObj"),
|
||||
nodes = zTree.getCheckedNodes(true),
|
||||
name = "",
|
||||
id="";
|
||||
|
||||
//nodes.sort(function compare(a,b){return a.id-b.id;});
|
||||
for (var i=0, l=nodes.length; i<l; i++) {
|
||||
if(nodes[i].level<=0||nodes[i].level<=initParams3)
|
||||
continue;
|
||||
name += nodes[i].name + ",";
|
||||
id += nodes[i].id + ",";
|
||||
}
|
||||
|
||||
if (id.length > 0 ) id = id.substring(0, id.length-1);
|
||||
if (name.length > 0 ) name = name.substring(0, name.length-1);
|
||||
try{
|
||||
var fun=inputObj+"OnDbClick";
|
||||
eval(fun+"('"+name +"','"+id+"')");
|
||||
}catch(e){}
|
||||
}
|
||||
|
||||
|
||||
function onUserOrgDbClick(e, treeId, treeNode) {
|
||||
var zTree = jQuery_1_4_4.fn.zTree.getZTreeObj("treeObj"),
|
||||
nodes = zTree.getSelectedNodes(),
|
||||
name = "",
|
||||
id="";
|
||||
for (var i=0, l=nodes.length; i<l; i++) {
|
||||
name += nodes[i].name + ",";
|
||||
id += nodes[i].id + ",";
|
||||
}
|
||||
if (id.length > 0 ) id = id.substring(0, id.length-1);
|
||||
if (name.length > 0 ) name = name.substring(0, name.length-1);
|
||||
try{
|
||||
//alert(inputObj);
|
||||
var fun=inputObj+"OnDbClick";
|
||||
eval(fun+"('"+name +"','"+id+"')");
|
||||
}catch(e){}
|
||||
hideMenuUserOrg();
|
||||
}
|
||||
|
||||
function showUserOrg(inputName,params1,params2,params3) {
|
||||
initParams1=params1;
|
||||
initParams2=params2;
|
||||
initParams3=params3;
|
||||
jQuery_1_4_4.fn.zTree.init(jQuery_1_4_4("#treeObj"), createOrgSetting());
|
||||
inputObj=inputName;
|
||||
var cityObj = jQuery_1_4_4("#"+inputName);
|
||||
var cityOffset = cityObj.offset();
|
||||
jQuery_1_4_4("#menuContent").css({left:cityOffset.left + "px", top:cityOffset.top + cityObj.outerHeight() + "px"}).slideDown("fast");
|
||||
jQuery_1_4_4("body").bind("mousedown", onBodyDownUserOrg);
|
||||
|
||||
}
|
||||
|
||||
function hideMenuUserOrg() {
|
||||
jQuery_1_4_4("#menuContent").fadeOut("fast");
|
||||
jQuery_1_4_4("body").unbind("mousedown", onBodyDownUserOrg);
|
||||
}
|
||||
function onBodyDownUserOrg(event) {
|
||||
if (!(event.target.id == "menuBtn" || event.target.id == "menuContent" || jQuery_1_4_4(event.target).parents("#menuContent").length>0)) {
|
||||
hideMenuUserOrg();
|
||||
}
|
||||
}
|
||||
|
||||
jQuery_1_4_4(document).ready(function(){
|
||||
//
|
||||
});
|
||||
function query(){
|
||||
var queryVal = $("#queryVal").val();
|
||||
|
||||
if(queryVal==""){
|
||||
// $.fn.zTree.init(jQuery_1_4_4("#treeObj"), createOrgSetting());
|
||||
jQuery_1_4_4.fn.zTree.init(jQuery_1_4_4("#treeObj"), createOrgSetting());
|
||||
return;
|
||||
}else{
|
||||
var data={"queryVal":queryVal,"showTreeType":"USER","id":"${param.orgId}"};
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url:"${ctx}/pages/user/getUserOrgTree.do",
|
||||
data: data,
|
||||
dataType: "json",
|
||||
success: function(data){
|
||||
// $.fn.zTree.init(jQuery_1_4_4("#treeObj"), createOrgSetting(),data);
|
||||
jQuery_1_4_4.fn.zTree.init(jQuery_1_4_4("#treeObj"), createOrgSetting(),data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
</SCRIPT>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
|
||||
<div id="menuContent" class="menuContent" style="z-index: 999; display: none; position: absolute;">
|
||||
|
||||
<div style="background: rgb(240, 246, 228) none repeat scroll 0% 0%; border-top: 1px solid rgb(97, 119, 117); border-left: 1px solid rgb(97, 119, 117); border-right: 1px solid rgb(97, 119, 117);padding-top:5px;">
|
||||
姓名:<input type="text" value="" id="queryVal" style="width:100px;font-size:12px;height: 18px;" onkeydown="if(event.keyCode==13) query();"/>
|
||||
<input type="button" class="queryButtonStyle" title="根据用户名或工号查询" onclick="query();"/>
|
||||
</div>
|
||||
<ul id="treeObj" class="ztree" style="margin-top: 0; width: 230px;height: auto;max-height: 250px;border-top:none;"></ul>
|
||||
</div>
|
||||
</BODY>
|
||||
</HTML>
|
||||
190
ebpm-process-manage/webapp/commons/userOrgTreeMore.jsp
Normal file
190
ebpm-process-manage/webapp/commons/userOrgTreeMore.jsp
Normal file
@@ -0,0 +1,190 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||
<%@ include file="/commons/taglibs.jsp" %>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://"
|
||||
+ request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<hred>
|
||||
<link rel="stylesheet"
|
||||
href="${ctx}/resource/js/plugins/zTree/css/demo.css"
|
||||
type="text/css">
|
||||
<link rel="stylesheet"
|
||||
href="${ctx}/resource/js/plugins/zTree/css/zTreeStyle/zTreeStyle.css"
|
||||
type="text/css">
|
||||
<script type="text/javascript"
|
||||
src="${ctx}/resource/js/plugins/zTree/js/jquery-1.4.4.min.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="${ctx}/resource/js/plugins/zTree/js/jquery.ztree.core-3.4.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="${ctx}/resource/js/plugins/zTree/js/jquery.ztree.excheck-3.4.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="${ctx}/resource/js/plugins/zTree/js/jquery.ztree.exedit-3.4.js"></script>
|
||||
<link rel="stylesheet"
|
||||
href="${ctx}/resource/js/plugins/userSelect/css/usStyle/button.css" type="text/css">
|
||||
<script type="text/javascript">
|
||||
//必须jquery多版本冲突的方法
|
||||
var jQuery_1_4_4= $.noConflict(true);
|
||||
</script> <SCRIPT type="text/javascript">
|
||||
var inputObj;
|
||||
var initParams1="";
|
||||
var initParams2="";
|
||||
var initParams3="";
|
||||
var initParams4=false;
|
||||
var initParams5="";
|
||||
|
||||
function createOrgSetting(){
|
||||
var setting = {
|
||||
view: {
|
||||
dblClickExpand: false,
|
||||
expandSpeed: "slow",
|
||||
selectedMulti: false
|
||||
},
|
||||
data: {
|
||||
simpleData: {
|
||||
enable : true,
|
||||
idKey : "id",
|
||||
pIdKey : "pId" ,
|
||||
DIY:"isAccessTopMenu"
|
||||
}
|
||||
},async: {
|
||||
enable: true,
|
||||
url:"${ctx}/pages/user/getUserOrgTree.do",
|
||||
autoParam:["id", "name=n","level=lv"],
|
||||
otherParam:{"id":0,"assignTreeId":initParams1,"treeLevel":initParams2,"showTreeType":initParams3}
|
||||
},
|
||||
callback: {
|
||||
//onDbClick: onUserOrgDbClick,
|
||||
onClick:onUserOrgDbClick
|
||||
}
|
||||
};
|
||||
return setting;
|
||||
}
|
||||
|
||||
function beforeUserOrgClick(treeId, treeNode) {
|
||||
var zTree = jQuery_1_4_4.fn.zTree.getZTreeObj("treeObj");
|
||||
zTree.checkNode(treeNode, !treeNode.checked, null, true);
|
||||
return false;
|
||||
}
|
||||
|
||||
function onUserOrgCheck(e, treeId, treeNode) {
|
||||
var zTree = jQuery_1_4_4.fn.zTree.getZTreeObj("treeObj"),
|
||||
nodes = zTree.getCheckedNodes(true),
|
||||
name = "",
|
||||
id="";
|
||||
orgId="";
|
||||
orgName="";
|
||||
//nodes.sort(function compare(a,b){return a.id-b.id;});
|
||||
for (var i=0, l=nodes.length; i<l; i++) {
|
||||
if(nodes[i].level<=0||nodes[i].level<=initParams3)
|
||||
continue;
|
||||
name += nodes[i].name + ",";
|
||||
id += nodes[i].id + ",";
|
||||
var parentNode = nodes[i].getParentNode();
|
||||
orgId =parentNode.id+",";
|
||||
orgName=parentNode.name+","
|
||||
}
|
||||
|
||||
if (id.length > 0 ) id = id.substring(0, id.length-1);
|
||||
if (name.length > 0 ) name = name.substring(0, name.length-1);
|
||||
if (orgId.length > 0 ) orgId = orgId.substring(0, orgId.length-1);
|
||||
if (orgName.length > 0 ) orgName = orgName.substring(0, orgName.length-1);
|
||||
try{
|
||||
var fun=inputObj+"OnDbClick";
|
||||
eval(fun+"('"+name +"','"+id+"','"+orgId+"','"+orgName+"','"+initParams5+"')");
|
||||
}catch(e){}
|
||||
}
|
||||
|
||||
|
||||
function onUserOrgDbClick(e, treeId, treeNode) {
|
||||
var zTree = jQuery_1_4_4.fn.zTree.getZTreeObj("treeObj"),
|
||||
nodes = zTree.getSelectedNodes(),
|
||||
name = "",
|
||||
id="";
|
||||
orgId="";
|
||||
orgName="";
|
||||
for (var i=0, l=nodes.length; i<l; i++) {
|
||||
name += nodes[i].name + ",";
|
||||
id += nodes[i].id + ",";
|
||||
//获取组织id和名称
|
||||
var parentNode = nodes[i].getParentNode();
|
||||
orgId =parentNode.id+",";
|
||||
orgName=parentNode.name+","
|
||||
}
|
||||
if (id.length > 0 ) id = id.substring(0, id.length-1);
|
||||
if (name.length > 0 ) name = name.substring(0, name.length-1);
|
||||
if (orgId.length > 0 ) orgId = orgId.substring(0, orgId.length-1);
|
||||
if (orgName.length > 0 ) orgName = orgName.substring(0, orgName.length-1);
|
||||
try{
|
||||
var fun=inputObj+"OnDbClick";
|
||||
eval(fun+"('"+name +"','"+id+"','"+orgId+"','"+orgName+"','"+initParams5+"')");
|
||||
}catch(e){}
|
||||
hideMenuUserOrg();
|
||||
}
|
||||
|
||||
function showUserOrg(inputName,params1,params2,params3,params5,params6) {
|
||||
initParams1=params1;
|
||||
initParams2=params2;
|
||||
initParams3=params3;
|
||||
initParams5=params5;
|
||||
jQuery_1_4_4.fn.zTree.init(jQuery_1_4_4("#treeObj"), createOrgSetting());
|
||||
inputObj=inputName;
|
||||
var cityObj = jQuery_1_4_4("#"+params6);
|
||||
var cityOffset = cityObj.offset();
|
||||
jQuery_1_4_4("#menuContent").css({left:cityOffset.left + "px", top:cityOffset.top + cityObj.outerHeight() + "px"}).slideDown("fast");
|
||||
jQuery_1_4_4("body").bind("mousedown", onBodyDownUserOrg);
|
||||
|
||||
}
|
||||
|
||||
function hideMenuUserOrg() {
|
||||
jQuery_1_4_4("#menuContent").fadeOut("fast");
|
||||
jQuery_1_4_4("body").unbind("mousedown", onBodyDownUserOrg);
|
||||
}
|
||||
function onBodyDownUserOrg(event) {
|
||||
if (!(event.target.id == "menuBtn" || event.target.id == "menuContent" || jQuery_1_4_4(event.target).parents("#menuContent").length>0)) {
|
||||
hideMenuUserOrg();
|
||||
}
|
||||
}
|
||||
|
||||
jQuery_1_4_4(document).ready(function(){
|
||||
//
|
||||
});
|
||||
function query(){
|
||||
var queryVal = $("#queryVal").val();
|
||||
|
||||
if(queryVal==""){
|
||||
// $.fn.zTree.init(jQuery_1_4_4("#treeObj"), createOrgSetting());
|
||||
jQuery_1_4_4.fn.zTree.init(jQuery_1_4_4("#treeObj"), createOrgSetting());
|
||||
return;
|
||||
}else{
|
||||
var data={"queryVal":queryVal,"showTreeType":"USER","id":"${param.orgId}"};
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url:"${ctx}/pages/user/getUserOrgTree.do",
|
||||
data: data,
|
||||
dataType: "json",
|
||||
success: function(data){
|
||||
// $.fn.zTree.init(jQuery_1_4_4("#treeObj"), createOrgSetting(),data);
|
||||
jQuery_1_4_4.fn.zTree.init(jQuery_1_4_4("#treeObj"), createOrgSetting(),data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
</SCRIPT>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
|
||||
<div id="menuContent" class="menuContent" style="z-index: 999; display: none; position: absolute;">
|
||||
|
||||
<div style="background: rgb(240, 246, 228) none repeat scroll 0% 0%; border-top: 1px solid rgb(97, 119, 117); border-left: 1px solid rgb(97, 119, 117); border-right: 1px solid rgb(97, 119, 117);padding-top:5px;">
|
||||
姓名:<input type="text" value="" id="queryVal" style="width:100px;font-size:12px;height: 18px;" onkeydown="if(event.keyCode==13) query();"/>
|
||||
<input type="button" class="queryButtonStyle" title="根据用户名或工号查询" onclick="query();"/>
|
||||
</div>
|
||||
<ul id="treeObj" class="ztree" style="margin-top: 0; width: 230px;height: auto;max-height: 250px;border-top:none;"></ul>
|
||||
</div>
|
||||
</BODY>
|
||||
</HTML>
|
||||
Reference in New Issue
Block a user