This commit is contained in:
hanjian
2024-08-14 15:17:51 +08:00
parent 20a221c1a2
commit b610f94b2e
3483 changed files with 650965 additions and 0 deletions

View File

@@ -0,0 +1,261 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%-- <jsp:include page="deputeUserTree.jsp" flush="false" /> --%>
<%
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">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="overview &amp; 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" />
<!-- 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/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-->
<base href="<%=basePath%>">
<style>
.ztree li span {
line-height: 16px;
margin-right: 2px;
font-size: 12px;
color: #333;
font-family: "微软雅黑";
}
.btn-style{
border: 1px #89a0b9 solid;
border-radius: 4px;
background: -webkit-gradient(linear, 0% 0%, 0% 100%,from(#fefefe), to(#dce2e6));
padding: 0px 15px;
color: #000;
font-size: 12px;
font-family:"微软雅黑";
letter-spacing: 4px;
}
.btn-style:hover{
background:#e1f0f8;
cursor:pointer;
}
</style>
<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>
$(function(){
//初始化委托人
$.fn.zTree.init($("#treeObj"), createUserSetting());
});
function createUserSetting(){
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:{"assignTreeId":"${user.orgId}","treeLevel":"","showTreeType":"USER","filterNodeIdsStr":"${user.userId}","ischecked":"0","isCheckValue":"${existDepute.mandataryUserId}"}
},
check: {
enable: true,
chkStyle: "radio"
},
callback: {
onAsyncSuccess: onAsyncSuccess,
onCheck:onUserCheck
}
};
return setting;
}
function onUserCheck(event, treeId, treeNode) {
if(null == treeNode){
return ;
}
if("USER" == treeNode.type){
$("#mandataryUserId").val(treeNode.id);
$("#mandataryUserName").val(treeNode.name);
return true;
}else{
return false;
}
}
function onAsyncSuccess(event, treeId, treeNode, msg) {
var msgArr=$.parseJSON(msg);
for(var i = 0;i<msgArr.length;i++){
if(msgArr[i].checked){
$("#mandataryUserId").val(msgArr[i].id);
$("#mandataryUserName").val(msgArr[i].name);
}
}
}
function saveDepute(){
var ischeck = checkBeforeSubmit();
if(ischeck){
$.post('${ctx}/depute/save.do',
$('#editForm').serialize(),
function(result){
if(result.success){
alert("保存成功!");
art.dialog.opener.location.reload();
}else{
alert("保存失败!");
}
});
}
}
function checkBeforeSubmit(){
var mandataryUserId = $("#mandataryUserId").val();
if(null == mandataryUserId || ""==mandataryUserId){
alert("请您选择被委托人员!");
$("#mandataryUserName").focus();
return false;
}
return true;
}
function resetDepute(){
if(confirm("您确定要重新设置委托待办吗?")){
$.post('${ctx}/depute/reSetDepute.do',
$('#editForm').serialize(),
function(result){
if(result.success){
alert("重置成功!");
art.dialog.opener.location.reload();
}else{
alert("重置失败!");
}
});
}
}
</script>
<title>新增委托代办</title>
</head>
<body style="font-size: 13px;" class="white-page">
<form action="${ctx}/depute/save.do" method="post" id="editForm">
<input type="hidden" name="deputeUserId" value="${bpm_login_session_user.userCode}" id="deputeUserId" />
<input type="hidden" name="deputeUserName" value="${bpm_login_session_user.userName}" id="deputeUserName" />
<input type="hidden" name="deputeStatus" value="Y" id="deputeStatus" />
<%-- <input type="hidden" name="appId" value="${application.appId}" id="appId" /> --%>
<%-- <input type="hidden" name="appName" value="${application.appName}" id="appName" /> --%>
<div class="main-container" id="main-container">
<div id="tabs" style="border-bottom: 1px solid #e5e5e5;font-weight: bold;margin: 0px;padding: 7px 10px 5px 20px;">
<span style="padding:20px;border-bottom: 2px #70c5e1 solid;padding: 0px 2px 7px 2px;font-size: 12px;font-family: &quot;微软雅黑&quot;;color: #000;">可视化流程中心->委托代办设置</span>
</div>
<div class="alert alert-block alert-danger" style="margin: 5px 0px 0px 20px;color: #ff0000;padding: 5px;font-size: 12px;font-family: '微软雅黑'; border: none;background: none;">
<i class="ace-icon fa fa-exclamation-triangle yellow"></i> <span class="yellow bolder"></span>
<c:choose>
<c:when test="${'' != existDepute.mandataryUserName && null != existDepute.mandataryUserName}">
<%-- <c:choose> --%>
<%-- <c:when test="${'local' == existDepute.deputeType}"> --%>
<%-- 委托记录:您于<fmt:formatDate value="${existDepute.createTime }" pattern="yyyy年MM月dd日" />将${deputeStr }的所有流程都委托给了${existDepute.mandataryUserName } --%>
<%-- </c:when> --%>
<%-- <c:otherwise> --%>
当前委托记录:您于<lable style="font-weight:bold;"><fmt:formatDate value="${existDepute.createTime }" pattern="yyyy年MM月dd日" /></lable>将可视化流程中心的所有流程都委托给了<lable style="font-weight:bold;">${existDepute.mandataryUserName }</lable>
取消委托关系请点击重置按钮!
<%-- </c:otherwise> --%>
<%-- </c:choose> --%>
</c:when>
<c:otherwise>您当前暂无委托记录!</c:otherwise>
</c:choose>
</div>
<div class="panel panel-primary" style=" border: none;padding: 0px 10px 5px 20px;margin-bottom: 10px;">
<div class="panel-body">
<div style="width:100%;height:250px;">
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable1" height="100%">
<tr style="height:30px;background: #E4EDF6;">
<td style="border-left:none;border-bottom:none;color: #333;padding: 5px 0px 5px 15px;font-weight:bold;font-size: 12px;color: #333;font-family: &quot;微软雅黑&quot;">被委托人选择</td>
</tr>
<tr>
<td style="border-top:none;padding: 2px 0px;"><input type="hidden" name="mandataryUserName" readonly
value="请选择" id="mandataryUserName"/>
<input type="hidden" name="mandataryUserId" value="" id="mandataryUserId" />
<div id="menuContent" class="menuContent" style="height:100%;">
<ul id="treeObj" class="ztree" style="margin: 0px 0px 0px 8px; width: 500px;height: auto;max-height: 230px;border:none;background: none;overflow:auto;"></ul>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div class="col-md-offset-1 col-md-9" style="text-align: center;margin-top: 20px;">
<button id="submitButton" name="submitButton"
class="btn-style"
type="button" onclick="saveDepute();">
保存
</button>
<label style="padding: 0px 13px 0px 0px;"></label>
<button type="button" class="btn-style"
onclick="resetDepute();">
重置
</button>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,261 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%-- <jsp:include page="deputeUserTree.jsp" flush="false" /> --%>
<%
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">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="overview &amp; 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" />
<!-- 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/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-->
<base href="<%=basePath%>">
<style>
.ztree li span {
line-height: 16px;
margin-right: 2px;
font-size: 12px;
color: #333;
font-family: "微软雅黑";
}
.btn-style{
border: 1px #89a0b9 solid;
border-radius: 4px;
background: -webkit-gradient(linear, 0% 0%, 0% 100%,from(#fefefe), to(#dce2e6));
padding: 0px 15px;
color: #000;
font-size: 12px;
font-family:"微软雅黑";
letter-spacing: 4px;
}
.btn-style:hover{
background:#e1f0f8;
cursor:pointer;
}
</style>
<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>
$(function(){
//初始化委托人
$.fn.zTree.init($("#treeObj"), createUserSetting());
});
function createUserSetting(){
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:{"assignTreeId":"${user.orgId}","treeLevel":"","showTreeType":"USER","filterNodeIdsStr":"${user.userId}","ischecked":"0","isCheckValue":"${existDepute.mandataryUserId}"}
},
check: {
enable: true,
chkStyle: "radio"
},
callback: {
onAsyncSuccess: onAsyncSuccess,
onCheck:onUserCheck
}
};
return setting;
}
function onUserCheck(event, treeId, treeNode) {
if(null == treeNode){
return ;
}
if("USER" == treeNode.type){
$("#mandataryUserId").val(treeNode.id);
$("#mandataryUserName").val(treeNode.name);
return true;
}else{
return false;
}
}
function onAsyncSuccess(event, treeId, treeNode, msg) {
var msgArr=$.parseJSON(msg);
for(var i = 0;i<msgArr.length;i++){
if(msgArr[i].checked){
$("#mandataryUserId").val(msgArr[i].id);
$("#mandataryUserName").val(msgArr[i].name);
}
}
}
function saveDepute(){
var ischeck = checkBeforeSubmit();
if(ischeck){
$.post('${ctx}/depute/save.do',
$('#editForm').serialize(),
function(result){
if(result.success){
alert("保存成功!");
art.dialog.opener.location.reload();
}else{
alert("保存失败!");
}
});
}
}
function checkBeforeSubmit(){
var mandataryUserId = $("#mandataryUserId").val();
if(null == mandataryUserId || ""==mandataryUserId){
alert("请您选择被委托人员!");
$("#mandataryUserName").focus();
return false;
}
return true;
}
function resetDepute(){
if(confirm("您确定要重新设置委托待办吗?")){
$.post('${ctx}/depute/reSetDeputeBack.do',
$('#editForm').serialize(),
function(result){
if(result.success){
alert("重置成功!");
art.dialog.opener.location.reload();
}else{
alert("重置失败!");
}
});
}
}
</script>
<title>新增委托代办</title>
</head>
<body style="font-size: 13px;" class="white-page">
<form action="${ctx}/depute/save.do" method="post" id="editForm">
<input type="hidden" name="deputeUserId" value="${user.userCode}" id="deputeUserId" />
<input type="hidden" name="deputeUserName" value="${user.userName}" id="deputeUserName" />
<input type="hidden" name="deputeStatus" value="Y" id="deputeStatus" />
<%-- <input type="hidden" name="appId" value="${application.appId}" id="appId" /> --%>
<%-- <input type="hidden" name="appName" value="${application.appName}" id="appName" /> --%>
<div class="main-container" id="main-container">
<div id="tabs" style="border-bottom: 1px solid #e5e5e5;font-weight: bold;margin: 0px;padding: 7px 10px 5px 20px;">
<span style="padding:20px;border-bottom: 2px #70c5e1 solid;padding: 0px 2px 7px 2px;font-size: 12px;font-family: &quot;微软雅黑&quot;;color: #000;">可视化流程中心->委托代办设置</span>
</div>
<div class="alert alert-block alert-danger" style="margin: 5px 0px 0px 20px;color: #ff0000;padding: 5px;font-size: 12px;font-family: '微软雅黑'; border: none;background: none;">
<i class="ace-icon fa fa-exclamation-triangle yellow"></i> <span class="yellow bolder"></span>
<c:choose>
<c:when test="${'' != existDepute.mandataryUserName && null != existDepute.mandataryUserName}">
<%-- <c:choose> --%>
<%-- <c:when test="${'local' == existDepute.deputeType}"> --%>
<%-- 委托记录:您于<fmt:formatDate value="${existDepute.createTime }" pattern="yyyy年MM月dd日" />将${deputeStr }的所有流程都委托给了${existDepute.mandataryUserName } --%>
<%-- </c:when> --%>
<%-- <c:otherwise> --%>
当前委托记录:您于<lable style="font-weight:bold;"><fmt:formatDate value="${existDepute.createTime }" pattern="yyyy年MM月dd日" /></lable>将可视化流程中心的所有流程都委托给了<lable style="font-weight:bold;">${existDepute.mandataryUserName }</lable>
取消委托关系请点击重置按钮!
<%-- </c:otherwise> --%>
<%-- </c:choose> --%>
</c:when>
<c:otherwise>您当前暂无委托记录!</c:otherwise>
</c:choose>
</div>
<div class="panel panel-primary" style=" border: none;padding: 0px 10px 5px 20px;margin-bottom: 10px;">
<div class="panel-body">
<div style="width:100%;height:250px;">
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable1" height="100%">
<tr style="height:30px;background: #E4EDF6;">
<td style="border-left:none;border-bottom:none;color: #333;padding: 5px 0px 5px 15px;font-weight:bold;font-size: 12px;color: #333;font-family: &quot;微软雅黑&quot;">被委托人选择</td>
</tr>
<tr>
<td style="border-top:none;padding: 2px 0px;"><input type="hidden" name="mandataryUserName" readonly
value="请选择" id="mandataryUserName"/>
<input type="hidden" name="mandataryUserId" value="" id="mandataryUserId" />
<div id="menuContent" class="menuContent" style="height:100%;">
<ul id="treeObj" class="ztree" style="margin: 0px 0px 0px 8px; width: 500px;height: auto;max-height: 230px;border:none;background: none;overflow:auto;"></ul>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div class="col-md-offset-1 col-md-9" style="text-align: center;margin-top: 20px;">
<button id="submitButton" name="submitButton"
class="btn-style"
type="button" onclick="saveDepute();">
保存
</button>
<label style="padding: 0px 13px 0px 0px;"></label>
<button type="button" class="btn-style"
onclick="resetDepute();">
重置
</button>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,249 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<jsp:include page="/commons/userOrgTree.jsp" flush="false" />
<%
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">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/codemirror.css">
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/eclipse.css">
<style>
.CodeMirror {
/* Set height, width, borders, and global font properties here */
font-family: monospace;
height: 180px;
}
</style>
<script src="${ctx}/resource/js/plugins/codemirror/codemirror.js"></script>
<script src="${ctx}/resource/js/plugins/codemirror/clike.js"></script>
<script>
function createActUser(retValus,retNames){
if(""!=retValus){
var arr = retValus.split("#");
retValus = arr[1];
}
$("#mandataryUserName").val(retNames);
$("#mandataryUserId").val(retValus);
}
function processDefNameOnDbClick(name,id){
$("#processDefName").val(name);
$("#processDefId").val(id);
}
function mandataryUserNameOnDbClick(name,id){
$("#mandataryUserName").val(name);
$("#mandataryUserId").val(id);
}
function processDefSel(){
var deputeType = $('input:radio[name="deputeType"]:checked').val();
if(deputeType=="local"){
$("#processDefName").attr("datatype","*");
$("#processDefName").attr("value","请您选择流程定义!");
$("#processDefName").val($("#curSelProcessSName").val());
$("#processDefId").val($("#curSelProcessSId").val());
$("#processDefName").show();
$("#processDefNameButton").show();
}else{
$("#processDefName").removeAttr("datatype");
$("#processDefName").removeAttr("value");
$("#processDefName").val("");
$("#processDefId").val("");
$("#processDefName").hide();
$("#processDefNameButton").hide();
}
}
$(function(){
processDefSel();
})
function checkBeforeSubmit(){
var mandataryUserId = $("#mandataryUserId").val();
if(null == mandataryUserId || ""==mandataryUserId){
alert("请您选择被委托人员!");
$("#mandataryUserName").focus();
return false;
}
var startTimeString = $("#startTimeString").val();
// if(null == startTimeString || ""==startTimeString){
// alert("请您选择起始时间!");
// $("#startTimeString").focus();
// return false;
// }
// var endTimeString = $("#endTimeString").val();
// if(null == endTimeString || ""==endTimeString){
// alert("请您选择结束时间!");
// $("#endTimeString").focus();
// return false;
// }
var processDefId = $("#processDefId").val();
var deputeType = $('input:radio[name="deputeType"]:checked').val();
if(deputeType=='local'){
if(null==processDefId || ""==processDefId){
alert("请您选择流程定义!");
$("#processDefName").focus();
return false;
}
}
return true;
}
function saveDepute(){
var ischeck = checkBeforeSubmit();
if(ischeck){
$.post('${ctx}/depute/update.do',
$('#editForm').serialize(),
function(result){
if(result.success){
alert("保存成功!");
art.dialog.opener.location.reload();
}else{
alert("保存失败!");
}
});
}
}
//日历图标模拟日历文本框点击事件
$(function(){
var startTimeString = document.getElementById("startTimeString");
var startTime = document.getElementById("startTime");
var endTimeString = document.getElementById("endTimeString");
var endTime = document.getElementById("endTime");
//通用方法
startTime.onclick = function() {
if (/msie/i.test(navigator.userAgent)) //IE
{
startTimeString.fireEvent("onclick");
} else {
var e = document.createEvent('MouseEvent');
e.initEvent('click', false, false);
startTimeString.dispatchEvent(e);
}
}
//通用方法
endTime.onclick = function() {
if (/msie/i.test(navigator.userAgent)) //IE
{
endTimeString.fireEvent("onclick");
} else {
var e = document.createEvent('MouseEvent');
e.initEvent('click', false, false);
endTimeString.dispatchEvent(e);
}
}
})
</script>
<title>委托代办编辑</title>
</head>
<body style="font-size: 13px;" class="white-page">
<form action="${ctx}/depute/update.do" method="post" id="editForm">
<input type="hidden" name="deputeUserId" value="${bpm_login_session_user.userId}" id="deputeUserId" />
<input type="hidden" id="curSelProcessSName" value="${depute.processDefName}"/>
<input type="hidden" id="curSelProcessSId" value="${depute.processDefId}"/>
<input type="hidden" name="deputeId" value="${depute.deputeId}"/>
<input type="hidden" name="deputeUserName" value="${bpm_login_session_user.userName}" id="deputeUserName" />
<input type="hidden" name="deputeStatus" value="Y" id="deputeStatus" />
<input type="hidden" name="appId" value="${application.appId}" id="appId" />
<input type="hidden" name="appName" value="${application.appName}" id="appName" />
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放表单的区域 -->
<tr>
<td>委托类型<font color="red">*</font></td>
<td>
<input type="radio" name="deputeType" value="golal"
${depute.deputeType=='golal'?'checked':''}
id="deputeType" class="othfld" onclick="processDefSel();"/>全局
<input type="radio" onclick="processDefSel();"
${depute.deputeType=='local'?'checked':''}
name="deputeType" value="local" id="deputeTypeProcess" class="othfld"/>按流程
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" class="othfld" onclick="showMenu('processDefName','2043000153','','USER'); return false;"
name="processDefName" id="processDefName"
value="${depute.processDefName}"
datatype="*1-12" "/>
<input type="hidden" name="processDefId" value="${depute.processDefId}" id="processDefId" />
<a class="blue" id="processDefNameButton" href="javascript:void(0);">
<i class="ace-icon fa fa-search bigger-130"
onclick="showMenu('processDefName','2043000153','','USER');return false;">
</i>
</a>
</td>
</tr>
<tr>
<td>被委托人<font color="red">*</font></td>
<td><input type="text" name="mandataryUserName"
onclick="showUserOrg('mandataryUserName','${userId}','','USER'); return false;"
value="${depute.mandataryUserName}" id="mandataryUserName"
datatype="*1-12" nullmsg="请选择被委托人!"/>
<input type="hidden" name="mandataryUserId" value="${depute.mandataryUserId}" id="mandataryUserId" />
<a class="blue" href="javascript:void(0);">
<i class="ace-icon fa fa-search bigger-130"
onclick="showUserOrg('mandataryUserName','${userId}','','USER'); return false;">
</i>
</a>
</td>
</tr>
<!--
<tr>
<td>起止时间<font color="red">*</font></td>
<td>
<input type="text" id="startTimeString" name="startTimeString" readOnly
value="${depute.startTimeString}" datatype="*1-12" nullmsg="请选择起始时间!"/>
<a id="startTime" class="blue" href="javascript:;"><i class="fa fa-calendar bigger-130"></i></a>&nbsp;&nbsp;
<input type="text"
onclick="WdatePicker({dateFmt:'<%=Depute.FORMAT_END_TIME%>',minDate:'#F{$dp.$D(\'startTimeString\')}'})"
id="endTimeString" name="endTimeString"
value="${depute.endTimeString}"
datatype="*1-12" nullmsg="请选择结束时间!"/>
<a id="endTime" class="blue" href="javascript:;">
<i class="fa fa-calendar bigger-130"></i>
</a>
</td>
</tr>
-->
<tr>
<td width="20%">委&nbsp;托&nbsp; 人<font color="red">*</font></td>
<td>${bpm_login_session_user.userName}</td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;margin-top: 20px;">
<button id="submitButton" name="submitButton" class="btn btn-sm btn-primary"
type="button"
onclick="saveDepute();">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="button" class="btn btn-sm btn-primary"
onclick="art.dialog.close();">
<span class="icon_back">关闭</span>
<i class="ace-icon fa fa-times bigger-110"></i>
</button>
</div>
</div>
</div>
</div>
</form>
<jsp:include page="../procDefMgr/procDefTree.jsp" flush="false" />
</body>
</html>

View File

@@ -0,0 +1,147 @@
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@page import="com.blueland.bpm.common.page.*" %>
<%@page import="java.util.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp" %>
<jsp:include page="/commons/userOrgTree.jsp" flush="true" />
<%
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">
<head>
<%@ include file="/commons/meta.jsp" %>
<base href="<%=basePath%>">
<title>委托代办设置</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript" >
$(document).ready(function() {
// 分页需要依赖的初始化动作
window.simpleTable = new SimpleTable('queryForm',${page.thisPageNumber},${page.pageSize},'${pageRequest.sortColumns}');
});
function createDepute(url,title,width,height){
if("" == $("#userId").val() || null == $("#userId").val()){
alert("请输入委托人的ID");
return;
}else{
var url = url+"?userId="+$("#userId").val();
showDiaLog(url,title,width,height);
}
}
function deputeUserNameOnDbClick(name, value) {
$("#deputeUserName").val(name);
$("#deputeUserId").val(value);
}
function mandataryUserNameOnDbClick(name, value) {
$("#mandataryUserName").val(name);
$("#mandataryUserId").val(value);
}
</script>
</head>
<body>
<%@ include file="/commons/messages.jsp"%>
<form id="queryForm" name="queryForm"
action="${ctx}/depute/list.do" method="post"
style="display: inline;">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading">
委托代办设置
</div>
<div class="panel-body" id="panel-body" style="padding:3px;">
<div class="well well-sm" style="margin-bottom: 2px;">
<table border="0" cellspacing="0" cellpadding="0" class="table-search">
<tbody>
<tr colspan="7">
<td>
委托人ID<input type="text" id="userId" name="userId" style="height:25px;margin-right: 2px;"/>
<button type="button" class="btn btn-xs btn-success"
onclick="createDepute('${ctx}/depute/backCreate.do','新增委托代办','600px','400px');">
新增
<i class="ace-icon fa fa-plus bigger-110"></i>
</button>
</td>
</tr>
<tr colspan="7">
<td style="letter-spacing: 3.2px;">
<input type="hidden" id="deputeUserId" name="deputeUserId"/>
委托人:<input type="text" id="deputeUserName" name="deputeUserName" value="${query.deputeUserName}" style="margin-right: 2px;height:25px;" onclick="showUserOrg('deputeUserName','','','USER'); return false;" readonly />
<input type="hidden" id="mandataryUserId" name="mandataryUserId"/>
被委托人:<input type="text" id="mandataryUserName" name="mandataryUserName" value="${query.mandataryUserName}" style="height:25px;" onclick="showUserOrg('mandataryUserName','','','USER'); return false;" readonly/>
<button type="submit" class="btn btn-xs btn-primary"
onclick="getReferenceForm(this).action='${ctx}/depute/list.do'">
查&nbsp;&nbsp;询
<i class="ace-icon fa fa-search bigger-110"></i>
</button>
<!-- <button type="submit" class="btn btn-xs btn-success"
onclick="getReferenceForm(this).action='${ctx}/depute/create.do'"> -->
<button type="button" class="btn btn-xs btn-danger"
onclick="batchDelete('${ctx}/depute/delete.do','items',document.forms.queryForm)">
删除
<i class="ace-icon fa fa-trash-o bigger-110"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table id="sample-table-1" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width:25px;"><input type="checkbox" onclick="setAllCheckboxState('items',this.checked)"></th>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th sortColumn="roleName" >委托类型</th>
<th sortColumn="roleId" >委托人</th>
<th sortColumn="roleId" >被委托人</th>
<!--
<th sortColumn="roleSort" width="300px">起止时间</th> -->
<th sortColumn="roleAppId">委托流程</th>
<th sortColumn="roleAppId">委托状态</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.result}" var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><input type="checkbox" name="items" value="deputeId=${item.deputeId}&"></td>
<td class="td" title="${item.deputeTypeVal}">${item.deputeTypeVal}&nbsp;</td>
<td class="td" title="${item.deputeUserName}">${item.deputeUserName}&nbsp;</td>
<td class="td" title="${item.mandataryUserName}">${item.mandataryUserName}&nbsp;</td>
<!-- <td>从${item.startTimeString}&nbsp;至${item.endTimeString}</td>-->
<td class="td" title="${item.processDefName}&nbsp;">${item.processDefName}&nbsp;</td>
<td class="td" title="${item.deputeStatusVal}&nbsp;"><span class="label label-success">${item.deputeStatusVal}&nbsp;</span></td>
</tr>
</c:forEach>
</tbody>
</table>
<simpletable:pageToolbar page="${page}">
</simpletable:pageToolbar>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>