提交 08640c98 编写于 作者: NoSubject's avatar NoSubject 提交者: NoSubject

流程隐藏高级属性


(cherry picked from commit bccf89f4307906105da7631bef6b964e496d9368)
上级 465437ac
......@@ -122,7 +122,7 @@
</table>
<div class="MWFScriptText" name="reviewScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -118,7 +118,7 @@
</table>
<div class="MWFScriptText" name="reviewScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -117,7 +117,7 @@
</table>
<div class="MWFScriptText" name="reviewScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -120,7 +120,7 @@
</table>
<div class="MWFScriptText" name="reviewScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -120,11 +120,11 @@
</table>
<div class="MWFScriptText" name="reviewScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
</div>
</>
<div style="display: none; overflow:hidden; border-left: 10px solid #EEEEEE; border-bottom: 10px solid #EEEEEE;">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
......
......@@ -87,11 +87,11 @@
<div class="MWFScriptText" name="delayScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
</div>
</>
<div style="display: none; overflow:hidden; border-left: 10px solid #EEEEEE; border-bottom: 10px solid #EEEEEE;">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
......
......@@ -202,7 +202,7 @@
</table>
<div class="MWFScriptText" name="reviewScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -123,7 +123,7 @@
</table>
<div class="MWFScriptText" name="reviewScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -257,7 +257,7 @@
<div class="MWFScriptText" name="reviewScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -124,7 +124,7 @@
</table>
<div class="MWFScriptText" name="reviewScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -45,7 +45,7 @@
<div title="消息" class="MWFTab">
<div class="editTableHeadTitle">消息</div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -117,7 +117,7 @@
</table>
<div class="MWFScriptText" name="reviewScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -41,53 +41,55 @@
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableTitle">路由类型:</td>
<td class="editTableValue" id="text{$.id}opinionRequired" >
<input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}appendTaskArea').setStyle('display', 'none');}" name="type" text{($.type!='appendTask' && $.type!='back')?'checked':''} type="radio" value="normal"/>默认路由
<br><input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}appendTaskArea').setStyle('display', 'none');}" name="type" text{($.type=='back')?'checked':''} type="radio" value="back"/>回退路由
<br><input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}appendTaskArea').setStyle('display', 'block');}" name="type" text{($.type=='appendTask')?'checked':''} type="radio" value="appendTask"/>转交(仅指向同活动时生效)
<div style="color:#999999">转交活动不触发活动事件</div>
</td>
</tr>
</table>
<div id="text{$.id}appendTaskArea" style="display: text{($.type=='appendTask') ? 'block': 'none'}">
<div data-o2-advanced="yes">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableTitle">转交人员:</td>
<td class="editTableTitle">路由类型:</td>
<td class="editTableValue" id="text{$.id}opinionRequired" >
<input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}appendTaskScriptArea').setStyle('display', 'none');}" name="appendTaskIdentityType" text{($.appendTaskIdentityType !='script')?'checked':''} type="radio" value="select"/>根据路由选择
<input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}appendTaskScriptArea').setStyle('display', 'block');}" name="appendTaskIdentityType" text{($.appendTaskIdentityType =='script')?'checked':''} type="radio" value="script"/>根据脚本
<input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}appendTaskArea').setStyle('display', 'none');}" name="type" text{($.type!='appendTask' && $.type!='back')?'checked':''} type="radio" value="normal"/>默认路由
<br><input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}appendTaskArea').setStyle('display', 'none');}" name="type" text{($.type=='back')?'checked':''} type="radio" value="back"/>回退路由
<br><input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}appendTaskArea').setStyle('display', 'block');}" name="type" text{($.type=='appendTask')?'checked':''} type="radio" value="appendTask"/>转交(仅指向同活动时生效)
<div style="color:#999999">转交活动不触发活动事件</div>
</td>
</tr>
</table>
<div id="text{$.id}appendTaskScriptArea" style="display: text{($.appendTaskIdentityType=='script') ? 'block': 'none'}">
<div id="text{$.id}appendTaskArea" style="display: text{($.type=='appendTask') ? 'block': 'none'}">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableTitle">转交人脚本:</td>
<td class="editTableValue">
<div class="MWFScript" name="appendTaskIdentityScript"></div>
<td class="editTableTitle">转交人员:</td>
<td class="editTableValue" id="text{$.id}opinionRequired" >
<input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}appendTaskScriptArea').setStyle('display', 'none');}" name="appendTaskIdentityType" text{($.appendTaskIdentityType !='script')?'checked':''} type="radio" value="select"/>根据路由选择
<input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}appendTaskScriptArea').setStyle('display', 'block');}" name="appendTaskIdentityType" text{($.appendTaskIdentityType =='script')?'checked':''} type="radio" value="script"/>根据脚本
</td>
</tr>
</table>
<div class="MWFScriptText" name="appendTaskIdentityScriptText"></div><hr />
<div id="text{$.id}appendTaskScriptArea" style="display: text{($.appendTaskIdentityType=='script') ? 'block': 'none'}">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableTitle">转交人脚本:</td>
<td class="editTableValue">
<div class="MWFScript" name="appendTaskIdentityScript"></div>
</td>
</tr>
</table>
<div class="MWFScriptText" name="appendTaskIdentityScriptText"></div><hr />
</div>
</div>
</div>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableTitle">异步返回:</td>
<td class="editTableValue">
<input class="editTableRadio" name="asyncSupported" text{($.asyncSupported===true)?'checked':''} type="radio" value="true"/>
<input class="editTableRadio" name="asyncSupported" text{($.asyncSupported!==true)?'checked':''} type="radio" value="false"/>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableTitle">异步返回:</td>
<td class="editTableValue">
<input class="editTableRadio" name="asyncSupported" text{($.asyncSupported===true)?'checked':''} type="radio" value="true"/>
<input class="editTableRadio" name="asyncSupported" text{($.asyncSupported!==true)?'checked':''} type="radio" value="false"/>
</td>
</tr>
</table>
</div>
</div>
<div title="扩展" class="MWFTab">
<div title="扩展" class="MWFTab" data-o2-advanced="yes">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableTitle">决策组:</td>
......
......@@ -49,7 +49,7 @@
<div class="MWFScriptText" name="scriptText"></div><hr/>
<div style="line-height: 24px; padding: 2px 5px;">通过 this.request.getBody() 获取请求数据<br/>返回 true,驱动流程继续流转<br/>返回 false,表示不符合流转条件,等待下一次调用</div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -122,7 +122,7 @@
</table>
<div class="MWFScriptText" name="reviewScriptText"></div>
</div>
<div title="事件" class="MWFTab">
<div title="事件" class="MWFTab" data-o2-advanced="yes">
<div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
<div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
<div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
......
......@@ -1687,16 +1687,46 @@ MWF.xApplication.process.ProcessDesigner.Process.Panel = new Class({
this.objectTabPage = this.propertyListTab.addTab(this.jsonObjectNode, "JSON", false);
this.stringTabPage = this.propertyListTab.addTab(this.jsonStringNode, "Text", false);
var div = new Element("div", {"styles": {
"float": "right",
"margin-right": "10px"
}, "text": MWF.APPPD.LP.showAdvanced}).inject(this.propertyListTab.tabNodeContainer)
this.showAdvanced = new Element("input", {
"type": "checkbox",
"events": {
"mousedown": function(e){ e.stopPropagation(); }
}
}).inject(div, "top");
var div = new Element("div", {
"styles": {"float": "right", "margin-right": "10px"},
"html": "<span>"+MWF.APPPD.LP.showAdvanced+"</span>"
}).inject(this.propertyListTab.tabNodeContainer);
div.getElement("span").addEvents({
"mousedown": function(e){ e.stopPropagation(); },
"click": function(e){
this.showAdvanced.click();
e.stopPropagation();
}.bind(this)
});
o2.UD.getDataJson("process-show-advanced", function(json){
this.showAdvanced = new Element("input", {
"type": "checkbox",
"checked": (!json) ? false : json.show,
"events": {
"mousedown": function(e){ e.stopPropagation(); },
"change": function(){
if (this.showAdvanced.checked){
var advs = this.propertyListNode.querySelectorAll("*[data-o2-advanced=\"yes\"]");
if (advs && advs.length){
for (var i=0; i<advs.length; i++){
advs[i].show();
}
}
}else{
var advs = this.propertyListNode.querySelectorAll("*[data-o2-advanced=\"yes\"]");
if (advs && advs.length){
for (var i=0; i<advs.length; i++){
advs[i].hide();
}
}
}
o2.UD.putData("process-show-advanced", {"show": !!this.showAdvanced.checked})
}.bind(this)
}
}).inject(div, "top");
}.bind(this));
// this.propertyListTab.tabNodeContainerArea
// showAdvanced
......
......@@ -107,7 +107,6 @@ MWF.xApplication.process.ProcessDesigner.Property = new Class({
"styles": this.process.css.propertyTabNode
}).inject(tmpNode, "before");
debugger;
MWF.require("MWF.widget.Tab", function(){
var tab = new MWF.widget.Tab(tabAreaNode, {"style": "moduleList"});
tab.load();
......@@ -117,7 +116,6 @@ MWF.xApplication.process.ProcessDesigner.Property = new Class({
tabPages.push(tabPage);
if (node.hasAttribute("data-o2-advanced") && node.dataset["o2Advanced"]=="yes"){
tabPage.tabNode.setAttribute("data-o2-advanced", "yes");
tabPage.tabNode.hide();
}
}.bind(this));
tabPages[0].showTab();
......
......@@ -1127,6 +1127,8 @@ MWF.xApplication.process.ProcessDesigner.Route.Property = new Class({
this.loadConditionInput();
this.loadFormSelect();
this.loadOrgEditor();
this.hideAdvanced();
}else{
this.propertyContent.setStyle("display", "block");
}
......@@ -1170,4 +1172,4 @@ MWF.xApplication.process.ProcessDesigner.Route.Property = new Class({
// }.bind(this));
// }
//}
});
\ No newline at end of file
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册