141 lines
4.9 KiB
Plaintext
141 lines
4.9 KiB
Plaintext
<%@ page language="java" pageEncoding="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">
|
|
<head>
|
|
<%@ include file="/commons/meta.jsp"%>
|
|
<base href="<%=basePath%>">
|
|
<title>环节设置</title>
|
|
<link href="${ctx}/resource/js/plugins/loadmask/jquery.loadmask.css"
|
|
rel="stylesheet" type="text/css" />
|
|
<script type='text/javascript'
|
|
src='${ctx}/resource/js/plugins/loadmask/jquery.loadmask.js'></script>
|
|
<script>
|
|
$(document).ready(function() {
|
|
var key = $("#key").val();
|
|
window.parent.postMessage(
|
|
{
|
|
cmd: 'ebpm',
|
|
params: {"procDefKey":key}
|
|
},
|
|
'*'
|
|
)
|
|
});
|
|
|
|
function changeHref(id, srcStr) {
|
|
var currentId = $(".active").find("a").attr("id");
|
|
var isChange = $("#isChange").val();
|
|
var isRedirect = true;//是否跳转页面
|
|
if("UserContract"==currentId){//当前是基础配置,点击别的菜单会出现提示是否保存的按钮
|
|
if("1"==isChange){//内容有更改
|
|
//提示是否保存前面的操作
|
|
if(confirm("是否保存当前数据?")){
|
|
document.getElementById(id).contentWindow.save();
|
|
isRedirect = false;//当选择确认保存后 留在当前页面
|
|
$("#"+currentId).parent().addClass("active");
|
|
}else{
|
|
$("#isChange").val("0");//保存完毕后把是否已修改还原成未修改
|
|
}
|
|
}
|
|
}
|
|
//if(isRedirect){
|
|
//返回时跳转步数+1
|
|
var backSteps = $("#backSteps").val();
|
|
$("#backSteps").val(parseInt(backSteps)+1);
|
|
|
|
document.getElementById(id).src = srcStr;
|
|
//}
|
|
//$("#myTab3").find('li').removeClass("active");
|
|
}
|
|
function iframeHeight(down){
|
|
var height = "";
|
|
var imgHeight = $("#imgHeight").val();
|
|
if(imgHeight==""){
|
|
height = $("#"+down).contents().find("body").height();
|
|
if(height==0){
|
|
height=800;
|
|
}
|
|
}else{
|
|
height = imgHeight;
|
|
}
|
|
if(height==0){
|
|
height=$("#"+down).height();
|
|
}
|
|
$("#"+down).height(height+20);
|
|
}
|
|
|
|
function gobacktolist(){
|
|
var isRedirect = true;//是否跳转页面
|
|
var isChange = $("#isChange").val();
|
|
if("1"==isChange){//内容有更改
|
|
//提示是否保存前面的操作
|
|
if(confirm("是否保存当前数据?")){
|
|
document.getElementById(id).contentWindow.save();
|
|
isRedirect = false;//当选择确认保存后 留在当前页面
|
|
}else{
|
|
$("#isChange").val("0");//保存完毕后把是否已修改还原成未修改
|
|
}
|
|
}
|
|
document.getElementById(id).src = srcStr;
|
|
}
|
|
|
|
function goback(){
|
|
var backSteps = $("#backSteps").val();
|
|
history.go(-parseInt(backSteps));
|
|
}
|
|
|
|
function publishProcess(url){
|
|
postAjax(url,'发布成功!',false,true);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="main-container" id="main-container">
|
|
<div class="panel-heading"
|
|
style="color: #FFF; background-color: #428BCA; border-color: #428BCA;">
|
|
<span style="font-size: 14px;">环节名称:${activity.activityDefName}</span>
|
|
</div>
|
|
<div class="row" style="margin-right: 0;">
|
|
<div class="col-xs-12">
|
|
|
|
<div class="tabbable">
|
|
<input type="hidden" id="isChange" value="0" />
|
|
|
|
<ul class="nav nav-tabs padding-12 tab-color-blue background-blue"
|
|
id="myTab3">
|
|
<li class="active"><a id="UserContract" data-toggle="tab"
|
|
onclick="changeHref('frmrightChild','${ctx}/activityInfo/edit.do?activityDefId=${activity.activityDefId}&processDefId=${activity.processDefId }&sys=${sys}');"
|
|
href="" target="frmrightChild">基础配置</a></li>
|
|
|
|
<li><a id="UserEducation" href="" data-toggle="tab"
|
|
onclick="changeHref('frmrightChild','${ctx}/actInfo/setActResource/list.do?actId=${activity.activityDefId}&procDefId=${activity.processDefId}')"
|
|
target="frmrightChild">环节人员</a></li>
|
|
|
|
<li><a id="NoticeRemind" href="" data-toggle="tab"
|
|
onclick="changeHref('frmrightChild','${ctx}/actInfo/sequenceFlow/list.do?actId=${activity.activityDefId}&procDefId=${activity.processDefId}')"
|
|
target="frmrightChild">环节输出</a></li>
|
|
|
|
<li><a id="UserEducation" href="" data-toggle="tab"
|
|
onclick="changeHref('frmrightChild','${ctx}/dataObjectRelation/activityList.do?activityDefId=${activity.activityDefId}&processDefId=${activity.processDefId}')"
|
|
target="frmrightChild">环节扩展属性</a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
<div class="tab-content" style="width: 100%; height: 100%;">
|
|
<IFRAME style="width: 100%; height: 800px;" scrolling="no" src="${ctx}/activityInfo/edit.do?activityDefId=${activity.activityDefId}&processDefId=${activity.processDefId }&sys=${sys}"
|
|
frameBorder="0" id="frmrightChild" name="frmrightChild"
|
|
onload="iframeHeight('frmrightChild')" allowTransparency="true"></IFRAME>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |